Ga auto comment (#3578)

This commit is contained in:
Deborah Barnard 2025-08-29 14:31:15 +01:00 committed by GitHub
parent 31471ed9fd
commit 79895e0081
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ on:
- labeled
jobs:
handle-labels:
if: contains(fromJSON('["spam", "ai-slop", "low-effort-bad", "duplicate", "dev-cancelled", "pending-dev", "in-next-release"]'), github.event.label.name)
if: contains(fromJSON('["spam", "ai-slop", "low-effort-bad", "duplicate", "dev-cancelled", "pending-dev", "in-next-release", "old-course"]'), github.event.label.name)
runs-on: ubuntu-latest
permissions:
issues: write
@ -36,19 +36,6 @@ jobs:
"duplicate")
echo "comment=@$AUTHOR This duplicates another issue or PR, or the work was already done elsewhere. Please review n8n's [contributing](${{ env.CONTRIBUTING_LINK }}) guidelines." >> $GITHUB_OUTPUT
echo "should_close=true" >> $GITHUB_OUTPUT
;;
"dev-cancelled")
echo "comment=Hi @$AUTHOR, thanks for the pull request! \n It looks like the PR in the main repo was closed. I'm going to go ahead and close this one too since this depends on the main repo submission being accepted. Please let me know if the status changes, however, and we can re-open as needed." >> $GITHUB_OUTPUT
echo "should_close=true" >> $GITHUB_OUTPUT
;;
"pending-dev")
echo "comment=Thanks @AUTHOR! We'll hold off on reviewing this until the PR is ready to go in the main repo." >> $GITHUB_OUTPUT
echo "should_close=false" >> $GITHUB_OUTPUT
;;
"in-next-release")
echo "comment=Holding off on merging until this is released." >> $GITHUB_OUTPUT
echo "should_close=false" >> $GITHUB_OUTPUT
;;
"old-course")
echo "comment=Hi @AUTHOR! Thanks for your contribution, but we are no longer updating the course. We expect to fully replace it in the coming months. Please review n8n's [contributing](${{ env.CONTRIBUTING_LINK }}) guidelines." >> $GITHUB_OUTPUT
echo "should_close=true" >> $GITHUB_OUTPUT