Skip to content

feature: adds merge queues docs CF-2398#2635

Open
pedrobpereira wants to merge 1 commit intomasterfrom
feature/merge-queues-CF-2398
Open

feature: adds merge queues docs CF-2398#2635
pedrobpereira wants to merge 1 commit intomasterfrom
feature/merge-queues-CF-2398

Conversation

@pedrobpereira
Copy link
Copy Markdown
Contributor

@pedrobpereira pedrobpereira commented Apr 17, 2026

👀 Live preview

live preview

🚧 To do

  • If relevant, include the Jira issue key at the end of the pull request title
  • Perform a self-review of the changes
  • Fix any issues reported by the CI/CD

@pedrobpereira pedrobpereira requested a review from a team as a code owner April 17, 2026 09:09
Copilot AI review requested due to automatic review settings April 17, 2026 09:09
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 17, 2026

Overall readability score: 54.12 (🟢 +0)

File Readability
github-integration.md 50.69 (🔴 -0.71)
which-permissions-does-codacy-need-from-my-account.md 54.91 (🟢 +0)
View detailed metrics

🟢 - Shows an increase in readability
🔴 - Shows a decrease in readability

File Readability FRE GF ARI CLI DCRS
github-integration.md 50.69 35.27 11.55 13 12.65 7.87
  🔴 -0.71 🔴 -1.01 🔴 -0.06 🔴 -0.3 🔴 -0.12 🟢 +0.05
which-permissions-does-codacy-need-from-my-account.md 54.91 34.05 11.23 12.8 11.66 7.19
  🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0

Averages:

  Readability FRE GF ARI CLI DCRS
Average 54.12 42.99 10.94 12.32 12.24 8.02
  🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0
View metric targets
Metric Range Ideal score
Flesch Reading Ease 100 (very easy read) to 0 (extremely difficult read) 60
Gunning Fog 6 (very easy read) to 17 (extremely difficult read) 8 or less
Auto. Read. Index 6 (very easy read) to 14 (extremely difficult read) 8 or less
Coleman Liau Index 6 (very easy read) to 17 (extremely difficult read) 8 or less
Dale-Chall Readability 4.9 (very easy read) to 9.9 (extremely difficult read) 6.9 or less

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds documentation for GitHub Merge Queues support, describing the required GitHub App permissions and how Codacy behaves when merge-queue checks are requested.

Changes:

  • Add a new “Merge Queues” section to the GitHub integration docs.
  • Document an additional GitHub App permission related to merge queues in the permissions reference table.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
docs/repositories-configure/integrations/github-integration.md Documents Merge Queues behavior and required GitHub App permission for the integration.
docs/getting-started/which-permissions-does-codacy-need-from-my-account.md Adds “Merge Queues” to the list of required GitHub App permissions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +83 to +87
<tr>
<td>Merge Queues</td>
<td>Read-Only</td>
<td>Codacy listens for `checks_requested` webhook events and responds accordingly.</td>
</tr>
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

The new “Merge Queues” permission is added under the Organization permissions section, but merge queues are a repository-level feature/permission in GitHub Apps. Also, checks_requested is typically an action within the merge queue webhook (not a standalone webhook event). Consider moving this row under repository permissions and clarifying the webhook name/action to avoid misleading customers.

Copilot uses AI. Check for mistakes.

![Comment suggesting a fix on GitHub](images/github-integration-suggest-fixes.png)

## Merge Queues {: id="merge-queues"}
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

The new “Merge Queues” section is using an H2 (##) heading, but the other feature descriptions under “Configuring the GitHub integration” are H3 (###). This breaks the document hierarchy/TOC; consider making this a “### Merge queues” subsection (keeping the same anchor id if needed).

Suggested change
## Merge Queues {: id="merge-queues"}
### Merge queues {: id="merge-queues"}

Copilot uses AI. Check for mistakes.

## Merge Queues {: id="merge-queues"}

To support this feature, our GitHub App requires **Merge Groups** permissions in order to listen to the `checks_requested` event.
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

This text says the GitHub App requires Merge Groups permissions, but elsewhere in the docs (permissions table) the permission is labeled “Merge Queues”. Please align the permission name/terminology so readers can find the correct GitHub App permission to grant.

Suggested change
To support this feature, our GitHub App requires **Merge Groups** permissions in order to listen to the `checks_requested` event.
To support this feature, our GitHub App requires the **Merge Queues** permission in order to listen to the `checks_requested` event.

Copilot uses AI. Check for mistakes.
@codacy-production
Copy link
Copy Markdown
Contributor

codacy-production bot commented Apr 17, 2026

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes. Give us feedback

Copy link
Copy Markdown
Contributor

@codacy-production codacy-production bot left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

While the PR successfully addresses the requirement to document GitHub Merge Queues support, there are two significant documentation errors that should be corrected before merging. First, the 'Merge groups' permission is incorrectly categorized as an 'Organization' permission when it is actually a 'Repository' permission; this will misdirect users during setup. Second, there is a naming inconsistency between 'Merge Queues' (used in the table) and 'Merge groups' (the official GitHub UI term). Codacy analysis shows the PR is otherwise up to standards.

About this PR

  • There is a systemic terminology inconsistency: the permissions table uses 'Merge Queues', while the integration page and GitHub's UI use 'Merge Groups'. Additionally, the permission scope (Organization vs. Repository) is currently incorrect in the documentation.

Test suggestions

  • Update the permissions table to include Merge Queues/Groups.
  • Add a descriptive section to the GitHub Integration page about Merge Queues logic.

🗒️ Improve review quality by adding custom instructions

Comment on lines +83 to +87
<tr>
<td>Merge Queues</td>
<td>Read-Only</td>
<td>Codacy listens for `checks_requested` webhook events and responds accordingly.</td>
</tr>
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.

🔴 HIGH RISK

This permission is a repository-level permission, but it is currently listed under the Organization permissions section (which begins at line 71). It should be moved to the repository permissions section (e.g., after 'Contents' at line 68) and renamed to Merge groups for consistency with the GitHub UI.

Try running the following prompt in your coding agent:

Move the new 'Merge Queues' table row to the repository permissions section (above 'Organization permissions'), rename the permission to 'Merge groups', and update the description to: 'Codacy listens for the merge_group event and automatically reports a successful status check to the relevant commit.'


## Merge Queues {: id="merge-queues"}

To support this feature, our GitHub App requires **Merge Groups** permissions in order to listen to the `checks_requested` event.
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.

🟡 MEDIUM RISK

Suggestion: The official GitHub permission name is Merge groups and the specific webhook event is merge_group (which contains the checks_requested action).

Suggested change
To support this feature, our GitHub App requires **Merge Groups** permissions in order to listen to the `checks_requested` event.
To support this feature, our GitHub App requires the **Merge groups** permission in order to listen to the `merge_group` event.

@pedrobpereira pedrobpereira force-pushed the feature/merge-queues-CF-2398 branch from b6113ba to 4db370f Compare April 17, 2026 09:18
@github-actions github-actions bot temporarily deployed to Netlify April 17, 2026 09:19 Inactive
Copilot AI review requested due to automatic review settings April 17, 2026 09:20
@pedrobpereira pedrobpereira force-pushed the feature/merge-queues-CF-2398 branch from 4db370f to 28cd670 Compare April 17, 2026 09:20
@github-actions github-actions bot temporarily deployed to Netlify April 17, 2026 09:22 Inactive
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<td>Codacy retrieves repository contents to get installation access tokens when integrating with your repositories and clone them, and for code coverage analysis.<br/><strong>Codacy requests this permission since September 2023.</strong> Make sure an organization owner <a href="https://docs.github.com/en/apps/using-github-apps/reviewing-and-modifying-installed-github-apps">approves Codacy GitHub App updated permissions</a> on your GitHub organization.</td>
</tr>
<tr>
<td>Merge Groups</td>
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

For consistency with the other GitHub permission scope names in this table (for example, "Pull requests" and "Commit statuses" use sentence case), consider changing "Merge Groups" to "Merge groups".

Suggested change
<td>Merge Groups</td>
<td>Merge groups</td>

Copilot uses AI. Check for mistakes.
<tr>
<td>Merge Groups</td>
<td>Read-Only</td>
<td>Codacy listens for webhook events and responds to the `checks_requested` action accordingly.</td>
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

The description references the checks_requested action but doesn’t mention which webhook event it belongs to. Consider specifying the relevant GitHub event name (for example, the merge group event) so readers know where this action comes from and why this permission is needed.

Suggested change
<td>Codacy listens for webhook events and responds to the `checks_requested` action accordingly.</td>
<td>Codacy listens for the `merge_group` webhook event and responds to the `checks_requested` action accordingly.</td>

Copilot uses AI. Check for mistakes.
Comment on lines +93 to +97
## Merge Groups {: id="merge-groups"}

To support this feature, our GitHub App requires **Merge Groups** permissions to listen for and respond to the `checks_requested` action.

When this event is triggered, Codacy automatically sends a green status check to the relevant commit. The reasoning behind this is straightforward: by the time a PR enters the merge queue, it has already gone through Codacy's analysis — either receiving a green status or being manually bypassed. Since the PR was already unblocked before joining the queue, always responding with green is a safe and practical approach that keeps things moving without unnecessary friction.
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

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

This section uses both "Merge Groups" and "merge queue" terminology without defining the relationship between them, which can be confusing for readers (especially since the behavior described is about merge queue processing). Consider explicitly naming the GitHub feature (merge queues) and, if needed, clarifying that it relies on merge group events/permissions so the terminology is consistent.

Suggested change
## Merge Groups {: id="merge-groups"}
To support this feature, our GitHub App requires **Merge Groups** permissions to listen for and respond to the `checks_requested` action.
When this event is triggered, Codacy automatically sends a green status check to the relevant commit. The reasoning behind this is straightforward: by the time a PR enters the merge queue, it has already gone through Codacy's analysis — either receiving a green status or being manually bypassed. Since the PR was already unblocked before joining the queue, always responding with green is a safe and practical approach that keeps things moving without unnecessary friction.
## GitHub merge queues {: id="merge-groups"}
To support GitHub **merge queues**, our GitHub App requires **Merge Groups** permissions so it can listen for and respond to the `checks_requested` action for merge group events.
When a merge group event is triggered for a pull request in the merge queue, Codacy automatically sends a green status check to the relevant commit. By the time a pull request enters the merge queue, it has already gone through Codacy's analysis — either receiving a green status or being manually bypassed. Since the pull request was already unblocked before joining the queue, always responding with green is a safe and practical approach that keeps things moving without unnecessary friction.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

@codacy-production codacy-production bot left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR successfully addresses the requirement to document GitHub Merge Queues and the necessary 'Merge groups' permissions. Codacy analysis indicates the changes are up to standards with no quality issues detected. The primary focus for final polish should be ensuring the 'Merge groups' permission is correctly categorized as a repository-level permission (as noted in previous comments) and maintaining consistent sentence-case formatting across all headings and tables.

Test suggestions

  • Verify 'Merge Groups' permission is correctly listed as Read-Only in the permissions table.
  • Verify the documentation explicitly mentions the 'checks_requested' webhook action.
  • Verify the explanation for the automatic green status check is included in the GitHub integration guide.

🗒️ Improve review quality by adding custom instructions


![Comment suggesting a fix on GitHub](images/github-integration-suggest-fixes.png)

## Merge Groups {: id="merge-groups"}
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.

⚪ LOW RISK

Nitpick: Use sentence case for the heading to match the permission name and other documentation headings.

Suggested change
## Merge Groups {: id="merge-groups"}
## Merge groups {: id="merge-groups"}

@pedrobpereira pedrobpereira force-pushed the feature/merge-queues-CF-2398 branch from 28cd670 to ab016e7 Compare April 17, 2026 09:27
@github-actions github-actions bot temporarily deployed to Netlify April 17, 2026 09:29 Inactive
Copy link
Copy Markdown
Contributor

@codacy-production codacy-production bot left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds documentation for GitHub Merge Queues but contains major inaccuracies previously flagged that remain unaddressed. Specifically, the 'Merge groups' permission is incorrectly categorized under 'Organization permissions' instead of 'Repository permissions', and terminology is inconsistent ('Merge Queues' vs 'Merge Groups'). Additionally, the documentation fails to clearly explain the rationale for Codacy's 'always green' status checks for merge groups, using vague language that does not meet acceptance criteria. Codacy analysis is currently up to standards, but these documentation errors should prevent merging.

About this PR

  • The PR description is empty and the submission checklist has not been completed. Please provide the required context and confirm that a self-review has been performed.

Test suggestions

  • Verify the 'Merge groups' permission entry is correctly placed in the Repository Permissions section of the permissions documentation.
  • Verify the clarity and accuracy of the explanation regarding 'always green' status checks for merge queues in the GitHub integration guide.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify the 'Merge groups' permission entry is correctly placed in the Repository Permissions section of the permissions documentation.
2. Verify the clarity and accuracy of the explanation regarding 'always green' status checks for merge queues in the GitHub integration guide.

🗒️ Improve review quality by adding custom instructions

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.

3 participants