Skip to content

Commit 3e9b503

Browse files
Update locker and info-needed-closer workflows to use reusable templates (#346)
* Initial plan * Update locker and info-needed-closer workflows to use reusable templates Co-authored-by: bwateratmsft <36966225+bwateratmsft@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: bwateratmsft <36966225+bwateratmsft@users.noreply.github.com>
1 parent d00b365 commit 3e9b503

File tree

2 files changed

+9
-39
lines changed

2 files changed

+9
-39
lines changed

.github/workflows/info-needed-closer.yml

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,10 @@ on:
44
- cron: 30 5 * * * # 10:30pm PT
55
workflow_dispatch:
66

7+
permissions:
8+
issues: write
9+
contents: read
10+
711
jobs:
812
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."
13+
uses: microsoft/vscode-azuretools/.github/workflows/info-needed-closer.yml@main

.github/workflows/locker.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,9 @@ on:
44
- cron: 0 5 * * * # 10:00pm PT
55
workflow_dispatch:
66

7+
permissions:
8+
issues: write
9+
710
jobs:
811
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
12+
uses: microsoft/vscode-azuretools/.github/workflows/locker.yml@main

0 commit comments

Comments
 (0)