feat: add issues triage action config (#1416)

pull/1426/head
guqing 2021-07-15 18:26:40 +08:00 committed by GitHub
parent 189f7be47e
commit 95c0271cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 323 additions and 0 deletions

201
.github/commands.json vendored Normal file
View File

@ -0,0 +1,201 @@
[
{
"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"
]
}
]

19
.github/commands.yml vendored Normal file
View File

@ -0,0 +1,19 @@
{
perform: true,
commands:
[
{
type: "comment",
name: "findDuplicates",
allowUsers: [
"ruibaby",
"JohnNiang",
"guqing",
"LIlGG",
"halo-dev-bot"
],
action: "comment",
comment: "Potential duplicates:\n${potentialDuplicates}",
},
],
}

9
.github/subscribers.json vendored Normal file
View File

@ -0,0 +1,9 @@
{
"notebook": [
"ruibaby",
"JohnNiang",
"guqing",
"LIlGG",
"halo-dev-bot"
]
}

View File

@ -0,0 +1,29 @@
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} 如果问题不再存在,您可以帮助我们关闭此问题,或者添加更多信息。"

23
.github/workflows/on-comment.yml vendored Normal file
View File

@ -0,0 +1,23 @@
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

42
.github/workflows/on-label.yml vendored Normal file
View File

@ -0,0 +1,42 @@
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