File tree Expand file tree Collapse file tree 1 file changed +42
-1
lines changed
Expand file tree Collapse file tree 1 file changed +42
-1
lines changed Original file line number Diff line number Diff line change 1- # github-action-comment-pull-request
1+ # Github Action - Comment Pull request
2+
3+ This github action comment an opened PR with a given message. You can also put reactions to the comment.
4+
5+ ## Inputs
6+ - message : The message that you want display inside the comment.
7+ - github token: The ` GITHUB_TOKEN ` secret. You can use the default ` ${{ secret.GITHUB_TOKEN }} ` to tag the message with the github-actions bot .
8+ - reactions: A list of reactions separated by ` | `
9+ - reaction suported : +1 | -1 | laugh | hooray | confused | heart | rocket | eyes
10+
11+
12+ ## Example usage
13+
14+ ````
15+ on: [pull_request]
16+
17+ jobs:
18+ build:
19+ name: Comment a pull_request
20+ runs-on: ubuntu-latest
21+ steps:
22+ - name: Checkout
23+ uses: actions/checkout@v2
24+
25+ - name: Comment a pull_request
26+ uses: ./
27+ with:
28+ message: "Hello, It's my first comment with Github action !"
29+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+ reactions: "+1 | -1 | laugh | hooray | confused | heart | rocket | eyes"
31+ ````
32+
33+ See exeamples in openedPR !
34+
35+
36+ # Build
37+
38+ To build the project, you must run the cmd :
39+ ````
40+ $ npm run build
41+ ````
42+ The build transpile the typescript ` src/main.ts ` into the ` lib/main.js ` that is used inside the Docker container.
You can’t perform that action at this time.
0 commit comments