Skip to content

Commit 64dcf27

Browse files
Add labels actions
1 parent 086d090 commit 64dcf27

File tree

2 files changed

+86
-0
lines changed

2 files changed

+86
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Info-Needed Closer
2+
on:
3+
schedule:
4+
- cron: 20 12 * * * # 5:20am Redmond
5+
repository_dispatch:
6+
types: [trigger-needs-more-info]
7+
workflow_dispatch:
8+
9+
permissions:
10+
issues: write
11+
12+
jobs:
13+
main:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Actions
17+
uses: actions/checkout@v4
18+
with:
19+
repository: 'microsoft/vscode-github-triage-actions'
20+
path: ./actions
21+
ref: stable
22+
- name: Install Actions
23+
run: npm install --production --prefix ./actions
24+
- name: Run info-needed Closer
25+
uses: ./actions/needs-more-info-closer
26+
with:
27+
token: ${{secrets.GITHUB_TOKEN}}
28+
label: info-needed
29+
closeDays: 30
30+
closeComment: "Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off. \n\nHappy Coding!"
31+
pingDays: 30
32+
pingComment: "Hey @${assignee}, this issue might need further attention.\n\n@${author}, you can help us out by closing this issue if the problem no longer exists, or adding more information."
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Triage "info-needed" label
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
env:
8+
TRIAGERS: '["paulacamargo25"]'
9+
10+
permissions:
11+
issues: write
12+
13+
jobs:
14+
add_label:
15+
runs-on: ubuntu-latest
16+
if: contains(github.event.issue.labels.*.name, 'triage-needed') && !contains(github.event.issue.labels.*.name, 'info-needed')
17+
steps:
18+
- name: Checkout Actions
19+
uses: actions/checkout@v4
20+
with:
21+
repository: 'microsoft/vscode-github-triage-actions'
22+
ref: stable
23+
path: ./actions
24+
25+
- name: Install Actions
26+
run: npm install --production --prefix ./actions
27+
28+
- name: Add "info-needed" label
29+
uses: ./actions/python-triage-info-needed
30+
with:
31+
triagers: ${{ env.TRIAGERS }}
32+
action: 'add'
33+
token: ${{secrets.GITHUB_TOKEN}}
34+
35+
remove_label:
36+
if: contains(github.event.issue.labels.*.name, 'info-needed') && contains(github.event.issue.labels.*.name, 'triage-needed')
37+
runs-on: ubuntu-latest
38+
steps:
39+
- name: Checkout Actions
40+
uses: actions/checkout@v4
41+
with:
42+
repository: 'microsoft/vscode-github-triage-actions'
43+
ref: stable
44+
path: ./actions
45+
46+
- name: Install Actions
47+
run: npm install --production --prefix ./actions
48+
49+
- name: Remove "info-needed" label
50+
uses: ./actions/python-triage-info-needed
51+
with:
52+
triagers: ${{ env.TRIAGERS }}
53+
action: 'remove'
54+
token: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)