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
14 changes: 10 additions & 4 deletions .github/workflows/flake-bump-auto-approve.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Flake bump auto approve
on:
pull_request:
pull_request_target:
paths:
- 'flake.lock'
branches:
Expand All @@ -10,12 +10,18 @@ jobs:
gitlint:
name: Flake bump auto approve
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
ref: ${{ github.event.pull_request.base.sha }}
fetch-depth: 0
- name: Fetch pull request head
run: |
git fetch --no-tags origin \
+refs/pull/${{ github.event.pull_request.number }}/head:refs/remotes/origin/pr-head
- name: Set up Python 3.11
uses: actions/setup-python@v6
with:
Expand All @@ -29,7 +35,7 @@ jobs:
id: gitlint
run: |
set +e
gitlint --commits origin/$GITHUB_BASE_REF.. -C .gitlint_auto_approve
gitlint --commits ${{ github.event.pull_request.base.sha }}..refs/remotes/origin/pr-head -C .gitlint_auto_approve
code=$?
if [ $code -eq 0 ]; then
echo "this merge request is eligible for a flake bump auto approve and merge"
Expand Down Expand Up @@ -68,5 +74,5 @@ jobs:
--method PUT \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2026-03-10" \
/repos/${GITHUB_REPOSITORY}/pulls/${{ github.event.number }}/merge \
/repos/${GITHUB_REPOSITORY}/pulls/${{ github.event.pull_request.number }}/merge \
-f 'merge_method=rebase'
Loading