forked from autowarefoundation/autoware_launch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add comment-on-pr (autowarefoundation#805)
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: comment-on-pr | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
branches: | ||
- beta/v0.[0-9]+.[0-9]+.[0-9]+ | ||
|
||
jobs: | ||
comment: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create comments | ||
run: | | ||
cat << 'EOF' > comments | ||
### betaブランチへマージする際のガイドライン | ||
通常は`Squash and merge`を使用してください。 | ||
ただし、cherry-pickで複数の変更を取り込むときには、変更履歴を残すために`Create a merge commit`を使用してください。 | ||
### 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}" |