Skip to content

Commit ac064d5

Browse files
authored
🐢 [just] v3.8 - generalize gh-process by removing dependance on my particular git aliases (#35)
* 🐢 [just] v3.8 - generalize gh-process by removing dependance on my particular git aliases * update release notes * claude /init fixed a variety of assumptions about the repo
1 parent ca93b2c commit ac064d5

File tree

3 files changed

+45
-26
lines changed

3 files changed

+45
-26
lines changed

ā€Ž.just/RELEASE_NOTES.mdā€Ž

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,21 @@
22

33
This file tracks the evolution of the Git/GitHub workflow automation module.
44

5-
## Planned Changes
5+
## November 2025 - The Polish Updates
66

7-
- Remove requirement to use
8-
[my git aliases](https://github.com/chicks-net/chicks-home/blob/main/.gitconfig)
9-
for this to work by expanding all of the `git` commands to
10-
work on stock `git` installs.
7+
### v3.8 - Git Alias Expansion
118

12-
## November 2025 - The Polish Update
9+
Expanded all git aliases to use standard git commands, making this justfile
10+
work for everyone without requiring custom git configuration. Previously,
11+
you needed my personal git aliases (`stp`, `pushup`, `co`) configured to use
12+
this workflow. Now it just works out of the box.
13+
14+
- `git stp` → `git status --porcelain`
15+
- `git pushup` → `git push -u origin HEAD`
16+
- `git co` → `git checkout`
17+
18+
Added inline comments showing the old alias names for reference, so if you're
19+
used to seeing `stp` in the output, you know what's happening.
1320

1421
### v3.7 - Pre-PR Hook Support (#32, #33)
1522

ā€Ž.just/gh-process.justā€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ release_branch := "main"
1111
sync:
1212
git checkout "{{ release_branch }}"
1313
git pull
14-
git stp
14+
git status --porcelain # stp
1515

16-
# PR create 3.7
16+
# PR create 3.8
1717
[group('Process')]
1818
pr: _has_commits && pr_checks
1919
#!/usr/bin/env bash
@@ -26,8 +26,8 @@ pr: _has_commits && pr_checks
2626
just _pr-hook
2727
fi
2828

29-
git stp
30-
git pushup
29+
git status --porcelain # stp
30+
git push -u origin HEAD # pushup
3131

3232
CURRENT_BRANCH="$(git rev-parse --abbrev-ref HEAD)"
3333
#COMMIT_COUNT=$(git cherry -v "{{ release_branch }}" "$CURRENT_BRANCH" | wc -l)
@@ -71,7 +71,7 @@ merge: _on_a_branch && sync
7171
branch branchname: _main_branch
7272
#!/usr/bin/env bash
7373
NOW=`just utcdate`
74-
git co -b "$USER/$NOW-{{ branchname }}"
74+
git checkout -b "$USER/$NOW-{{ branchname }}"
7575

7676
# view PR in web browser
7777
[group('Process')]

ā€ŽCLAUDE.mdā€Ž

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This repo uses `just` (command runner) for all development tasks. The workflow i
1414

1515
1. `just branch <name>` - Create a new feature branch (format: `$USER/YYYY-MM-DD-<name>`)
1616
2. Make changes and commit (last commit message becomes PR title)
17-
3. `just pr` - Create PR, push changes, and watch checks (waits 10s for GitHub API)
17+
3. `just pr` - Create PR, push changes, and watch checks (waits 8s for GitHub API)
1818
4. `just merge` - Squash merge PR, delete branch, return to main, and pull latest
1919
5. `just sync` - Return to main branch and pull latest (escape hatch)
2020

@@ -27,31 +27,36 @@ This repo uses `just` (command runner) for all development tasks. The workflow i
2727
- `just compliance_check` - Run custom repo compliance checks
2828
- `just utcdate` - Print UTC date in ISO format (used in branch names)
2929

30-
### Git aliases used
30+
## Architecture
3131

32-
The justfile assumes these git aliases exist:
32+
### Modular justfile structure
3333

34-
- `git stp` - Show status (likely `status --short` or similar)
35-
- `git pushup` - Push and set upstream tracking
36-
- `git co` - Checkout
34+
The main `justfile` imports three modules:
3735

38-
## Architecture
36+
- `.just/compliance.just` - Custom compliance checks for repo health (validates all GitHub community standards)
37+
- `.just/gh-process.just` - Git/GitHub workflow automation (core PR lifecycle)
38+
- `.just/pr-hook.just` - Optional pre-PR hooks for project-specific automation (e.g., Hugo rebuilds)
3939

40-
### Modular justfile structure
40+
### Git/GitHub workflow details
4141

42-
The main `justfile` imports two modules:
42+
The `.just/gh-process.just` module implements the entire PR lifecycle:
4343

44-
- `.just/compliance.just` - Custom compliance checks for repo health
45-
- `.just/gh-process.just` - Git/GitHub workflow automation
44+
- **Branch creation** - Dated branches with `$USER/YYYY-MM-DD-<name>` format
45+
- **PR creation** - First commit message becomes PR title, all commits listed in body
46+
- **Sanity checks** - Prevents empty PRs, enforces branch strategy via hidden recipes (`_on_a_branch`, `_has_commits`, `_main_branch`)
47+
- **AI integration** - After PR checks complete, displays GitHub Copilot and Claude Code review comments in terminal
48+
- **Merge automation** - Squash merge, delete remote branch, return to main, pull latest
4649

4750
### GitHub Actions
4851

49-
Four workflows run on PRs and pushes to main:
52+
Six workflows run on PRs and pushes to main:
5053

5154
- **markdownlint** - Enforces markdown standards using `markdownlint-cli2`
52-
- **checkov** - Security scanning for GitHub Actions
55+
- **checkov** - Security scanning for GitHub Actions (continues on error, outputs SARIF)
5356
- **actionlint** - Lints GitHub Actions workflow files
54-
- **auto-assign** - Automatically assigns issues
57+
- **auto-assign** - Automatically assigns issues/PRs to `chicks-net`
58+
- **claude-code-review** - Claude AI review automation
59+
- **claude** - Additional Claude integration
5560

5661
### Markdown linting
5762

@@ -71,6 +76,13 @@ When using this template for a new project, search and replace:
7176

7277
- `fini-net` → your GitHub org
7378
- `template-repo` → your repo name
74-
- `chicks-net` → your references
79+
- `chicks-net` → your references (especially in `.github/workflows/auto-assign.yml`)
7580

7681
Run `just clean_readme` to strip template documentation from README.
82+
83+
## Important implementation notes
84+
85+
- All git commands in `.just/gh-process.just` use standard git (no aliases required)
86+
- The `pr` recipe runs optional pre-PR hooks if `.just/pr-hook.just` exists
87+
- PR checks poll every 5 seconds for faster feedback
88+
- Release notes for workflow changes are tracked in `.just/RELEASE_NOTES.md`

0 commit comments

Comments
Ā (0)