Skip to content

Commit

Permalink
Develop add pr comment (#12747)
Browse files Browse the repository at this point in the history
* Make unit test more stable.

* update comment。

* update comment。

* change repo to alibaba/nacos.

* 尝试添加评论PR的权限。

* 尝试添加评论PR的权限。

* 尝试添加评论PR的权限。

* comment on pr action by pull_request_target.

* use github.repository variable replace repository
  • Loading branch information
KomachiSion authored Oct 16, 2024
1 parent 85a1e38 commit e7baa35
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pr-comment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "Comment on PR"

on:
pull_request_target:
types: [opened, reopened]

jobs:
thanks-and-hint-to-document:
runs-on: ubuntu-20.04
permissions:
pull-requests: write
name: Say thanks for the PR and hint to document
steps:
- name: comment on the pull request
uses: hasura/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
number: ${{ github.event.number }}
id: thanks-and-hint-to-document
recreate: true
message: |
Thanks for your this PR. :pray:
Please check again for your PR changes whether contains any usage/api/configuration change such as `Add new API `, `Add new configuration`, `Change default value of configuration`.
If so, please add or update documents(markdown type) in `docs/next/` for repository [nacos-group/nacos-group.github.io](https:/nacos-group/nacos-group.github.io/tree/develop-astro-nacos/src/content/docs/next)
---
感谢您提交的PR。 :pray:
请再次查看您的PR内容,确认是否包含任何使用方式/API/配置参数的变更,如:`新增API`、`新增配置参数`、`修改默认配置`等操作。
如果是,请确保在提交之前,在仓库[nacos-group/nacos-group.github.io](https:/nacos-group/nacos-group.github.io/tree/develop-astro-nacos/src/content/docs/next)中的`docs/next/`目录下添加或更新文档(markdown格式)。

0 comments on commit e7baa35

Please sign in to comment.