mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 09:01:16 +00:00
add auto-merge workflow for all PRs
This commit is contained in:
parent
5c8b59529c
commit
1217c22652
1 changed files with 21 additions and 0 deletions
21
.github/workflows/auto-merge.yml
vendored
Normal file
21
.github/workflows/auto-merge.yml
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
name: auto-merge
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [opened, synchronize, reopened]
|
||||||
|
branches: [main]
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
enable-auto-merge:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Enable auto-merge
|
||||||
|
run: gh pr merge --auto --squash "$PR_NUMBER"
|
||||||
|
env:
|
||||||
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
GH_REPO: ${{ github.repository }}
|
||||||
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue