-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github actions bot with a hint comment for contributors.
Signed-off-by: Igor Zhukov <[email protected]>
- Loading branch information
Showing
1 changed file
with
33 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,33 @@ | ||
name: Hint to a github contributor | ||
|
||
on: | ||
pull_request: | ||
types: [opened, created] | ||
|
||
jobs: | ||
comment: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Add comment to PR | ||
env: | ||
URL: ${{ github.event.pull_request.comments_url }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
MESSAGE: | ||
Hi!\n | ||
Thanks for the patch.\n | ||
Please take a look at | ||
https://github.com/ovn-org/ovn/blob/main/Documentation/internals/contributing/submitting-patches.rst | ||
and | ||
https://github.com/ovn-org/ovn/blob/main/Documentation/internals/contributing/coding-style.rst\n | ||
Squash commits and ensure that your patch passes the checks:\n | ||
```\n | ||
$ ./utilities/checkpatch.py -1\n | ||
```\n | ||
|
||
run: | | ||
curl \ | ||
-X POST \ | ||
$URL \ | ||
-H "Content-Type: application/json" \ | ||
-H "Authorization: token $GITHUB_TOKEN" \ | ||
--data "{ \"body\": \"$MESSAGE\" }" |