Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/release-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release Auto-merge

on:
schedule:
- cron: '0 9 * * 1'
workflow_dispatch:

permissions:
pull-requests: write
contents: write

jobs:
auto-merge:
name: Enable auto-merge on release PRs
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.

Can we rename this to upgrade/dependabot PRs or sth else? I don't immediately understand what release PRs are.

Copy link
Copy Markdown
Contributor Author

@skyrpex skyrpex Apr 1, 2026

Choose a reason for hiding this comment

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

The pull requests that this job tracks are different than the Dependabot ones. Google's release-please will create a special release PR that will remain open and up to date with the unreleased commits from the main branch. When that release PR is merged, the publish will happen.

I believe the name is on point given that explanation. WDYT?

runs-on: ubuntu-latest
steps:
- name: Enable auto-merge on release PRs
env:
GH_TOKEN: ${{ secrets.LOCALSTACK_BOT_TOKEN }}
GH_REPO: ${{ github.repository }}
run: |
gh pr list \
--label "autorelease: pending" \
--state open \
--json number \
--jq '.[].number' | \
while read -r pr; do
echo "Enabling auto-merge on PR #$pr"
gh pr merge "$pr" --auto --squash
done
Loading