Skip to content

JAVA-7436 Rename Jira project key - #6597

Merged
aurelien-coet-sonarsource merged 2 commits into
masterfrom
Pavel/Rename
Dec 1, 2026
Merged

aurelien-coet-sonarsource merged 2 commits into
masterfrom
Pavel/Rename

Conversation

@pavel-mikula-sonarsource

@pavel-mikula-sonarsource pavel-mikula-sonarsource commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary by Gitar

  • CI configuration:
    • Changed Jira project key from SONARJAVA to JAVA in PullRequestCreated.yml
    • Changed jira-project-key from SONARJAVA to JAVA in automated-release.yml
    • Changed jira-project from SONARJAVA to JAVA in CleanupIssues.yml
  • Project metadata:
    • Updated Jira issueManagement URL in pom.xml from SONARJAVA to JAVA
  • Agent skill docs:
    • Updated SKILL.md to use JAVA ticket prefix instead of SONARJAVA
  • Gitignore:
    • Added .vs/ ignore rule in .gitignore

This will update automatically on new commits.

@hashicorp-vault-sonar-prod hashicorp-vault-sonar-prod Bot changed the title Rename Jira project key JAVA-7436 Rename Jira project key Nov 27, 2026
@hashicorp-vault-sonar-prod

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

Copy link
Copy Markdown
Contributor

JAVA-7436

@datadog-sonarsource

datadog-sonarsource Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Pipelines

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: a1667ed | Docs | Give us feedback!

@aurelien-coet-sonarsource aurelien-coet-sonarsource left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the old SONARJAVA Jira project key should also be updated in .github/workflows/CleanupIssues.yml and pom.xml, and we should probably delete mentions in CONTRIBUTING.md and README.md as the spaces are now private.

@pavel-mikula-sonarsource

Copy link
Copy Markdown
Contributor Author

I'm wondering how the CleanupIssues was missed, it worked in every other repo :/

Comment on lines +64 to +66
**Single Jira ticket (mandatory):** the RSpec and the rule implementation share the **same** JAVA ticket. Do **not** create a second ticket, and do **not** put the Jira key in commits.

1. Open the analyzer PR with title exactly: `SONARJAVA-XXXX Implement rule SXXXX - <rule title>`, reusing the RSpec ticket key as prefix (rule id and title from RSpec).
1. Open the analyzer PR with title exactly: `JAVA-XXXX Implement rule SXXXX - <rule title>`, reusing the RSpec ticket key as prefix (rule id and title from RSpec).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ Cross-PR: CONTRIBUTING.md would still prescribe the retired SONARJAVA PR prefix · #6598

Breaks when this PR and #6598 both merge to master and the SONARJAVA → JAVA key rename takes effect.

How

  1. .agents/skills/new-rule/SKILL.md:66 now requires PR titles to start with JAVA-XXXX, and this PR switches the workflow jira-project settings to JAVA.
  2. #6598 adds a sentence at CONTRIBUTING.md:30: 'Start the pull request title with the associated SONARJAVA-XXXX issue key'.
  3. Contributors who follow CONTRIBUTING.md would use the retired prefix, so the PR-created automation, which is configured for JAVA, would not link their PR to a ticket.

Fix

  • This PR: nothing needed
  • #6598: change the new CONTRIBUTING.md guidance to JAVA-XXXX, and update its other SONARJAVA mentions too

Compared a1667ed with #6598 at b939552

Was this helpful? React with 👍 / 👎

@gitar-bot

gitar-bot Bot commented Dec 1, 2026

Copy link
Copy Markdown
Code Review 👍 Approved with suggestions 🟡 Medium risk 1 closed / 2 findings

Changing the Jira project key across release and issue-management workflows could misroute automated issue updates if the new key is incorrect.

Renames the Jira project key from SONARJAVA to JAVA across CI workflows, the pom.xml issue management URL, and the agent skill docs, and adds a .vs/ gitignore rule. Open suggestion: CONTRIBUTING.md in #6598 would still prescribe the retired SONARJAVA-XXXX PR title prefix once both merge, so that PR should use JAVA-XXXX instead. The earlier stale SONARJAVA references in pom.xml, README and CONTRIBUTING were resolved.

ℹ️ Cross-PR: CONTRIBUTING.md would still prescribe the retired SONARJAVA PR prefix · #6598

📄 .agents/skills/new-rule/SKILL.md:64-66

Breaks when this PR and #6598 both merge to master and the SONARJAVA → JAVA key rename takes effect.

How

  1. .agents/skills/new-rule/SKILL.md:66 now requires PR titles to start with JAVA-XXXX, and this PR switches the workflow jira-project settings to JAVA.
  2. #6598 adds a sentence at CONTRIBUTING.md:30: 'Start the pull request title with the associated SONARJAVA-XXXX issue key'.
  3. Contributors who follow CONTRIBUTING.md would use the retired prefix, so the PR-created automation, which is configured for JAVA, would not link their PR to a ticket.

Fix

  • This PR: nothing needed
  • #6598: change the new CONTRIBUTING.md guidance to JAVA-XXXX, and update its other SONARJAVA mentions too

Compared a1667ed with #6598 at b939552

✅ 1 closed
✅ Quality: Old SONARJAVA Jira key still used in pom.xml, README and CONTRIBUTING

📄 .github/workflows/PullRequestCreated.yml:29 📄 .github/workflows/automated-release.yml:59
This PR switches the workflows' Jira project key from SONARJAVA to JAVA. Three issue-tracker links still use the old key: the <issueManagement><url> in pom.xml (which goes into the published Maven POM metadata), the "Issue tracking" link in README.md, and the Jira search link in CONTRIBUTING.md. They'll keep working only as long as Jira redirects the old key, and they now disagree with the key the automation uses. Point all three at .../browse/JAVA.

🤖 Prompt for agents
Code Review: Renames the Jira project key from `SONARJAVA` to `JAVA` across CI workflows, the `pom.xml` issue management URL, and the agent skill docs, and adds a `.vs/` gitignore rule. Open suggestion: `CONTRIBUTING.md` in #6598 would still prescribe the retired `SONARJAVA-XXXX` PR title prefix once both merge, so that PR should use `JAVA-XXXX` instead. The earlier stale `SONARJAVA` references in `pom.xml`, README and CONTRIBUTING were resolved.

1. ℹ️ Cross-PR: CONTRIBUTING.md would still prescribe the retired SONARJAVA PR prefix · [#6598](<https://github.com/SonarSource/sonar-java/pull/6598>)
   Files: .agents/skills/new-rule/SKILL.md:64-66

   **Breaks when** this PR and [#6598](<https://github.com/SonarSource/sonar-java/pull/6598>) both merge to master and the SONARJAVA → JAVA key rename takes effect.
   
   **How**
   
   1. `.agents/skills/new-rule/SKILL.md:66` now requires PR titles to start with `JAVA-XXXX`, and this PR switches the workflow `jira-project` settings to JAVA.
   2. [#6598](<https://github.com/SonarSource/sonar-java/pull/6598>) adds a sentence at `CONTRIBUTING.md:30`: 'Start the pull request title with the associated `SONARJAVA-XXXX` issue key'.
   3. Contributors who follow CONTRIBUTING.md would use the retired prefix, so the PR-created automation, which is configured for JAVA, would not link their PR to a ticket.
   
   **Fix**
   
   - **This PR:** nothing needed
   - **[#6598](<https://github.com/SonarSource/sonar-java/pull/6598>):** change the new CONTRIBUTING.md guidance to `JAVA-XXXX`, and update its other SONARJAVA mentions too
   
   _Compared `a1667ed` with [#6598](<https://github.com/SonarSource/sonar-java/pull/6598>) at `b939552`_

Verification Rules 3/3 met Knowledge ✅ 1 Repos 2 inspected · PRs 2 inspected

Functional validation No results

Rules 3 passed 2 not applicable

✅ Internal artifact registries
✅ Release secrets usage
✅ Repository license compliance

Knowledge ✅ 1 expectation met

Expectation met CLAUDE.md and AGENTS.md are duplicates and lag SKILL.md expectation met

Broader impact Repos 2 inspected PRs 2 inspected
Cross-repo 2 repositories inspected 0 open impacts

SonarSource/gh-action-lt-backlog Inspected
SonarSource/release-github-actions Inspected

Cross-PR 2 PRs inspected 1 open impact

PR 6595: AP-1522 Align SonarJava agent-facing documentation Inspected
PR 6598: AP-1542 Correct SonarJava contributor guidance 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 Dec 1, 2026

Copy link
Copy Markdown
Contributor

@aurelien-coet-sonarsource aurelien-coet-sonarsource left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM !

@aurelien-coet-sonarsource
aurelien-coet-sonarsource merged commit 87e0d4a into master Dec 1, 2026
20 checks passed
@aurelien-coet-sonarsource
aurelien-coet-sonarsource deleted the Pavel/Rename branch December 1, 2026 13:15
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