Repository navigation
feat(ci): require a Jira reference on pull requests targeting integration branches - #6468
Merged
Merged
Conversation
…tion branches Port of centreon/centreon#11840: fail when neither the branch name nor the description of a pull request targeting develop, release-* or hotfix-* contains a Jira issue key, and explain the fix in a pull request comment. Automated dependency pull requests, community pull requests from forks and label skip-jira-reference are exempted. Refs: MON-208667
kduret
marked this pull request as ready for review
September 30, 2026 12:45
kduret
requested review from
Tpo76 and
mushroomempires
and removed request for
a team
September 30, 2026 12:45
pkriko
approved these changes
Sep 30, 2026
mushroomempires
approved these changes
Sep 30, 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.
Centreon team (internal PR)
Description
Fixes: MON-208667
Port of centreon/centreon#11840.
Adds a
check-jira-referencejob to thecheck-statusworkflow: pull requests targetingdevelop,release-*orhotfix-*must reference a Jira issue key (any project, for exampleMON-12345) in their branch name or description. When no key is found, the job fails and posts an actionable comment in the pull request (a single comment updated in place).Botaccounts andtechnique-ci);skip-jira-referenceskips the check; likeskip-cherry-pick, it is read from thelabelsoutput ofget-environment, which now also runs for pull requests targetingdevelop;check-statusjob is unchanged; to block the merge,check-jira-referencemust be added as a required status check;check-status.Type of change
How this pull request can be tested ?
MON-208667, socheck-jira-referencepasses.developwhose branch name and description contain no Jira key,check-jira-referencefails and a comment explains what to add; after adding a key to the description and re-running all jobs ofcheck-status, it passes and the comment is updated.skip-jira-reference, the job is skipped.Checklist