Skip to content

Commit 555f35f

Browse files
committed
add github actions bot with a hint comment for contributors.
Signed-off-by: Igor Zhukov <[email protected]>
1 parent 7cab926 commit 555f35f

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.github/workflows/hint.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Hint to a github contributor
2+
3+
on:
4+
pull_request:
5+
types: [opened, created]
6+
7+
jobs:
8+
comment:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Add comment to PR
12+
env:
13+
URL: ${{ github.event.pull_request.comments_url }}
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
MESSAGE:
16+
Hi!\n
17+
Thanks for the patch.\n
18+
Please take a look at
19+
https://github.com/ovn-org/ovn/blob/main/Documentation/internals/contributing/submitting-patches.rst
20+
and
21+
https://github.com/ovn-org/ovn/blob/main/Documentation/internals/contributing/coding-style.rst\n
22+
Squash commits and ensure that your patch passes the checks:\n
23+
```\n
24+
$ ./utilities/checkpatch.py -1\n
25+
```\n
26+
27+
run: |
28+
curl \
29+
-X POST \
30+
$URL \
31+
-H "Content-Type: application/json" \
32+
-H "Authorization: token $GITHUB_TOKEN" \
33+
--data "{ \"body\": \"$MESSAGE\" }"

Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ EXTRA_DIST = \
9191
.ci/osx-build.sh \
9292
.ci/osx-prepare.sh \
9393
.ci/ovn-kubernetes/Dockerfile \
94+
.github/workflows/hint.yml \
9495
.github/workflows/test.yml \
9596
.github/workflows/ovn-kubernetes.yml \
9697
boot.sh \

0 commit comments

Comments
 (0)