Skip to content

Commit 23f6f39

Browse files
chore: update label management (#340)
1 parent bfb52ef commit 23f6f39

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

.github/workflows/issue-labels.yaml

+11-2
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,20 @@ jobs:
2424
with:
2525
labels: 'Needs Attention'
2626
env:
27-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828
- name: Remove 'blocked customer-response' label if OP responded
2929
if: env.op_comment == 'true'
3030
uses: actions-ecosystem/action-remove-labels@v1
3131
with:
3232
labels: 'blocked: customer-response'
3333
env:
34-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
label-new-issue:
36+
runs-on: ubuntu-latest
37+
steps:
38+
- name: Add 'Needs Attention' label to new issue
39+
uses: actions-ecosystem/action-add-labels@v1
40+
with:
41+
labels: 'Needs Attention'
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/stale-issue.yaml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Mark stale issues and pull requests
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: 35 * * * *
7+
permissions:
8+
contents: read
9+
jobs:
10+
stale:
11+
permissions:
12+
issues: write
13+
pull-requests: write
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/stale@v9
17+
with:
18+
operations-per-run: 1000
19+
stale-issue-message: |
20+
Hello 👋, to help manage issues we automatically close stale issues.
21+
22+
This issue has been automatically marked as stale because it has not had activity for quite some time.Has this issue been fixed, or does it still require attention?
23+
24+
> This issue will be closed in 15 days if no further activity occurs.
25+
26+
Thank you for your contributions.
27+
stale-pr-message: |
28+
Hello 👋, this PR has been opened for more than 2 months with no activity on it.
29+
30+
If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing!
31+
32+
You have 15 days until this gets closed automatically
33+
exempt-issue-labels: 'keep open'
34+
exempt-pr-labels: 'keep open'
35+
close-issue-reason: not_planned
36+
days-before-stale: 28
37+
days-before-close: 15
38+
stale-issue-label: 'Stale'

0 commit comments

Comments
 (0)