From c5c319e6736bdfec1f3741560efe0e561a03c6c7 Mon Sep 17 00:00:00 2001 From: Jackson Kearl Date: Wed, 10 Jun 2020 00:35:36 -0700 Subject: [PATCH] Bump actions & adopt app insights for actions --- .github/workflows/author-verified.yml | 3 ++- .github/workflows/commands.yml | 3 ++- .github/workflows/english-please.yml | 3 ++- .github/workflows/feature-request.yml | 3 ++- .github/workflows/latest-release-monitor.yml | 3 ++- .github/workflows/locker.yml | 3 ++- .github/workflows/needs-more-info-closer.yml | 3 ++- .github/workflows/on-label.yml | 7 ++++++- .github/workflows/on-open.yml | 7 ++++++- .github/workflows/release-pipeline-labeler.yml | 2 +- .github/workflows/test-plan-item-validator.yml | 3 ++- 11 files changed, 29 insertions(+), 11 deletions(-) diff --git a/.github/workflows/author-verified.yml b/.github/workflows/author-verified.yml index 0363e387584..b6f475e9f9b 100644 --- a/.github/workflows/author-verified.yml +++ b/.github/workflows/author-verified.yml @@ -17,7 +17,7 @@ jobs: uses: actions/checkout@v2 with: repository: 'microsoft/vscode-github-triage-actions' - ref: v24 + ref: v25 path: ./actions - name: Install Actions if: github.event_name != 'issues' || contains(github.event.issue.labels.*.name, 'author-verification-requested') @@ -32,6 +32,7 @@ jobs: if: github.event_name != 'issues' || contains(github.event.issue.labels.*.name, 'author-verification-requested') uses: ./actions/author-verified with: + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} 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 commenting `/verified` if things are now working as expected.\n\nIf things still don't seem right, please ensure you're on version ${commit} of Insiders (today's or later - you can use `Help: About` in the command pallette to check), and leave a comment letting us know what isn't working as expected.\n\nHappy Coding!" pendingReleaseLabel: awaiting-insiders-release diff --git a/.github/workflows/commands.yml b/.github/workflows/commands.yml index c22fe118c4e..cfbd22e5e7f 100644 --- a/.github/workflows/commands.yml +++ b/.github/workflows/commands.yml @@ -13,11 +13,12 @@ jobs: with: repository: 'microsoft/vscode-github-triage-actions' path: ./actions - ref: v24 + ref: v25 - name: Install Actions run: npm install --production --prefix ./actions - name: Run Commands uses: ./actions/commands with: + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} config-path: commands diff --git a/.github/workflows/english-please.yml b/.github/workflows/english-please.yml index a23be77b67f..8b30c51924b 100644 --- a/.github/workflows/english-please.yml +++ b/.github/workflows/english-please.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v2 with: repository: 'microsoft/vscode-github-triage-actions' - ref: v24 + ref: v25 path: ./actions - name: Install Actions if: contains(github.event.issue.labels.*.name, '*english-please') @@ -22,6 +22,7 @@ jobs: if: contains(github.event.issue.labels.*.name, '*english-please') uses: ./actions/english-please with: + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} cognitiveServicesAPIKey: ${{secrets.AZURE_TEXT_TRANSLATOR_KEY}} nonEnglishLabel: "*english-please" diff --git a/.github/workflows/feature-request.yml b/.github/workflows/feature-request.yml index 691dbf45182..ef8b09a172f 100644 --- a/.github/workflows/feature-request.yml +++ b/.github/workflows/feature-request.yml @@ -18,7 +18,7 @@ jobs: with: repository: 'microsoft/vscode-github-triage-actions' path: ./actions - ref: v24 + ref: v25 - name: Install Actions if: github.event_name != 'issues' || contains(github.event.issue.labels.*.name, 'feature-request') run: npm install --production --prefix ./actions @@ -26,6 +26,7 @@ jobs: if: github.event_name != 'issues' || contains(github.event.issue.labels.*.name, 'feature-request') uses: ./actions/feature-request with: + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} candidateMilestoneID: 107 candidateMilestoneName: Backlog Candidates diff --git a/.github/workflows/latest-release-monitor.yml b/.github/workflows/latest-release-monitor.yml index b0fbc392133..d33a2bea19a 100644 --- a/.github/workflows/latest-release-monitor.yml +++ b/.github/workflows/latest-release-monitor.yml @@ -12,7 +12,7 @@ jobs: with: repository: 'microsoft/vscode-github-triage-actions' path: ./actions - ref: v24 + ref: v25 - name: Install Actions run: npm install --production --prefix ./actions - name: Install Storage Module @@ -21,4 +21,5 @@ jobs: uses: ./actions/latest-release-monitor with: storageKey: ${{secrets.AZURE_BLOB_STORAGE_CONNECTION_STRING_NEW}} + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} diff --git a/.github/workflows/locker.yml b/.github/workflows/locker.yml index 9bc811918f0..9700b2fcdcf 100644 --- a/.github/workflows/locker.yml +++ b/.github/workflows/locker.yml @@ -14,12 +14,13 @@ jobs: with: repository: 'microsoft/vscode-github-triage-actions' path: ./actions - ref: v24 + ref: v25 - name: Install Actions run: npm install --production --prefix ./actions - name: Run Locker uses: ./actions/locker with: daysSinceClose: 45 + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} daysSinceUpdate: 3 ignoredLabel: "*out-of-scope" diff --git a/.github/workflows/needs-more-info-closer.yml b/.github/workflows/needs-more-info-closer.yml index 7f302b253b3..b94da107b58 100644 --- a/.github/workflows/needs-more-info-closer.yml +++ b/.github/workflows/needs-more-info-closer.yml @@ -14,12 +14,13 @@ jobs: with: repository: 'microsoft/vscode-github-triage-actions' path: ./actions - ref: v24 + ref: v25 - name: Install Actions run: npm install --production --prefix ./actions - name: Run Needs More Info Closer uses: ./actions/needs-more-info-closer with: + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} label: needs more info closeDays: 7 additionalTeam: "cleidigh|usernamehw|gjsjohnmurray|IllusionMH" diff --git a/.github/workflows/on-label.yml b/.github/workflows/on-label.yml index 4a9a518c903..167e8725331 100644 --- a/.github/workflows/on-label.yml +++ b/.github/workflows/on-label.yml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v2 with: repository: 'microsoft/vscode-github-triage-actions' - ref: v24 + ref: v25 path: ./actions - name: Install Actions run: npm install --production --prefix ./actions @@ -27,6 +27,7 @@ jobs: if: contains(github.event.issue.labels.*.name, 'author-verification-requested') uses: ./actions/author-verified with: + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} 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 @@ -35,6 +36,7 @@ jobs: - name: Run Commands uses: ./actions/commands with: + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} config-path: commands @@ -44,6 +46,7 @@ jobs: if: contains(github.event.issue.labels.*.name, 'feature-request') uses: ./actions/feature-request with: + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} candidateMilestoneID: 107 candidateMilestoneName: Backlog Candidates @@ -64,6 +67,7 @@ jobs: 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: + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} 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. @@ -73,6 +77,7 @@ jobs: if: contains(github.event.issue.labels.*.name, '*english-please') uses: ./actions/english-please with: + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} cognitiveServicesAPIKey: ${{secrets.AZURE_TEXT_TRANSLATOR_KEY}} nonEnglishLabel: "*english-please" diff --git a/.github/workflows/on-open.yml b/.github/workflows/on-open.yml index 61e6ed8e31a..1d8f13201ca 100644 --- a/.github/workflows/on-open.yml +++ b/.github/workflows/on-open.yml @@ -11,7 +11,7 @@ jobs: uses: actions/checkout@v2 with: repository: 'microsoft/vscode-github-triage-actions' - ref: v24 + ref: v25 path: ./actions - name: Install Actions run: npm install --production --prefix ./actions @@ -19,12 +19,14 @@ jobs: - name: Run CopyCat (JacksonKearl/testissues) uses: ./actions/copycat with: + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} owner: JacksonKearl repo: testissues - name: Run CopyCat (chrmarti/testissues) uses: ./actions/copycat with: + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} owner: chrmarti repo: testissues @@ -33,6 +35,7 @@ jobs: uses: ./actions/new-release with: label: new release + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} labelColor: "006b75" labelDescription: Issues found in a recent release of VS Code days: 5 @@ -40,6 +43,7 @@ jobs: - name: Run Clipboard Labeler uses: ./actions/regex-labeler with: + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} label: "invalid" mustNotMatch: "^We have written the needed data into your clipboard because it was too large to send\\. Please paste\\.$" comment: "It looks like you're using the VS Code Issue Reporter but did not paste the text generated into the created issue. We've closed this issue, please open a new one containing the text we placed in your clipboard.\n\nHappy Coding!" @@ -49,6 +53,7 @@ jobs: uses: ./actions/english-please with: token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}} + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} cognitiveServicesAPIKey: ${{secrets.AZURE_TEXT_TRANSLATOR_KEY}} nonEnglishLabel: "*english-please" needsMoreInfoLabel: "needs more info" diff --git a/.github/workflows/release-pipeline-labeler.yml b/.github/workflows/release-pipeline-labeler.yml index 3ff1e66e303..ae3dc45b73e 100644 --- a/.github/workflows/release-pipeline-labeler.yml +++ b/.github/workflows/release-pipeline-labeler.yml @@ -13,7 +13,7 @@ jobs: uses: actions/checkout@v2 with: repository: 'microsoft/vscode-github-triage-actions' - ref: v24 + ref: v25 path: ./actions - name: Checkout Repo if: github.event_name != 'issues' diff --git a/.github/workflows/test-plan-item-validator.yml b/.github/workflows/test-plan-item-validator.yml index 5cdab482535..aa15ff25186 100644 --- a/.github/workflows/test-plan-item-validator.yml +++ b/.github/workflows/test-plan-item-validator.yml @@ -14,7 +14,7 @@ jobs: with: repository: 'microsoft/vscode-github-triage-actions' path: ./actions - ref: v24 + ref: v25 - 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 --prefix ./actions @@ -23,5 +23,6 @@ jobs: uses: ./actions/test-plan-item-validator with: label: testplan-item + appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}} 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. -- GitLab