Skip to content

[Misc] Check the pull requests targeting stable-18.4.x with Checkstyle and SonarQube - #446

Merged
vmassol merged 1 commit into
stable-18.4.xfrom
misc-quality-pr-stable-18.4.x
Sep 30, 2026
Merged

vmassol merged 1 commit into
stable-18.4.xfrom
misc-quality-pr-stable-18.4.x

Conversation

@vmassol

@vmassol vmassol commented Sep 30, 2026

Copy link
Copy Markdown
Member

Jira URL

None, [Misc] change.

Changes

Description

  • Add .github/workflows/quality-pr.yml and .github/workflows/quality-pr-sonar.yml, copied from master, so that pull requests targeting stable-18.4.x (backports especially) get the Quality / Analyze check: a compile of the changed modules with Checkstyle, plus the SonarQube verdict on the lines the pull request writes.

Clarifications

  • Both stubs call the shared xwiki/.github/.github/workflows/quality-pr.yml@master, which has nothing specific to master: the JDK comes from the branch's own xwiki.java.version, the Sonar settings from the branch's poms, and the diff base is the pull request's base branch.
  • Neither workflow can run on a branch that does not carry it: pull_request builds the pull request merged into its base, and pull_request_target runs the copy held by the base branch. That is why these files are added here and not backported from a PR.
  • Pull requests opened by the backport action (github-actions[bot]) still need a maintainer to click Approve and run before the check runs. That is a separate problem, handled in xwiki/.github.

Screenshots & Video

N/A

Executed Tests

  • This pull request is itself the test: it is opened from a branch of this repository, so its Quality / Analyze check is the first run of the workflow against stable-18.4.x.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • None, one PR per maintained branch is opened directly.

🤖 Generated with Claude Code

…e and SonarQube

* Add the quality-pr.yml and quality-pr-sonar.yml stubs, as they are on master, so that a pull
  request targeting stable-18.4.x -- a backport especially -- gets the `Quality / Analyze` check.
  Both workflows only run on a branch that carries them: pull_request builds the pull request
  merged into its base, and pull_request_target runs the copy held by the base branch.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@vmassol
vmassol merged commit 3309181 into stable-18.4.x Sep 30, 2026
6 checks passed
@vmassol
vmassol deleted the misc-quality-pr-stable-18.4.x branch September 30, 2026 10:22
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.

1 participant