Skip to content

Add merge_group trigger to CI workflow#872

Merged
gcatanese merged 2 commits intomainfrom
copilot/add-merge-group-trigger
Jan 21, 2026
Merged

Add merge_group trigger to CI workflow#872
gcatanese merged 2 commits intomainfrom
copilot/add-merge-group-trigger

Conversation

Copy link
Contributor

Copilot AI commented Jan 21, 2026

GitHub merge queues require workflows with required checks to include the merge_group event trigger. Without it, status checks don't run when PRs enter the merge queue, causing merge failures.

Changes

  • Added merge_group: trigger to .github/workflows/main.yml alongside existing pull_request and push triggers

The main CI workflow runs unit tests, linting, and integration tests that are required checks for merging.

Other workflows (format.yml, release.yml, stale.yml, label_new_issues.yml) trigger on different events and don't require updates.

Original prompt

This section details on the original issue you should resolve

<issue_title>[Feature]: Triggering merge group checks with GitHub Actions</issue_title>
<issue_description>### Feature summary

Triggering merge group checks with GitHub Actions

Problem statement

You must use the merge_group event to trigger your GitHub Actions workflow when a pull request is added to a merge queue.

Note

If your repository uses GitHub Actions to perform required checks on pull requests in your repository, you need to update the workflows to include the merge_group event as an additional trigger. Otherwise, status checks will not be triggered when you add a pull request to a merge queue. The merge will fail as the required status check will not be reported. The merge_group event is separate from the pull_request and push events.

A workflow that reports a check which is required by the target branch's protections would look like this:

on:
  pull_request:
  merge_group:

</issue_description>

<agent_instructions>We have enabled the merge queue in the repository already: review and update the relevant workflows that might be affected by this configuration change.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: gcatanese <1771700+gcatanese@users.noreply.github.com>
Copilot AI changed the title [WIP] Add merge group checks to GitHub Actions workflow Add merge_group trigger to CI workflow Jan 21, 2026
Copilot AI requested a review from gcatanese January 21, 2026 14:56
@sonarqubecloud
Copy link

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@gcatanese
Copy link
Contributor

@copilot Should release.yml workflow also be updated?

Copy link
Contributor Author

Copilot AI commented Jan 21, 2026

@copilot Should release.yml workflow also be updated?

No, release.yml doesn't need the merge_group trigger. It runs on pull_request: types: [closed], which executes after a PR is merged, not during the pre-merge check phase. The merge queue is specifically for running required checks before merging, and release.yml is a post-merge automation for release preparation.

@gcatanese gcatanese marked this pull request as ready for review January 21, 2026 15:33
@gcatanese gcatanese requested review from a team as code owners January 21, 2026 15:33
@gcatanese gcatanese added this pull request to the merge queue Jan 21, 2026
Merged via the queue into main with commit eb19e8c Jan 21, 2026
10 checks passed
@gcatanese gcatanese deleted the copilot/add-merge-group-trigger branch January 21, 2026 15:53
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.

[Feature]: Triggering merge group checks with GitHub Actions

3 participants