Skip to content

Commit 0facba3

Browse files
author
Jackson Kearl
committed
Coelece actions
1 parent 51edf48 commit 0facba3

9 files changed

Lines changed: 106 additions & 49 deletions

.github/workflows/author-verified.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ on:
44
schedule:
55
- cron: 20 14 * * * # 4:20pm Zurich
66
issues:
7-
types: [labeled, closed]
7+
types: [closed]
88

9+
# also make changes in ./on-label.yml
910
jobs:
1011
main:
1112
runs-on: ubuntu-latest

.github/workflows/commands.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ name: Commands
22
on:
33
issue_comment:
44
types: [created]
5-
issues:
6-
types: [labeled]
75

6+
# also make changes in ./on-label.yml
87
jobs:
98
main:
109
runs-on: ubuntu-latest
@@ -13,11 +12,12 @@ jobs:
1312
uses: actions/checkout@v2
1413
with:
1514
repository: 'microsoft/vscode-github-triage-actions'
15+
path: ./actions
1616
ref: v1
1717
- name: Install Actions
18-
run: npm install --production
18+
run: npm install --production --prefix ./actions
1919
- name: Run Commands
20-
uses: ./commands
20+
uses: ./actions/commands
2121
with:
2222
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
2323
config-path: commands

.github/workflows/feature-request.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ name: Feature Request Manager
22
on:
33
repository_dispatch:
44
issues:
5-
types: [labeled, milestoned]
5+
types: [milestoned]
66
schedule:
77
- cron: 20 2 * * * # 4:20am Zurich
88

9+
# also make changes in ./on-label.yml
910
jobs:
1011
main:
1112
runs-on: ubuntu-latest
@@ -15,13 +16,14 @@ jobs:
1516
uses: actions/checkout@v2
1617
with:
1718
repository: 'microsoft/vscode-github-triage-actions'
19+
path: ./actions
1820
ref: v1
1921
- name: Install Actions
2022
if: github.event_name != 'issues' || contains(github.event.issue.labels.*.name, 'feature-request')
21-
run: npm install --production
23+
run: npm install --production --prefix ./actions
2224
- name: Run Feature Request Manager
2325
if: github.event_name != 'issues' || contains(github.event.issue.labels.*.name, 'feature-request')
24-
uses: ./feature-request
26+
uses: ./actions/feature-request
2527
with:
2628
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
2729
candidateMilestoneID: 107

.github/workflows/locker.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@ on:
44
- cron: 20 23 * * * # 4:20pm Redmond
55
repository_dispatch:
66

7-
# Note for locker:
8-
# The query for is:unlocked will return issues that have only recently been locked
9-
# `Recent` can be a large number of days (I've seen up to 10)
10-
# This thus has the potential to burn through more quota than it probably ought to
11-
# Run sparingly.
12-
137
jobs:
148
main:
159
runs-on: ubuntu-latest
@@ -18,11 +12,12 @@ jobs:
1812
uses: actions/checkout@v2
1913
with:
2014
repository: 'microsoft/vscode-github-triage-actions'
15+
path: ./actions
2116
ref: v1
2217
- name: Install Actions
23-
run: npm install --production
18+
run: npm install --production --prefix ./actions
2419
- name: Run Locker
25-
uses: ./locker
20+
uses: ./actions/locker
2621
with:
2722
daysSinceClose: 45
2823
daysSinceUpdate: 3

.github/workflows/needs-more-info-closer.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ jobs:
1212
uses: actions/checkout@v2
1313
with:
1414
repository: 'microsoft/vscode-github-triage-actions'
15+
path: ./actions
1516
ref: v1
1617
- name: Install Actions
17-
run: npm install --production
18+
run: npm install --production --prefix ./actions
1819
- name: Run Needs More Info Closer
19-
uses: ./needs-more-info-closer
20+
uses: ./actions/needs-more-info-closer
2021
with:
2122
label: needs more info
2223
closeDays: 7

.github/workflows/new-release.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/on-label.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: On Label
2+
on:
3+
issues:
4+
types: [opened]
5+
6+
jobs:
7+
main:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Actions
11+
uses: actions/checkout@v2
12+
with:
13+
repository: 'microsoft/vscode-github-triage-actions'
14+
ref: v1
15+
path: ./actions
16+
- name: Install Actions
17+
run: npm install --production --prefix ./actions
18+
19+
# source of truth in ./author-verified.yml
20+
- name: Checkout Repo
21+
if: contains(github.event.issue.labels.*.name, 'author-verification-requested')
22+
uses: actions/checkout@v2
23+
with:
24+
path: ./repo
25+
fetch-depth: 0
26+
- name: Run Author Verified
27+
if: contains(github.event.issue.labels.*.name, 'author-verification-requested')
28+
uses: ./actions/author-verified
29+
with:
30+
requestVerificationComment: "This bug has been fixed in to the latest release of [VS Code Insiders](https://code.visualstudio.com/insiders/)!\n\n@${author}, you can help us out by confirming things are working as expected in the latest Insiders release. If things look good, please leave a comment with the text `/verified` to let us know. If not, please ensure you're on version ${commit} of Insiders (today's or later - you can use `Help: About` in the command pallete to check), and leave a comment letting us know what isn't working as expected.\n\nHappy Coding!"
31+
pendingReleaseLabel: awaiting-insiders-release
32+
authorVerificationRequestedLabel: author-verification-requested
33+
34+
# source of truth in ./commands.yml
35+
- name: Run Commands
36+
uses: ./actions/commands
37+
with:
38+
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
39+
config-path: commands
40+
41+
42+
# source of truth in ./feature-request.yml
43+
- name: Run Feature Request Manager
44+
if: contains(github.event.issue.labels.*.name, 'feature-request')
45+
uses: ./actions/feature-request
46+
with:
47+
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
48+
candidateMilestoneID: 107
49+
candidateMilestoneName: Backlog Candidates
50+
backlogMilestoneID: 8
51+
featureRequestLabel: feature-request
52+
upvotesRequired: 20
53+
numCommentsOverride: 20
54+
initComment: "This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle).\n\nHappy Coding!"
55+
warnComment: "This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle).\n\nHappy Coding"
56+
acceptComment: ":slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle).\n\nHappy Coding!"
57+
rejectComment: ":slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our [documentation](https://aka.ms/vscode-issue-lifecycle).\n\nHappy Coding!"
58+
warnDays: 10
59+
closeDays: 60
60+
milestoneDelaySeconds: 60
61+
62+
# source of truth in ./test-plan-item-validator.yml
63+
- name: Run Test Plan Item Validator
64+
if: contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item')
65+
uses: ./actions/test-plan-item-validator
66+
with:
67+
label: testplan-item
68+
invalidLabel: invalid-testplan-item
69+
comment: Invalid test plan item. See errors below and the [test plan item spec](https://github.com/microsoft/vscode/wiki/Writing-Test-Plan-Items) for more information. This comment will go away when the issues are resolved.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: CopyCat
1+
name: On Label
22
on:
33
issues:
4-
types: [opened]
4+
types: [labeled]
55

66
jobs:
77
main:
@@ -12,17 +12,27 @@ jobs:
1212
with:
1313
repository: 'microsoft/vscode-github-triage-actions'
1414
ref: v1
15+
path: ./actions
1516
- name: Install Actions
16-
run: npm install --production
17+
run: npm install --production --prefix ./actions
18+
1719
- name: Run CopyCat (JacksonKearl/testissues)
18-
uses: ./copycat
20+
uses: ./actions/copycat
1921
with:
2022
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
2123
owner: JacksonKearl
2224
repo: testissues
2325
- name: Run CopyCat (chrmarti/testissues)
24-
uses: ./copycat
26+
uses: ./actions/copycat
2527
with:
2628
token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
2729
owner: chrmarti
2830
repo: testissues
31+
32+
- name: Run New Release
33+
uses: ./actions/new-release
34+
with:
35+
label: new release
36+
labelColor: "006b75"
37+
labelDescription: Issues found in a recent release of VS Code
38+
days: 5

.github/workflows/test-plan-item-validator.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: Test Plan Item Validator
22
on:
33
issues:
4-
types: [edited, labeled]
4+
types: [edited]
55

6+
# also edit in ./on-label.yml
67
jobs:
78
main:
89
runs-on: ubuntu-latest
@@ -12,13 +13,14 @@ jobs:
1213
uses: actions/checkout@v2
1314
with:
1415
repository: 'microsoft/vscode-github-triage-actions'
16+
path: ./actions
1517
ref: v1
1618
- name: Install Actions
1719
if: contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item')
18-
run: npm install --production
20+
run: npm install --production --prefix ./actions
1921
- name: Run Test Plan Item Validator
2022
if: contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item')
21-
uses: ./test-plan-item-validator
23+
uses: ./actions/test-plan-item-validator
2224
with:
2325
label: testplan-item
2426
invalidLabel: invalid-testplan-item

0 commit comments

Comments
 (0)