-
Notifications
You must be signed in to change notification settings - Fork 0
ROX-32966: Add disabling label for the konflux retests #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,9 @@ on: | |
|
|
||
| jobs: | ||
| cleanup-retest-comments: | ||
| if: github.event_name == 'pull_request' | ||
| if: | | ||
| github.event_name == 'pull_request' && | ||
| !contains(github.event.pull_request.labels.*.name, 'disable-konflux-auto-retest') | ||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
|
|
@@ -58,7 +60,8 @@ jobs: | |
| github.event_name == 'check_run' && | ||
| github.event.check_run.pull_requests[0] != null && | ||
| github.event.check_run.conclusion == 'failure' && | ||
| startsWith(github.event.check_run.name, 'Red Hat Konflux') | ||
| startsWith(github.event.check_run.name, 'Red Hat Konflux') && | ||
| !contains(github.event.check_run.pull_requests[0].labels.*.name, 'disable-konflux-auto-retest') | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we know that there is a least one PR associated with the check (see check above). My understanding is that the Konflux check might have multiple PRs only when the same commit is used in those PRs. I assume it's quite rare and unique scenario so I believe |
||
| runs-on: ubuntu-latest | ||
|
|
||
| permissions: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Different event types and because of that a bit different label extraction