Skip to content

Commit 24c6614

Browse files
authored
Add workflows for issue cleanup (#1873)
1 parent 4ab6989 commit 24c6614

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Info Needed Closer
2+
on:
3+
schedule:
4+
- cron: 30 5 * * * # 10:30pm PT
5+
workflow_dispatch:
6+
7+
jobs:
8+
main:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Actions
12+
uses: actions/checkout@v2
13+
with:
14+
repository: "microsoft/vscode-github-triage-actions"
15+
path: ./actions
16+
ref: stable
17+
- name: Install Actions
18+
run: npm install --production --prefix ./actions
19+
- name: Run Info Needed Closer
20+
uses: ./actions/needs-more-info-closer
21+
with:
22+
app_id: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_ID }}
23+
app_installation_id: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_INSTALLATION_ID }}
24+
app_private_key: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_PRIVATE_KEY }}
25+
label: info-needed
26+
closeDays: 14
27+
closeComment: "This issue has been closed automatically because it needs more information and has not had recent activity. See also our [issue reporting](https://aka.ms/azcodeissuereporting) guidelines.\n\nHappy Coding!"
28+
pingDays: 80
29+
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."

.github/workflows/locker.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Locker
2+
on:
3+
schedule:
4+
- cron: 0 5 * * * # 10:00pm PT
5+
workflow_dispatch:
6+
7+
jobs:
8+
main:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout Actions
12+
uses: actions/checkout@v2
13+
with:
14+
repository: "microsoft/vscode-github-triage-actions"
15+
path: ./actions
16+
ref: stable
17+
- name: Install Actions
18+
run: npm install --production --prefix ./actions
19+
- name: Run Locker
20+
uses: ./actions/locker
21+
with:
22+
app_id: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_ID }}
23+
app_installation_id: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_INSTALLATION_ID }}
24+
app_private_key: ${{ secrets.AZURETOOLS_VSCODE_BOT_APP_PRIVATE_KEY }}
25+
daysSinceClose: 45
26+
daysSinceUpdate: 7

0 commit comments

Comments
 (0)