chore: disable IA when issue is confirmed but edited (#9525)

This commit is contained in:
jrandolf 2023-01-17 08:21:22 +01:00 committed by GitHub
parent 4437bceb6e
commit ac132a6a03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ jobs:
analyze-issue:
name: Analyze Issues
runs-on: ubuntu-latest
if: ${{ contains(github.event.issue.labels.*.name, 'bug') && github.event.issue.number > 9481 }}
if: ${{ contains(github.event.issue.labels.*.name, 'bug') && !contains(github.event.issue.labels.*.name, 'confirmed') && github.event.issue.number > 9481 }}
env:
ISSUE_BODY: ${{ toJson(github.event.issue.body) }}
outputs:
@ -29,14 +29,6 @@ jobs:
uses: actions/github-script@v6
with:
script: |
if (${{ contains(github.event.issue.labels.*.name, 'confirmed') }}) {
github.rest.issues.removeLabel({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: ["confirmed"]
})
}
if (${{ contains(github.event.issue.labels.*.name, 'not-reproducible') }}) {
github.rest.issues.removeLabel({
issue_number: context.issue.number,