Skip to content

Commit

Permalink
Apply autosquash GHA (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
markelliot authored Nov 24, 2022
1 parent 53281cf commit 56ea39f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/autosquash.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: autosquash
on:
pull_request:
types:
- opened
- synchronized
- reopened
- edited
- labeled
- unlabeled
- ready_for_review
jobs:
autosquash:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: theoremlp/autosquash@v1
with:
github-token: ${{ secrets.GH_PUSH_TO_REPO_TOKEN }}
pull-request-number: ${{ github.event.pull_request.number }}
squash-commit-title: "${{ github.event.pull_request.title }} (#${{ github.event.pull_request.number }})"
squash-commit-message: "${{ github.event.pull_request.body }}"
do-not-merge-label: "do not merge"
# the setup for this repo is:
# - all markelliot's PRs are auto-approved using required-reviewers
# - if we don't ignore markelliot for autosquash, all PRs will merge on first successful build
# ignoring markelliot here leaves self-merge on the table and prevents an unexpected automerge
ignore-author: markelliot

0 comments on commit 56ea39f

Please sign in to comment.