feat: issue automation with comments and auto-assign (#69)

* - add actions to automate comment and assign an issue

* - update issues
This commit is contained in:
Bello Oluwatomisin
2023-12-03 09:55:56 +03:00
committed by GitHub
parent a72021fcc2
commit 4b69867d6b
2 changed files with 46 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
name: "Assign issues with .take"
on:
issue_comment:
types:
- created
- edited
jobs:
take-issue:
name: Disable take issue
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Disable take an issue
uses: bdougie/take-action@v1.6
with:
message: Thanks for taking this issue! Let us know if you have any questions!
trigger: .take
issueCurrentlyAssignedMessage: Thanks for being interested in this issue. It looks like this ticket is already assigned to a contributor.
token: ${{ secrets.GITHUB_TOKEN }}
blockingLabels: 👀 needs triage,blocked,core team work,needs design,duplicate
blockingLabelsMessage: The issue you are trying to assign yourself is blocked by the label on the issue.
+23
View File
@@ -0,0 +1,23 @@
name: Automatic Comment
on:
issues:
types: [opened]
permissions:
contents: read
jobs:
comment:
permissions:
issues: write
pull-requests: write
name: Comment
runs-on: ubuntu-latest
steps:
- name: Automatic Comment
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.issue.number }}
body: |
Thanks for the issue, our team will look into it as soon as possible. If you would like to work on this issue, please wait for us to decide if it's ready. To claim an issue that does not have the "needs triage" label, please leave a comment that says ".take". If you have any questions, please reach out to us on [Discord](https://discord.gg/KJUb2AwM) or follow up on the issue itself.
For full info on how to contribute, please check out our [contributors guide](../contributor guide)