GitHub允许创建PR模板。是否可以做同样的事情,但是针对拉取请求审查?
这样的一个例子是添加审查清单,如下所示:
- [] Have all the GitHub checks passed?
- [] Is there any redundant code?
- [] Could any optimization be applied?
GitHub允许创建PR模板。是否可以做同样的事情,但是针对拉取请求审查?
这样的一个例子是添加审查清单,如下所示:
- [] Have all the GitHub checks passed?
- [] Is there any redundant code?
- [] Could any optimization be applied?
on:
pull_request_target:
types:
- ready_for_review
name: "Pull request checklist"
on:
pull_request_target:
types:
- ready_for_review
jobs:
pull_request_info:
runs-on: ubuntu-latest
steps:
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_HEAD_REF})"
id: extract_branch
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Show checklist
uses: marocchino/sticky-pull-request-comment@v2
with:
header: show_checklist
message: |
- [ ] Checklist item 1
- [ ] Checklist item 2
要了解更多选项,请查看以下内容: