Skip to content

ci: run the required dev checks on merge groups - #14

Merged
Brad-Edwards merged 2 commits into
devfrom
13-merge-group-checks
Nov 17, 2026
Merged

Brad-Edwards merged 2 commits into
devfrom
13-merge-group-checks

Conversation

@Brad-Edwards

Copy link
Copy Markdown
Contributor

Closes #13

Summary

Each required check on dev now runs on the merge_group event and does a real check on the merge group commit.

Required context Producer on merge_group
Pre-commit hooks, Tests (ubuntu-latest), Tests (macos-latest), Docs (STE and Vale) ci.yml, same jobs
SonarCloud quality gate ci.yml sonarcloud job. It runs the pull request analysis of the queued pull request against dev and waits for the quality gate.
Analyze (actions), Analyze (python) codeql.yml, same jobs
Lint PR title pr-title-lint.yml. It reads the current title of the queued pull request from the API and applies the same rules as amannn/action-semantic-pull-request.

Changes

  • ci.yml and codeql.yml: add the merge_group trigger.
  • ci.yml sonarcloud: on a merge group, get the queued pull request number from the merge group ref and the head branch from the API. The step fails when the ref does not match or the pull request does not target dev.
  • pr-title-lint.yml: keep the action for pull_request. Move the title rules into job environment variables, so that the action and the merge group step use one set of rules. The title goes to Python through a file, not the shell.

Verification

  • pre-commit (actionlint, check-yaml, gitleaks) passes on the changed workflows.
  • The merge group title validator gives the expected result for 14 sample titles, which include the valid, invalid type, invalid subject, missing subject, and non-dev base cases.

@Brad-Edwards
Brad-Edwards merged commit ef7910e into dev Nov 17, 2026
10 checks passed
@Brad-Edwards
Brad-Edwards deleted the 13-merge-group-checks branch November 17, 2026 06:55
@sonarqubecloud

Copy link
Copy Markdown

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