Skip to content

Commit 1e3fa1a

Browse files
committed
Add CI check enforcing PR branch targeting rules
Only the dev branch can target main; all other branches must target dev.
1 parent 6cb6cac commit 1e3fa1a

File tree

4 files changed

+36
-3
lines changed

4 files changed

+36
-3
lines changed

.claude-plugin/marketplace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"name": "humanize",
99
"source": "./",
1010
"description": "Humanize - An iterative development plugin that uses Codex to review Claude's work. Creates a feedback loop where Claude implements plans and Codex independently reviews progress, ensuring quality through continuous refinement.",
11-
"version": "1.15.0"
11+
"version": "1.15.1"
1212
}
1313
]
1414
}

.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "humanize",
33
"description": "Humanize - An iterative development plugin that uses Codex to review Claude's work. Creates a feedback loop where Claude implements plans and Codex independently reviews progress, ensuring quality through continuous refinement.",
4-
"version": "1.15.0",
4+
"version": "1.15.1",
55
"author": {
66
"name": "humania-org"
77
},
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: PR Target Branch Check
2+
3+
on:
4+
pull_request:
5+
branches: [main, dev]
6+
7+
jobs:
8+
check-target-branch:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Enforce branch targeting rules
12+
run: |
13+
SOURCE="${{ github.head_ref }}"
14+
TARGET="${{ github.base_ref }}"
15+
16+
echo "Source branch: $SOURCE"
17+
echo "Target branch: $TARGET"
18+
19+
if [ "$TARGET" = "main" ] && [ "$SOURCE" != "dev" ]; then
20+
echo ""
21+
echo "========================================"
22+
echo "FAILED: Only 'dev' branch can target 'main'."
23+
echo ""
24+
echo "Your branch '$SOURCE' must target 'dev' instead."
25+
echo "Please change the base branch of this PR to 'dev'."
26+
echo "========================================"
27+
exit 1
28+
fi
29+
30+
echo ""
31+
echo "========================================"
32+
echo "PASSED: Branch targeting rule satisfied."
33+
echo "========================================"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Humanize
22

3-
**Current Version: 1.15.0**
3+
**Current Version: 1.15.1**
44

55
> Derived from the [GAAC (GitHub-as-a-Context)](https://github.com/SihaoLiu/gaac) project.
66

0 commit comments

Comments
 (0)