Skip to content
This repository was archived by the owner on Dec 4, 2025. It is now read-only.

Commit 23d5d49

Browse files
authored
Merge pull request #943 from linwumingshi/ci/pr
ci: 👷 add GitHub Actions workflow to comment on PR
2 parents 41c84f7 + 6335983 commit 23d5d49

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/pr-comment.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: "Comment on PR"
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, reopened]
6+
7+
jobs:
8+
thanks-and-hint-to-document:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write
12+
name: Say thanks for the PR and hint to document
13+
steps:
14+
- name: comment on the pull request
15+
uses: hasura/comment-progress@v2.3.0
16+
with:
17+
github-token: ${{ secrets.GITHUB_TOKEN }}
18+
repository: ${{ github.repository }}
19+
number: ${{ github.event.number }}
20+
id: thanks-and-hint-to-document
21+
recreate: true
22+
message: |
23+
Thanks for your this PR. :pray:
24+
Please check again for your PR changes whether contains any usage configuration change such as `Add new configuration`, `Change default value of configuration`.
25+
If so, please add or update documents(markdown type) in `docs/` for repository [smart-doc-group/smart-doc-group.github.io](https://github.com/smart-doc-group/smart-doc-group.github.io/tree/master/docs)
26+
27+
In addition, if you have added new features, please provide example code in the repository [smart-doc-group/smart-doc-example-cn](https://github.com/smart-doc-group/smart-doc-example-cn). This will help other users understand how to use the new features.
28+
29+
---
30+
31+
感谢您提交的PR。 :pray:
32+
请再次查看您的PR内容,确认是否包含任何使用方式 配置参数的变更,如:`新增配置参数`、`修改默认配置`等操作。
33+
如果是,请确保在提交之前,在仓库[smart-doc-group/smart-doc-group.github.io](https://github.com/smart-doc-group/smart-doc-group.github.io/tree/master/docs)中的`docs/`目录下添加或更新文档(markdown格式)。
34+
35+
另外,如果您添加了新功能,请在仓库[smart-doc-group/smart-doc-example-cn](https://github.com/smart-doc-group/smart-doc-example-cn)中提供示例代码。这将帮助其他用户了解如何使用新功能。

0 commit comments

Comments
 (0)