Skip to content

Commit b2ad3f7

Browse files
authored
Merge pull request #46 from AnguHashBlog/main
basic workflows
2 parents 91e4199 + 1142251 commit b2ad3f7

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/issue.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# This workflow posts an automated comment on every new issue
2+
# https://github.com/marketplace/actions/create-or-update-comment (https://github.com/peter-evans/create-or-update-comment)
3+
4+
name: Automatic Comment
5+
on:
6+
issues:
7+
types: [opened]
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
comment:
13+
permissions:
14+
issues: write # for peter-evans/create-or-update-comment to create or update comment
15+
pull-requests: write # for peter-evans/create-or-update-comment to create or update comment
16+
name: Comment
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Automatic Comment
20+
uses: peter-evans/create-or-update-comment@v2
21+
with:
22+
issue-number: ${{ github.event.issue.number }}
23+
body: |
24+
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.
25+
26+
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.
27+
28+
For full info on how to contribute, please check out our [contributors guide](https://anguhashblog.com/contributing).

.github/workflows/triage.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: "Assign issues with .take"
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
- edited
8+
9+
jobs:
10+
take-issue:
11+
name: Disable take issue
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 10
14+
steps:
15+
- name: take an issue
16+
uses: bdougie/take-action@v1.6.1
17+
with:
18+
issueCurrentlyAssignedMessage: Thanks for being interested in this issue. It looks like this ticket is already assigned to a contributor.
19+
token: ${{ secrets.ACCESS_TOKEN }}
20+
blockingLabels: 👀 needs triage,blocked,core team work,📛 prerequisites missing,needs design,duplicate
21+
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.

0 commit comments

Comments
 (0)