Skip to content

Commit

Permalink
add github actions bot with a hint comment for contributors.
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Zhukov <ivzhukov@sbercloud.ru>
  • Loading branch information
fsb4000 committed Jul 15, 2022
1 parent 7cab926 commit 72be521
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/hint.yml
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\" }"

0 comments on commit 72be521

Please sign in to comment.