Skip to content

Commit

Permalink
ci: add comment-on-pr.yaml (#1281)
Browse files Browse the repository at this point in the history
* Create comment-on-pr.yaml

* Update .github/workflows/comment-on-pr.yaml
  • Loading branch information
shmpwk authored May 2, 2024
1 parent a24968c commit cf3c70a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/comment-on-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: comment-on-pr

on:
pull_request:
types:
- opened
branches:
- beta/v0.[0-9]+.[1-9]+

jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Create comments
run: |
cat << EOF > comments
### Merging guidelines for the beta branch
Please use `Squash and merge` as the default.
However, when incorporating multiple changes with cherry-pick, use a `Create a merge commit` to preserve the changes in the history.
EOF
- name: Post comments
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
URL: ${{ github.event.pull_request.html_url }}
run: gh pr comment -F ./comments "${URL}"

0 comments on commit cf3c70a

Please sign in to comment.