diff --git a/.github/workflows/author-verified.yml b/.github/workflows/author-verified.yml index 7cf7941b7e8..4ef787666f7 100644 --- a/.github/workflows/author-verified.yml +++ b/.github/workflows/author-verified.yml @@ -4,8 +4,9 @@ on: schedule: - cron: 20 14 * * * # 4:20pm Zurich issues: - types: [labeled, closed] + types: [closed] +# also make changes in ./on-label.yml jobs: main: runs-on: ubuntu-latest diff --git a/.github/workflows/commands.yml b/.github/workflows/commands.yml index b9f56e0e193..55d88b3d539 100644 --- a/.github/workflows/commands.yml +++ b/.github/workflows/commands.yml @@ -2,9 +2,8 @@ name: Commands on: issue_comment: types: [created] - issues: - types: [labeled] +# also make changes in ./on-label.yml jobs: main: runs-on: ubuntu-latest @@ -13,11 +12,12 @@ jobs: uses: actions/checkout@v2 with: repository: 'microsoft/vscode-github-triage-actions' + path: ./actions ref: v1 - name: Install Actions - run: npm install --production + run: npm install --production --prefix ./actions - name: Run Commands - uses: ./commands + uses: ./actions/commands with: token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} config-path: commands diff --git a/.github/workflows/feature-request.yml b/.github/workflows/feature-request.yml index ad76a1853a1..1b1eeec5d0d 100644 --- a/.github/workflows/feature-request.yml +++ b/.github/workflows/feature-request.yml @@ -2,10 +2,11 @@ name: Feature Request Manager on: repository_dispatch: issues: - types: [labeled, milestoned] + types: [milestoned] schedule: - cron: 20 2 * * * # 4:20am Zurich +# also make changes in ./on-label.yml jobs: main: runs-on: ubuntu-latest @@ -15,13 +16,14 @@ jobs: uses: actions/checkout@v2 with: repository: 'microsoft/vscode-github-triage-actions' + path: ./actions ref: v1 - name: Install Actions if: github.event_name != 'issues' || contains(github.event.issue.labels.*.name, 'feature-request') - run: npm install --production + run: npm install --production --prefix ./actions - name: Run Feature Request Manager if: github.event_name != 'issues' || contains(github.event.issue.labels.*.name, 'feature-request') - uses: ./feature-request + uses: ./actions/feature-request with: token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} candidateMilestoneID: 107 diff --git a/.github/workflows/locker.yml b/.github/workflows/locker.yml index 9c20bb29851..0dc1318448b 100644 --- a/.github/workflows/locker.yml +++ b/.github/workflows/locker.yml @@ -4,12 +4,6 @@ on: - cron: 20 23 * * * # 4:20pm Redmond repository_dispatch: -# Note for locker: -# The query for is:unlocked will return issues that have only recently been locked -# `Recent` can be a large number of days (I've seen up to 10) -# This thus has the potential to burn through more quota than it probably ought to -# Run sparingly. - jobs: main: runs-on: ubuntu-latest @@ -18,11 +12,12 @@ jobs: uses: actions/checkout@v2 with: repository: 'microsoft/vscode-github-triage-actions' + path: ./actions ref: v1 - name: Install Actions - run: npm install --production + run: npm install --production --prefix ./actions - name: Run Locker - uses: ./locker + uses: ./actions/locker with: daysSinceClose: 45 daysSinceUpdate: 3 diff --git a/.github/workflows/needs-more-info-closer.yml b/.github/workflows/needs-more-info-closer.yml index aa1fabb21e4..c91dd1002bb 100644 --- a/.github/workflows/needs-more-info-closer.yml +++ b/.github/workflows/needs-more-info-closer.yml @@ -12,11 +12,12 @@ jobs: uses: actions/checkout@v2 with: repository: 'microsoft/vscode-github-triage-actions' + path: ./actions ref: v1 - name: Install Actions - run: npm install --production + run: npm install --production --prefix ./actions - name: Run Needs More Info Closer - uses: ./needs-more-info-closer + uses: ./actions/needs-more-info-closer with: label: needs more info closeDays: 7 diff --git a/.github/workflows/new-release.yml b/.github/workflows/new-release.yml deleted file mode 100644 index 0a89d9f4e99..00000000000 --- a/.github/workflows/new-release.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: New Release -on: - issues: - types: [opened] - -jobs: - main: - runs-on: ubuntu-latest - steps: - - name: Checkout Actions - uses: actions/checkout@v2 - with: - repository: 'microsoft/vscode-github-triage-actions' - ref: v1 - - name: Install Actions - run: npm install --production - - name: Run New Release - uses: ./new-release - with: - label: new release - labelColor: "006b75" - labelDescription: Issues found in a recent release of VS Code - days: 5 diff --git a/.github/workflows/on-label.yml b/.github/workflows/on-label.yml new file mode 100644 index 00000000000..bd45a67f693 --- /dev/null +++ b/.github/workflows/on-label.yml @@ -0,0 +1,69 @@ +name: On Label +on: + issues: + types: [opened] + +jobs: + main: + runs-on: ubuntu-latest + steps: + - name: Checkout Actions + uses: actions/checkout@v2 + with: + repository: 'microsoft/vscode-github-triage-actions' + ref: v1 + path: ./actions + - name: Install Actions + run: npm install --production --prefix ./actions + + # source of truth in ./author-verified.yml + - name: Checkout Repo + if: contains(github.event.issue.labels.*.name, 'author-verification-requested') + uses: actions/checkout@v2 + with: + path: ./repo + fetch-depth: 0 + - name: Run Author Verified + if: contains(github.event.issue.labels.*.name, 'author-verification-requested') + uses: ./actions/author-verified + with: + 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!" + pendingReleaseLabel: awaiting-insiders-release + authorVerificationRequestedLabel: author-verification-requested + + # source of truth in ./commands.yml + - name: Run Commands + uses: ./actions/commands + with: + token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} + config-path: commands + + + # source of truth in ./feature-request.yml + - name: Run Feature Request Manager + if: contains(github.event.issue.labels.*.name, 'feature-request') + uses: ./actions/feature-request + with: + token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} + candidateMilestoneID: 107 + candidateMilestoneName: Backlog Candidates + backlogMilestoneID: 8 + featureRequestLabel: feature-request + upvotesRequired: 20 + numCommentsOverride: 20 + 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!" + 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" + 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!" + 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!" + warnDays: 10 + closeDays: 60 + milestoneDelaySeconds: 60 + + # source of truth in ./test-plan-item-validator.yml + - name: Run Test Plan Item Validator + if: contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item') + uses: ./actions/test-plan-item-validator + with: + label: testplan-item + invalidLabel: invalid-testplan-item + 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. diff --git a/.github/workflows/copycat.yml b/.github/workflows/on-open.yml similarity index 59% rename from .github/workflows/copycat.yml rename to .github/workflows/on-open.yml index 6fbbb57c695..89213e41e3e 100644 --- a/.github/workflows/copycat.yml +++ b/.github/workflows/on-open.yml @@ -1,7 +1,7 @@ -name: CopyCat +name: On Label on: issues: - types: [opened] + types: [labeled] jobs: main: @@ -12,17 +12,27 @@ jobs: with: repository: 'microsoft/vscode-github-triage-actions' ref: v1 + path: ./actions - name: Install Actions - run: npm install --production + run: npm install --production --prefix ./actions + - name: Run CopyCat (JacksonKearl/testissues) - uses: ./copycat + uses: ./actions/copycat with: token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} owner: JacksonKearl repo: testissues - name: Run CopyCat (chrmarti/testissues) - uses: ./copycat + uses: ./actions/copycat with: token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} owner: chrmarti repo: testissues + + - name: Run New Release + uses: ./actions/new-release + with: + label: new release + labelColor: "006b75" + labelDescription: Issues found in a recent release of VS Code + days: 5 diff --git a/.github/workflows/test-plan-item-validator.yml b/.github/workflows/test-plan-item-validator.yml index f58d54bfc98..20c759243c9 100644 --- a/.github/workflows/test-plan-item-validator.yml +++ b/.github/workflows/test-plan-item-validator.yml @@ -1,8 +1,9 @@ name: Test Plan Item Validator on: issues: - types: [edited, labeled] + types: [edited] +# also edit in ./on-label.yml jobs: main: runs-on: ubuntu-latest @@ -12,13 +13,14 @@ jobs: uses: actions/checkout@v2 with: repository: 'microsoft/vscode-github-triage-actions' + path: ./actions ref: v1 - name: Install Actions if: contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item') - run: npm install --production + run: npm install --production --prefix ./actions - name: Run Test Plan Item Validator if: contains(github.event.issue.labels.*.name, 'testplan-item') || contains(github.event.issue.labels.*.name, 'invalid-testplan-item') - uses: ./test-plan-item-validator + uses: ./actions/test-plan-item-validator with: label: testplan-item invalidLabel: invalid-testplan-item