Skip to content

Commit be6b182

Browse files
Merge pull request #354 from bryan-cox/fix-address-reviews-push-verification
fix(address-reviews): add push verification before posting replies
2 parents 9e7bfce + d793bfd commit be6b182

File tree

4 files changed

+17
-8
lines changed

4 files changed

+17
-8
lines changed

.claude-plugin/marketplace.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"name": "utils",
5757
"source": "./plugins/utils",
5858
"description": "A generic utilities plugin serving as a catch-all for various helper commands",
59-
"version": "0.0.5"
59+
"version": "0.0.6"
6060
},
6161
{
6262
"name": "olm",

docs/data.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@
756756
"hooks": [],
757757
"name": "utils",
758758
"skills": [],
759-
"version": "0.0.5"
759+
"version": "0.0.6"
760760
},
761761
{
762762
"commands": [

plugins/utils/.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": "utils",
33
"description": "A generic utilities plugin serving as a catch-all for various helper commands and agents",
4-
"version": "0.0.5",
4+
"version": "0.0.6",
55
"author": {
66
"name": "github.com/openshift-eng"
77
}

plugins/utils/commands/address-reviews.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,15 @@ When multiple comments relate to the same concern/fix:
122122

123123
**b. If requested change is valid**:
124124
- Plan and implement changes
125-
- Commit and Push
125+
- Commit and Push **(ALL sub-steps are MANDATORY — do not skip any)**
126126
1. **Review changes**: `git diff`
127127

128-
2. **Analyze commit structure**: `git log --oneline origin/main..HEAD`
128+
2. **Sync with remote first**: `git pull --rebase origin <branch>` to ensure local branch is up to date. If the branch is behind or diverged, you MUST rebase before committing.
129+
130+
3. **Analyze commit structure**: `git log --oneline origin/main..HEAD`
129131
- Identify which commit the changes relate to
130132

131-
3. **Commit strategy**:
133+
4. **Commit strategy**:
132134

133135
**DEFAULT: Amend the relevant commit**
134136

@@ -137,11 +139,18 @@ When multiple comments relate to the same concern/fix:
137139
- **When unsure**: Amend (keep git history clean)
138140
- **Multiple commits**: Use `git rebase -i origin/main` to amend the specific relevant commit
139141

140-
4. **Create and push commit**:
142+
5. **Create commit AND push (both required)**:
141143
- Follow [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) format
142144
- Always include body explaining "why"
143145
- **Amend**: `git commit --amend --no-edit && git push --force-with-lease` (or update message if scope changed)
144-
- **New commit**: Standard commit with message
146+
- **New commit**: Standard commit with message, then `git push`
147+
- **⚠️ A commit without a push is incomplete. You MUST push.**
148+
149+
6. **Verify push succeeded (MANDATORY before replying)**:
150+
- Run `git log -1 --format='%H'` locally and `git ls-remote origin <branch>` to confirm the remote has your commit
151+
- **If they differ**: The push failed or was never executed. Do NOT post a "Done" reply. Diagnose and retry, or report the failure to the user.
152+
- **If uncommitted changes remain** (`git status`): The commit failed. Fix it first.
153+
- **⚠️ NEVER post a "Done" or "Fixed" reply unless the push is verified on the remote.** Posting false claims of completion erodes reviewer trust and wastes human reviewers' time.
145154

146155
- **Concise Reply template**: `Done. [1-line what changed]. [Optional 1-line why]`
147156
- Max 2 sentences + attribution footer

0 commit comments

Comments
 (0)