From 35df6f642383edd73e48c45d6ce517902acf3edc Mon Sep 17 00:00:00 2001 From: guqing <1484563614@qq.com> Date: Wed, 23 Mar 2022 17:19:07 +0800 Subject: [PATCH] refactor: Remove github workflows configs about CI --- .github/commands.json | 201 ------------------- .github/commands.yml | 19 -- .github/subscribers.json | 9 - .github/workflows/needs-more-info-closer.yml | 29 --- .github/workflows/on-comment.yml | 23 --- .github/workflows/on-label.yml | 42 ---- 6 files changed, 323 deletions(-) delete mode 100644 .github/commands.json delete mode 100644 .github/commands.yml delete mode 100644 .github/subscribers.json delete mode 100644 .github/workflows/needs-more-info-closer.yml delete mode 100644 .github/workflows/on-comment.yml delete mode 100644 .github/workflows/on-label.yml diff --git a/.github/commands.json b/.github/commands.json deleted file mode 100644 index 96efadfb4..000000000 --- a/.github/commands.json +++ /dev/null @@ -1,201 +0,0 @@ -[ - { - "type": "comment", - "name": "*question", - "allowUsers": [ - "ruibaby", - "JohnNiang", - "guqing", - "LIlGG", - "halo-dev-bot" - ], - "action": "updateLabels", - "addLabel": "*question" - }, - { - "type": "label", - "name": "*question", - "action": "close", - "comment": "请到 [Halo Forum](https://bbs.halo.run/) 提问. 我们在那边有一个很好的社区。 他们已经回答了数千个问题,并且很乐意回答您的问题。 也可以到[Halo 官网](https://halo.run) 查看文档指南。" - }, - { - "type": "label", - "name": "*dev-question", - "action": "close", - "comment": "请到 [Halo Forum](https://bbs.halo.run/t/ask-for-help)提问,这是您提出问题并获得支持的好地方。 " - }, - { - "type": "label", - "name": "*not-reproducible", - "action": "close", - "comment": "我们关闭了这个问题,因为我们无法通过您描述的步骤重现问题。 在最新版本的 Halo 代码中,我们已经修复了您的问题。 如果没有,请要求我们重新打开问题并为我们提供更多细节。 我们的 [贡献指南](https://docs.halo.run/zh/contribution/issue) 或许可以帮到您。" - }, - { - "type": "label", - "name": "*out-of-scope", - "action": "close", - "comment": "我们关闭了这个问题,因为我们不打算在可预见的未来解决它。 您可以在 [此处](https://github.com/halo-dev/halo/milestones) 找到有关我们决策过程的更多详细信息。如果你不同意并觉得这个问题至关重要:我们很乐意倾听并重新考虑.\n\n感谢您的理解!" - }, - { - "type": "label", - "name": "*as-designed", - "action": "close", - "comment": "所描述的行为是预期工作的方式。 如果您不同意,请解释预期的内容以及更详细的内容。" - }, - { - "type": "label", - "name": "notebook", - "assign": [ - "ruibaby", - "JohnNiang", - "guqing", - "LIlGG" - ] - }, - { - "type": "comment", - "name": "rntg", - "assign": [ - "ruibaby", - "JohnNiang", - "guqing", - "LIlGG" - ] - }, - { - "type": "comment", - "name": "duplicate", - "allowUsers": [ - "ruibaby", - "JohnNiang", - "guqing", - "LIlGG", - "halo-dev-bot" - ], - "action": "updateLabels", - "addLabel": "*duplicate" - }, - { - "type": "label", - "name": "*duplicate", - "action": "close", - "comment": "感谢您创建了这个issue! 我们认为它与我们已经拥有的另一个相同。 因此,我们将此一个归还为重复(duplicate)并关闭了它。 您可以在 [这里](${duplicateQuery}) 搜索现有问题。" - }, - { - "type": "comment", - "name": "confirm", - "allowUsers": [ - "ruibaby", - "JohnNiang", - "guqing", - "LIlGG", - "halo-dev-bot" - ], - "action": "updateLabels", - "addLabel": "confirmed", - "removeLabel": "confirmation-pending" - }, - { - "type": "comment", - "name": "confirmationPending", - "allowUsers": [ - "ruibaby", - "JohnNiang", - "guqing", - "LIlGG", - "halo-dev-bot" - ], - "action": "updateLabels", - "addLabel": "confirmation-pending", - "removeLabel": "confirmed" - }, - { - "type": "comment", - "name": "needsMoreInfo", - "allowUsers": [ - "ruibaby", - "JohnNiang", - "guqing", - "LIlGG", - "halo-dev-bot" - ], - "action": "updateLabels", - "addLabel": "needs more info" - }, - { - "type": "label", - "name": "needs more info", - "action": "updateLabels", - "addLabel": "needs more info", - "comment": "感谢您创建了这个issue! 请提供更多的描述或错误日志以帮助我们理解您的问题。" - }, - { - "type": "label", - "name": "needs version info", - "action": "updateLabels", - "addLabel": "needs more info", - "comment": "感谢您创建了这个问题!我们认为它缺少一些基本信息,例如版本号,或者以其他方式不遵循我们的[问题报告](https://docs.halo.run/zh/contribution/issue)指南。请花点时间查看这些并更新issue。" - }, - { - "type": "label", - "name": "*off-topic", - "action": "close", - "comment": "感谢您创建了这个问题。我们认为此问题与本项目的目标毫无关联,因此我们关闭了它。您可以阅读我们的[问题报告](https://docs.halo.run/zh/contribution/issue)指南。" - }, - { - "type": "comment", - "name": "gifPlease", - "allowUsers": [ - "ruibaby", - "JohnNiang", - "guqing", - "LIlGG", - "halo-dev-bot" - ], - "action": "comment", - "addLabel": "needs more info", - "comment": "感谢您报告了这个issue!遗憾的是,我们很难了解你看到的问题。 请提供一段屏幕录制来准确地展示不符合预期的情况。虽然`GitHub`支持很多标准格式,但尽量首选`.gif` 文件,因为它们在GitHub是内联展示。你可以使用基于浏览器的gif录制工具 https://gifcap.dev 来帮助您。\n\n如果这个issue依赖键盘输入,您可以通过启用`screencast`模式来录制 (`Developer: Toggle Screencast Mode` in the command palette)。" - }, - { - "type": "comment", - "name": "bug", - "allowUsers": [ - "ruibaby", - "JohnNiang", - "guqing", - "LIlGG", - "halo-dev-bot" - ], - "action": "updateLabels", - "addLabel": "bug" - }, - { - "type": "comment", - "name": "lgtm", - "allowUsers": [ - "ruibaby", - "JohnNiang", - "guqing", - "LIlGG", - "halo-dev-bot" - ], - "action": "updateLabels", - "addLabel": "lgtm" - }, - { - "type": "comment", - "name": "label", - "allowUsers": [] - }, - { - "type": "comment", - "name": "assign", - "allowUsers": [ - "ruibaby", - "JohnNiang", - "guqing", - "LIlGG", - "halo-dev-bot" - ] - } -] \ No newline at end of file diff --git a/.github/commands.yml b/.github/commands.yml deleted file mode 100644 index e96508769..000000000 --- a/.github/commands.yml +++ /dev/null @@ -1,19 +0,0 @@ -{ - perform: true, - commands: - [ - { - type: "comment", - name: "findDuplicates", - allowUsers: [ - "ruibaby", - "JohnNiang", - "guqing", - "LIlGG", - "halo-dev-bot" - ], - action: "comment", - comment: "Potential duplicates:\n${potentialDuplicates}", - }, - ], -} \ No newline at end of file diff --git a/.github/subscribers.json b/.github/subscribers.json deleted file mode 100644 index 6709e339a..000000000 --- a/.github/subscribers.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "notebook": [ - "ruibaby", - "JohnNiang", - "guqing", - "LIlGG", - "halo-dev-bot" - ] -} \ No newline at end of file diff --git a/.github/workflows/needs-more-info-closer.yml b/.github/workflows/needs-more-info-closer.yml deleted file mode 100644 index 2551af1a5..000000000 --- a/.github/workflows/needs-more-info-closer.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Needs More Info Closer -on: - schedule: - - cron: 20 11 * * * # 4:20am Redmond - repository_dispatch: - types: [trigger-needs-more-info] - -jobs: - main: - runs-on: ubuntu-latest - steps: - - name: Checkout Actions - uses: actions/checkout@v2 - with: - repository: "microsoft/vscode-github-triage-actions" - path: ./actions - ref: stable - - name: Install Actions - run: npm install --production --prefix ./actions - - name: Run Needs More Info Closer - uses: ./actions/needs-more-info-closer - with: - token: ${{secrets.ISSUE_TRIAGE_BOT_PAT}} - label: needs more info - closeDays: 7 - additionalTeam: "ruibaby|JohnNiang|guqing|LIlGG|halo-dev-bot" - closeComment: "此问题已自动关闭,因为它需要更多信息且最近没有活跃。" - pingDays: 80 - pingComment: "Hey @${assignee}, 这个问题可能需要进一步关注。\n\n@${author}, 如果问题不再存在,您可以帮助我们关闭此问题,或者添加更多信息。" \ No newline at end of file diff --git a/.github/workflows/on-comment.yml b/.github/workflows/on-comment.yml deleted file mode 100644 index eee399508..000000000 --- a/.github/workflows/on-comment.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: On Comment -on: - issue_comment: - types: [created] - -# also make changes in ./on-label.yml -jobs: - main: - runs-on: ubuntu-latest - steps: - - name: Checkout Actions - uses: actions/checkout@v2 - with: - repository: "microsoft/vscode-github-triage-actions" - path: ./actions - ref: stable - - name: Install Actions - run: npm install --production --prefix ./actions - - name: Run Commands - uses: ./actions/commands - with: - token: ${{secrets.ISSUE_TRIAGE_BOT_PAT}} - config-path: commands \ No newline at end of file diff --git a/.github/workflows/on-label.yml b/.github/workflows/on-label.yml deleted file mode 100644 index 02e6d84b1..000000000 --- a/.github/workflows/on-label.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: On Label -on: - issues: - types: [labeled] - -jobs: - main: - runs-on: ubuntu-latest - steps: - - name: Checkout Actions - uses: actions/checkout@v2 - with: - repository: "microsoft/vscode-github-triage-actions" - ref: stable - path: ./actions - - name: Install Actions - run: npm install --production --prefix ./actions - - # source of truth in ./author-verified.yml - - name: Run Author Verified - if: contains(github.event.issue.labels.*.name, 'author-verification-requested') - uses: ./actions/author-verified - with: - token: ${{secrets.ISSUE_TRIAGE_BOT_PAT}} - requestVerificationComment: "该问题已在最新版本中修复!\n\n@${author},请在今天或者稍晚确认你的使用的版本是否包含该提交: ${commit},如果这件事已按预期得到解决,您可以通过评论 `/verified` 来帮助我们标记此问题。\n\n如果该问题仍然没有得到解决, 可以在评论中留下你希望得到的预期结果。" - verifiedLabel: verified - authorVerificationRequestedLabel: author-verification-requested - - - # also make changes in ./on-comment.yml - - name: Run Commands - uses: ./actions/commands - with: - token: ${{secrets.ISSUE_TRIAGE_BOT_PAT}} - config-path: commands - - # only here. - - name: Run Subscribers - uses: ./actions/topic-subscribe - with: - token: ${{secrets.ISSUE_TRIAGE_BOT_PAT}} - config-path: subscribers \ No newline at end of file