check_if_support_labeled.yml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. name: Check if labeled support, if so send message and close issue
  2. on:
  3. issues:
  4. types:
  5. - labeled
  6. jobs:
  7. add-comment:
  8. if: github.event.label.name == 'support'
  9. runs-on: ubuntu-latest
  10. permissions:
  11. issues: write
  12. steps:
  13. - name: Add comment
  14. run: gh issue comment "$NUMBER" --body "$BODY"
  15. env:
  16. GH_TOKEN: ${{ secrets.SUPPORTISSUES_ACTION_PAT }}
  17. GH_REPO: ${{ github.repository }}
  18. NUMBER: ${{ github.event.issue.number }}
  19. BODY: |
  20. **THIS IS A AUTOMATED MESSAGE!**
  21. It seems your issue is not a bug.
  22. Therefore we highly advise you to get support!
  23. You can get support either by:
  24. - ordering a paid [support contract at Servercow](https://www.servercow.de/mailcow?lang=en#support/) (Directly from the developers) or
  25. - using the [community forum](https://community.mailcow.email) (**Based on volunteers! NO guaranteed answer**) or
  26. - using the [Telegram support channel](https://t.me/mailcow) (**Based on volunteers! NO guaranteed answer**)
  27. This issue will be closed. If you think your reported issue is not a support case feel free to comment above and if so the issue will reopened.
  28. - name: Close issue
  29. env:
  30. GH_TOKEN: ${{ secrets.SUPPORTISSUES_ACTION_PAT }}
  31. GH_REPO: ${{ github.repository }}
  32. NUMBER: ${{ github.event.issue.number }}
  33. run: gh issue close "$NUMBER" -r "not planned"