Skip to content

Commit afd43b7

Browse files
authored
fix: 修复配置的拉取请求关闭时没有关闭对应议题的问题 (#469)
* fix: 修复配置的拉取请求关闭时没有关闭对应议题的问题 * docs(example): 同步 registry 的修改
1 parent ade316a commit afd43b7

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

examples/noneflow-registry.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
types: [opened, reopened, edited]
66
issue_comment:
77
types: [created]
8+
pull_request_target:
9+
types: [closed]
810

911
concurrency:
1012
group: ${{ github.workflow }}-${{ github.event.issue.number || github.run_id }}
@@ -28,7 +30,14 @@ jobs:
2830
private_key: ${{ secrets.APP_KEY }}
2931

3032
- name: Checkout Code
31-
uses: actions/checkout@v4
33+
if: contains(github.event.issue.labels.*.name, 'Config')
34+
uses: actions/checkout@v6
35+
with:
36+
token: ${{ steps.generate-token.outputs.token }}
37+
38+
- name: Checkout Code
39+
if: contains(github.event.issue.labels.*.name, 'Remove')
40+
uses: actions/checkout@v6
3241
with:
3342
token: ${{ steps.generate-token.outputs.token }}
3443
repository: nonebot/nonebot2

0 commit comments

Comments
 (0)