-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Cirrus: special-case CI colon-IMG and colon-DOCS only in subject #7376
Cirrus: special-case CI colon-IMG and colon-DOCS only in subject #7376
Conversation
63071d1
to
09a2e59
Compare
As of a few minutes ago (relative to this commit), Cirrus defines the CIRRUS_CHANGE_TITLE envariable as "First line of CIRRUS_CHANGE_MESSAGE"[1]. Replace all conditionals accordingly. [1] cirruslabs/cirrus-ci-docs@f8d2530 Reasoning: up until this PR, the presence of CI:IMG or CI:DOCS *in the body* of the commit message would trigger those magic CI code flows. This violates POLA, and actually led to a bad PR (containers#7317) being merged because CI never ran. Fixes: containers#7374 Signed-off-by: Ed Santiago <[email protected]>
09a2e59
to
71adbcc
Compare
@cevich PTAL. Seems to be working: I deliberately included those magic strings in the PR description, but actual-CI ran. |
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.
LGTM
@cevich PTAL and merge |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: edsantiago, rhatdan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@edsantiago excellent work and I'm glad you found such a simple fix. |
/lgtm |
As of a few minutes ago (relative to this commit), Cirrus
defines the CIRRUS_CHANGE_TITLE envariable as "First line
of CIRRUS_CHANGE_MESSAGE"[1]. Replace all conditionals
accordingly.
[1] cirruslabs/cirrus-ci-docs@f8d2530
Reasoning: up until this PR, the presence of CI:IMG
or CI:DOCS in the body of the commit message would trigger
those magic CI code flows. This violates POLA, and actually
led to a bad PR (#7317) being merged because CI never ran.
Fixes: #7374
Signed-off-by: Ed Santiago [email protected]