Skip to content

Commit 1788bdb

Browse files
authored
Merge branch 'master' into intake_auto
2 parents 474ed7e + 2149c48 commit 1788bdb

File tree

2 files changed

+51
-3
lines changed

2 files changed

+51
-3
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ Fork this repository then open up a terminal and run :
1313
```bash
1414
git clone https://github.com/*yourusernamehere*/2024-Crescendo.git
1515
cd 2024-Crescendo
16-
chmod +x init.sh
17-
./init.sh
1816
```
1917
Now look in [CONTRIBUTING.md](./CONTRIBUTING.md) before continuing!
2018

@@ -24,7 +22,6 @@ Fork this repository then open up a terminal and run :
2422
```powershell
2523
git clone https:\\github.com\*yourusernamehere*\2024-Crescendo.git
2624
cd 2024-Crescendo
27-
.\init
2825
```
2926
Now look in [CONTRIBUTING.md](./CONTRIBUTING.md) before continuing!
3027

0 commit comments

Comments
 (0)