From 557591eddcf6c18e93eb1645d8ffffbb06e5b555 Mon Sep 17 00:00:00 2001 From: Xunzhuo Date: Fri, 8 Dec 2023 12:18:56 +0800 Subject: [PATCH] ci: add PR comment and cc reviewers (#2280) * feat: welcome comment and auto cc gateway reviewers Signed-off-by: bitliu * update Signed-off-by: bitliu * fix lint Signed-off-by: bitliu --------- Signed-off-by: bitliu --- .github/workflows/welcome.yaml | 40 ++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/welcome.yaml diff --git a/.github/workflows/welcome.yaml b/.github/workflows/welcome.yaml new file mode 100644 index 00000000000..750c36f1c1d --- /dev/null +++ b/.github/workflows/welcome.yaml @@ -0,0 +1,40 @@ +name: Welcome + +on: + pull_request_target: + types: [opened] + +jobs: + comment: + permissions: + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: Comment + uses: peter-evans/create-or-update-comment@v3 + with: + issue-number: ${{ github.event.pull_request.number }} + body: | + 🚀 Thank you for contributing to the [Envoy Gateway](https://gateway.envoyproxy.io/) project! 🚀 + + Before merging, please ensure to follow the process below: + + 1. Requesting Reviews: + - cc @envoyproxy/gateway-reviewers team for an initial review. + - After the initial review, reviewers should request the @envoyproxy/gateway-maintainers team for further review. + 2. Review Approval: + - Your PR needs to receive at least two approvals. + - At least one approval must come from a member of the gateway-maintainers team. + + **NOTE**: Once your PR is under review, ***please do not rebase and force push it***. Otherwise, it will force your reviewers to review the PR from scratch rather than simply look at your latest changes. + +
+ What's more, you can help expedite the processing of your PR by +
+ + - Ensuring you have self-reviewed your work according to the project's [Contribution Guidelines](https://gateway.envoyproxy.io/latest/contributions/develop). + - If your PR addresses a specific issue, make sure to mention it in the PR description. + - Respond promptly if there are any test failures or suggestions for improvements that we comment on. + +
+ reactions: 'heart'