Skip to content

Enable auto-merge (squash) on update-allowlists workflow - #20

Merged
FidelusAleksander merged 1 commit into
mainfrom
copilot/update-allowlists-workflow-enable-auto-merge
May 15, 2026
Merged

Enable auto-merge (squash) on update-allowlists workflow#20
FidelusAleksander merged 1 commit into
mainfrom
copilot/update-allowlists-workflow-enable-auto-merge

Conversation

Copilot AI commented May 15, 2026

Copy link
Copy Markdown
Contributor

Summary

Updates the "Update Action Allowlists" workflow to automatically enable auto-merge with squash strategy after creating the PR.

Changes

  • Added id: create-pr to the "Create Pull Request" step to reference its outputs
  • Added token input to peter-evans/create-pull-request so it uses the app token (required for auto-merge)
  • Added a new step "Enable auto-merge (squash)" that runs gh pr merge --squash --auto on the created PR
  • The auto-merge step only runs when a PR number is available (i.e., a PR was actually created)

Agent-Logs-Url: https://github.com/skills/skills-for-emu/sessions/759a25e3-908f-456e-8531-de71069b99a4

Co-authored-by: FidelusAleksander <63016446+FidelusAleksander@users.noreply.github.com>

@FidelusAleksander FidelusAleksander left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This is to reduce manual things we have to review

@FidelusAleksander
FidelusAleksander enabled auto-merge (squash) May 15, 2026 10:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Updates the scheduled “Update Action Allowlists” workflow to automatically enable GitHub auto-merge (squash) for the pull request it creates, so allowlist updates can land without manual intervention once checks pass.

Changes:

  • Adds a step id to the peter-evans/create-pull-request action so downstream steps can reference its outputs.
  • Configures create-pull-request to use the GitHub App token (needed to enable auto-merge).
  • Adds a conditional gh pr merge --squash --auto step that runs only when a PR number is available.

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

@FidelusAleksander
FidelusAleksander merged commit 1d2f301 into main May 15, 2026
1 check passed
@FidelusAleksander
FidelusAleksander deleted the copilot/update-allowlists-workflow-enable-auto-merge branch May 15, 2026 10:13
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