diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-08-09 15:21:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-08-09 15:21:50 +0200 |
| commit | 7dbbd5d8b1831ae190fe29cc6630b08cbc90c568 (patch) | |
| tree | 4fe618e7bb0a55334119d01954b7c7422e4bd3ac /.github/workflows | |
| parent | 9ef7003c38c3be31e47732256fd591b5884613d1 (diff) | |
| download | rneovim-7dbbd5d8b1831ae190fe29cc6630b08cbc90c568.tar.gz rneovim-7dbbd5d8b1831ae190fe29cc6630b08cbc90c568.tar.bz2 rneovim-7dbbd5d8b1831ae190fe29cc6630b08cbc90c568.zip | |
ci: create GitHub Action that squashes all typo PRs into a single PR (#15041)
The action adds all pull-request authors (and Marvim) as a co-author to the
newly created PR and also links to the closed PRs.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/squash-typos.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/.github/workflows/squash-typos.yml b/.github/workflows/squash-typos.yml new file mode 100644 index 0000000000..6f5e24a9b6 --- /dev/null +++ b/.github/workflows/squash-typos.yml @@ -0,0 +1,32 @@ +name: Squash Typo Pull Requests + +on: + pull_request: + types: labeled +concurrency: + group: ${{ github.workflow }} +jobs: + build: + if: github.event.label.name == 'typo' + runs-on: ubuntu-latest + + permissions: + contents: write + pull-requests: write + + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + ref: master + - uses: actions/setup-python@v2 + + - name: Setup git config + run: | + git config --global user.name 'marvim' + git config --global user.email 'marvim@users.noreply.github.com' + + - run: python scripts/squash_typos.py |