Skip to content

Commit 890e27e

Browse files
Merge pull request #257 from DiogoRibeiro7/codex/add-contribution-guidelines-for-automation-scripts
Add automation instructions
2 parents 33af9e7 + d33faa7 commit 890e27e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

CONTRIBUTING.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Contributing
2+
3+
This project uses several helper scripts to keep the Markdown posts and front matter consistent. These scripts can modify many files across the repository.
4+
5+
Because these updates are often large-scale, test them on a separate branch before merging.
6+
7+
## Running automation scripts
8+
9+
1. Start from an up-to-date branch and create a new working branch:
10+
11+
```bash
12+
git checkout master
13+
git pull
14+
git checkout -b automation-update
15+
```
16+
17+
2. Run the automation scripts:
18+
19+
```bash
20+
./run_scripts.sh
21+
```
22+
23+
The scripts may rename files and update front matter, leading to many modified files.
24+
25+
3. Review the changes:
26+
27+
```bash
28+
git status
29+
git diff
30+
```
31+
32+
Look carefully over the diff before committing because the updates can be large.
33+
34+
4. Commit the desired changes and open a pull request.
35+
36+
Running the scripts on a clean branch helps keep your history tidy and makes code review easier.

0 commit comments

Comments
 (0)