Skip to content

SCANDOCKER-104 Automatically set Jira fix version when a pull request is merged - #339

Merged
alban-auzeill merged 1 commit into
masterfrom
alban/update-fix-verstion
Nov 3, 2026
Merged

alban-auzeill merged 1 commit into
masterfrom
alban/update-fix-verstion

Conversation

@alban-auzeill

@alban-auzeill alban-auzeill commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

SCANDOCKER-104

Configure sonarsource/gh-action-lt-backlog/PullRequestClosed with fix-version: autodetect-lowest, the same mechanism as SonarJS, so the Jira "Fix versions" field is set to the lowest unreleased version of the project when it is empty.

The value is only provided when:

  • the pull request title starts with SCANDOCKER-, so tickets from other Jira projects are left untouched
  • the pull request targets the default branch (github.event.repository.default_branch)

Otherwise the input is empty and the action does not change the fix version.

🤖 Generated with Claude Code

… is merged

Set the Jira "Fix versions" field to the lowest unreleased version of the
SCANDOCKER project when a pull request whose title starts with "SCANDOCKER-" is
merged into the default branch and the field is empty.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@alban-auzeill
alban-auzeill requested a review from a team as a code owner November 3, 2026 14:09
@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

SCANDOCKER-104

@gitar-bot

gitar-bot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · Adding conditional Jira fix-version automation could assign the wrong unreleased version to matching project tickets when a PR closes.

Configures the PullRequestClosed Jira action with fix-version: autodetect-lowest so the lowest unreleased version is set on SCANDOCKER tickets when the PR targets the default branch and the fix version is empty. No issues found.

Verification Rules 3/3 met Repos 1 inspected · PRs 1 inspected

Functional validation No results

Rules 3 passed

✅ Approved GitHub Actions runners
✅ Internal artifact registries
✅ Repository license compliance

Broader impact Repos 1 inspected PRs 1 inspected
Cross-repo 1 repository inspected 0 open impacts

SonarSource/gh-action-lt-backlog Inspected

Cross-PR 1 PR inspected 0 open impacts

PR 332: SCANCLI-271 Automatically set Jira fix version when a pull request is merged Inspected

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@sonarqube-next

sonarqube-next Bot commented Nov 3, 2026

Copy link
Copy Markdown

@alban-auzeill alban-auzeill assigned zglicz and unassigned zglicz Nov 3, 2026
@alban-auzeill
alban-auzeill requested a review from zglicz November 3, 2026 14:41
@alban-auzeill
alban-auzeill merged commit 04b3248 into master Nov 3, 2026
13 checks passed
@alban-auzeill
alban-auzeill deleted the alban/update-fix-verstion branch November 3, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants