on-open.yml 2.3 KB
Newer Older
J
Jackson Kearl 已提交
1
name: On Open
J
Jackson Kearl 已提交
2 3
on:
  issues:
J
Jackson Kearl 已提交
4
    types: [opened]
J
Jackson Kearl 已提交
5

J
Jackson Kearl 已提交
6 7 8 9 10 11 12
jobs:
  main:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Actions
        uses: actions/checkout@v2
        with:
13
          repository: 'microsoft/vscode-github-triage-actions'
14
          ref: v25
J
Jackson Kearl 已提交
15
          path: ./actions
16
      - name: Install Actions
J
Jackson Kearl 已提交
17 18
        run: npm install --production --prefix ./actions

J
Jackson Kearl 已提交
19
      - name: Run CopyCat (JacksonKearl/testissues)
J
Jackson Kearl 已提交
20
        uses: ./actions/copycat
J
Jackson Kearl 已提交
21
        with:
22
          appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
J
Jackson Kearl 已提交
23 24 25 26
          token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
          owner: JacksonKearl
          repo: testissues
      - name: Run CopyCat (chrmarti/testissues)
J
Jackson Kearl 已提交
27
        uses: ./actions/copycat
J
Jackson Kearl 已提交
28
        with:
29
          appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
J
Jackson Kearl 已提交
30 31 32
          token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
          owner: chrmarti
          repo: testissues
J
Jackson Kearl 已提交
33 34 35 36 37

      - name: Run New Release
        uses: ./actions/new-release
        with:
          label: new release
38
          appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
J
Jackson Kearl 已提交
39 40 41
          labelColor: "006b75"
          labelDescription: Issues found in a recent release of VS Code
          days: 5
42 43 44 45

      - name: Run Clipboard Labeler
        uses: ./actions/regex-labeler
        with:
46
          appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
47
          label: "invalid"
J
Jackson Kearl 已提交
48
          mustNotMatch: "^We have written the needed data into your clipboard because it was too large to send\\. Please paste\\.$"
J
Jackson Kearl 已提交
49
          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!"
J
Jackson Kearl 已提交
50 51 52 53 54

      # source of truth in ./english-please.yml
      - name: Run English Please
        uses: ./actions/english-please
        with:
J
Jackson Kearl 已提交
55
          token: ${{secrets.VSCODE_ISSUE_TRIAGE_BOT_PAT}}
56
          appInsightsKey: ${{secrets.TRIAGE_ACTIONS_APP_INSIGHTS}}
J
Jackson Kearl 已提交
57 58 59 60 61
          cognitiveServicesAPIKey: ${{secrets.AZURE_TEXT_TRANSLATOR_KEY}}
          nonEnglishLabel: "*english-please"
          needsMoreInfoLabel: "needs more info"
          translatorRequestedLabelPrefix: "translation-required-"
          translatorRequestedLabelColor: "c29cff"