File tree Expand file tree Collapse file tree 2 files changed +51
-3
lines changed Expand file tree Collapse file tree 2 files changed +51
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Comment Commands
2
+ on :
3
+ issue_comment :
4
+ types : [ created ]
5
+
6
+ jobs :
7
+ format :
8
+ if : github.event.issue.pull_request && startsWith(github.event.comment.body, '/format')
9
+ runs-on : ubuntu-22.04
10
+ steps :
11
+ - name : React Rocket
12
+ uses : actions/github-script@v6
13
+ with :
14
+ script : |
15
+ const {owner, repo} = context.issue
16
+ github.rest.reactions.createForIssueComment({
17
+ owner,
18
+ repo,
19
+ comment_id: context.payload.comment.id,
20
+ content: "rocket",
21
+ });
22
+ - uses : actions/checkout@v4
23
+ with :
24
+ fetch-depth : 0
25
+ token : ${{ secrets.GITHUB_TOKEN }}
26
+ - name : Fetch all history and metadata
27
+ run : |
28
+ git checkout -b pr
29
+ git branch -f master origin/master
30
+ - name : Checkout PR
31
+ run : |
32
+ gh pr checkout $NUMBER
33
+ env :
34
+ GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
35
+ NUMBER : ${{ github.event.issue.number }}
36
+ - name : Set up Python 3.8
37
+ uses : actions/setup-python@v4
38
+ with :
39
+ python-version : 3.8
40
+ - name : Install wpiformat
41
+ run : pip3 install wpiformat
42
+ - name : Run wpiformat
43
+ run : wpiformat
44
+ - name : Commit
45
+ run : |
46
+ # Set credentials
47
+ git config user.name "github-actions[bot]"
48
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
49
+ # Commit
50
+ git commit -am "Formatting fixes"
51
+ git push
Original file line number Diff line number Diff line change @@ -13,8 +13,6 @@ Fork this repository then open up a terminal and run :
13
13
``` bash
14
14
git clone https://github.com/* yourusernamehere* /2024-Crescendo.git
15
15
cd 2024-Crescendo
16
- chmod +x init.sh
17
- ./init.sh
18
16
```
19
17
Now look in [ CONTRIBUTING.md] ( ./CONTRIBUTING.md ) before continuing!
20
18
@@ -24,7 +22,6 @@ Fork this repository then open up a terminal and run :
24
22
``` powershell
25
23
git clone https:\\github.com\*yourusernamehere*\2024-Crescendo.git
26
24
cd 2024-Crescendo
27
- .\init
28
25
```
29
26
Now look in [ CONTRIBUTING.md] ( ./CONTRIBUTING.md ) before continuing!
30
27
You can’t perform that action at this time.
0 commit comments