From: Flole998 Date: Sat, 3 Feb 2024 20:39:35 +0000 (+0100) Subject: Automatically comment on PRs needing squash X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac4a041e00529ba5325755061cd6caef0e3e8210;p=thirdparty%2Ftvheadend.git Automatically comment on PRs needing squash --- diff --git a/.github/workflows/comment-on-labels.yml b/.github/workflows/comment-on-labels.yml new file mode 100644 index 000000000..4235a384b --- /dev/null +++ b/.github/workflows/comment-on-labels.yml @@ -0,0 +1,21 @@ +name: Add comment +on: + pull_request: + types: + - labeled +jobs: + add-comment: + if: github.event.label.name == 'SQUASH' + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - name: Add comment + run: gh issue comment "$NUMBER" --body "$BODY" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} + NUMBER: ${{ github.event.issue.number }} + BODY: > + Please squash your commits together in order to get htem merged + :sparkles: Thank you for your contribution! :sparkles: