Skip to content

Remove auto-approval step before merging PR for develop updates#16

Merged
The0mikkel merged 3 commits intomainfrom
develop
Nov 16, 2025
Merged

Remove auto-approval step before merging PR for develop updates#16
The0mikkel merged 3 commits intomainfrom
develop

Conversation

@The0mikkel
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings November 16, 2025 16:42
@The0mikkel The0mikkel merged commit 83d5d88 into main Nov 16, 2025
7 checks passed
Copy link
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

This PR removes the auto-approval step from the develop-update workflow, simplifying the automated PR merge process from main to develop.

  • Removes the gh pr review --approve command before merging
  • Streamlines the auto-merge process to rely on gh pr merge --auto alone

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

gh pr review "${{ steps.create_pr.outputs.URL }}" --approve --body "Auto-approved by CI for merging develop update."

# Merge PR
gh pr merge "${{ steps.create_pr.outputs.URL }}" -t "chore(ci): Auto update develop to match main [skip ci]" -b "This was done automatically by the CI pipeline" --merge --auto
Copy link

Copilot AI Nov 16, 2025

Choose a reason for hiding this comment

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

Removing the auto-approval step may cause issues if the develop branch has branch protection rules requiring PR approvals. The gh pr merge --auto command will enable auto-merge but will wait for all required approvals and status checks before completing the merge. Without the approval step, the PR will remain in a pending state indefinitely if approvals are required, defeating the purpose of auto-merge.

Consider one of the following approaches:

  1. Ensure the develop branch does not require approvals for this automated workflow (e.g., by allowing the GitHub Actions bot to bypass approval requirements)
  2. Keep the approval step but use a different token or app with appropriate permissions
  3. Document that branch protection rules for develop should not require approvals for this workflow to function correctly

Copilot uses AI. Check for mistakes.
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