ROX-32922: Modify trigger logic and tweak annotations#94
Open
mtodor wants to merge 1 commit intomtodor/ROX-32922-push-to-rhacs-repofrom
Open
ROX-32922: Modify trigger logic and tweak annotations#94mtodor wants to merge 1 commit intomtodor/ROX-32922-push-to-rhacs-repofrom
mtodor wants to merge 1 commit intomtodor/ROX-32922-push-to-rhacs-repofrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## mtodor/ROX-32922-push-to-rhacs-repo #94 +/- ##
====================================================================
Coverage 73.88% 73.88%
====================================================================
Files 30 30
Lines 1302 1302
====================================================================
Hits 962 962
Misses 300 300
Partials 40 40
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
E2E Test ResultsCommit: a6f8913 |
f34a529 to
f579c8f
Compare
ac9c59e to
b4b60de
Compare
f579c8f to
c68513c
Compare
b4b60de to
a6f8913
Compare
janisz
reviewed
Mar 26, 2026
Comment on lines
+16
to
+22
| ( | ||
| event == "pull_request" && body.action != "ready_for_review" && ( | ||
| target_branch == "main" || | ||
| target_branch.startsWith("release-") || | ||
| (has(body.pull_request) && has(body.pull_request.labels) && body.pull_request.labels.exists(l, l.name == "konflux-build")) | ||
| ) | ||
| ) |
Contributor
There was a problem hiding this comment.
Can we have it more readable
event == "pull_request" &&
body.action != "ready_for_review" && (
target_branch == "main" ||
target_branch.startsWith("release-") ||
(
has(body.pull_request.labels) &&
body.pull_request.labels.exists(l, l.name == "konflux-build")
)
)
Contributor
There was a problem hiding this comment.
ok, it's the line wrapping on diff that make it harder to read
janisz
approved these changes
Mar 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fix and improve Konflux PipelinesAsCode annotations and CEL trigger expressions
in both
acs-mcp-server-push.yamlandacs-mcp-server-pull-request.yaml.Annotations fixed (push):
pull_request_numberannotationon-label: "[]"(workaround forkonflux-buildlabel trigger, ROX-30580)cancel-in-progress: "false"(it is the default, no need to set it explicitly)max-keep-runsto10Annotations fixed (pull-request):
on-label: "[]"(same workaround)max-keep-runsto10CEL trigger improvements (both files):
release-*branches, tags, and bot/label PRssource_branchbot-name matching — bot PRs are handled via thekonflux-buildlabel insteadbody.action != "ready_for_review"is needed (prevents double-triggering when a draft PR is marked ready for review)Validation
konflux-buildlabel triggers the pipelineAI-assisted development prompts
This PR was developed with AI assistance. Below are the prompts used:
NOTE: I'm using
beadsand tasks are defined there. That's wherej2cicomes from.