From e7baa352fcd1e66ea8342b759fe823a216af925c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E7=BF=8A=20SionYang?= Date: Wed, 16 Oct 2024 15:58:15 +0800 Subject: [PATCH] Develop add pr comment (#12747) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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 --- .github/workflows/pr-comment.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/pr-comment.yml diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml new file mode 100644 index 00000000000..6ee75a01651 --- /dev/null +++ b/.github/workflows/pr-comment.yml @@ -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/comment-progress@v2.3.0 + 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://github.com/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://github.com/nacos-group/nacos-group.github.io/tree/develop-astro-nacos/src/content/docs/next)中的`docs/next/`目录下添加或更新文档(markdown格式)。