From 1142251779c13e9fb2affe6644b5810affe195cf Mon Sep 17 00:00:00 2001 From: Esther White Date: Mon, 18 Mar 2024 10:22:19 +0200 Subject: [PATCH] basic workflows --- .github/workflows/issue.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/triage.yml | 21 +++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 .github/workflows/issue.yml create mode 100644 .github/workflows/triage.yml diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml new file mode 100644 index 0000000..06eeb41 --- /dev/null +++ b/.github/workflows/issue.yml @@ -0,0 +1,28 @@ +# This workflow posts an automated comment on every new issue +# https://github.com/marketplace/actions/create-or-update-comment (https://github.com/peter-evans/create-or-update-comment) + +name: Automatic Comment +on: + issues: + types: [opened] +permissions: + contents: read + +jobs: + comment: + permissions: + issues: write # for peter-evans/create-or-update-comment to create or update comment + pull-requests: write # for peter-evans/create-or-update-comment to create or update comment + 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. The issue will be ready to work on once we remove the "needs triage" label. + + 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/SQCFCACz) or follow up on the issue itself. + + For full info on how to contribute, please check out our [contributors guide](https://anguhashblog.com/contributing). \ No newline at end of file diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml new file mode 100644 index 0000000..ca30672 --- /dev/null +++ b/.github/workflows/triage.yml @@ -0,0 +1,21 @@ +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: take an issue + uses: bdougie/take-action@v1.6.1 + with: + issueCurrentlyAssignedMessage: Thanks for being interested in this issue. It looks like this ticket is already assigned to a contributor. + token: ${{ secrets.ACCESS_TOKEN }} + blockingLabels: 👀 needs triage,blocked,core team work,📛 prerequisites missing,needs design,duplicate + blockingLabelsMessage: The issue you are trying to assign yourself is blocked either by the 'needs triage' label, or by another label on the issue. Please wait until the issue is unblocked before assigning yourself. \ No newline at end of file