Browse Source

ci: add pr change log fill check (#29823)

* Update pr-open-check.yml

* Update pr-open-check.yml

* Update pr-open-check.yml

* Delete pr-labeled.yml

* Update pr-open-check.yml

* Update pr-open-check.yml

* Update pr-open-check.yml

* Update pr-open-check.yml
pull/29828/head
xrkffgg 4 years ago
committed by GitHub
parent
commit
7fde1b6967
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 20
      .github/workflows/pr-labeled.yml
  2. 24
      .github/workflows/pr-open-check.yml

20
.github/workflows/pr-labeled.yml

@ -1,20 +0,0 @@
name: PR Labeled
on:
pull_request_target:
types: [labeled]
jobs:
pr-labeled:
runs-on: ubuntu-latest
steps:
- name: pr need changelog
if: github.event.label.name == 'PR need fill changelog'
uses: actions-cool/issues-helper@v2.1.2
with:
actions: 'create-comment'
issue-number: ${{ github.event.number }}
body: |
Hi @${{ github.event.pull_request.user.login }}. Please fill in the changelog in the PR. Write with a **developer-oriented perspective** and **narrative method**, without describing the details of the repair, **describing the problem and the impact on the developer**; **describing the user-first site problem**, not your solution.
你好 @${{ github.event.pull_request.user.login }}。请填写 PR 中的 changelog。请用**面向开发者的角度**和**叙述方式撰写**,不描述修复细节,**描述问题和对开发者的影响**;**描述用户第一现场的问题**,而非你的解决方式。

24
.github/workflows/pr-open-check.yml

@ -2,7 +2,7 @@ name: PR Open Check
on:
pull_request_target:
types: [opened, edited]
types: [opened, edited, reopened]
jobs:
refuse:
@ -18,3 +18,25 @@ jobs:
你好 @${{ github.event.pull_request.user.login }}。这个 PR 提及的 issue 需要和设计师或核心团队进行确认,暂时不接受 PR,再次感谢你的贡献!😊
pr-emoji: 'heart'
close: true
check-changelog:
runs-on: ubuntu-latest
steps:
- name: check fill
uses: actions-cool/pr-check-fill@v1.1.0
with:
filter-start: '|'
require-include: '🇺🇸 English, 🇨🇳 Chinese'
comment-body: |
- 🚨 Please fill changelog in the PR
- Write with a **developer-oriented perspective** and **narrative method**, without describing the details of the repair
- **Describing the problem and the impact on the developer**
- **describing the user-first site problem**, not your solution
- Refer: https://ant.design/changelog#4.9.0
- 🚨 请填写 PR 中的 changelog
- 请用**面向开发者的角度**和**叙述方式撰写**,不描述修复细节
- **描述问题和对开发者的影响**
- **描述用户第一现场的问题**,而非你的解决方式
- 参考:https://ant.design/changelog-cn#4.9.0
skip-title-start: 'docs, chore, test, ci'

Loading…
Cancel
Save