From 90d7c72770204ffb967d17de0000d307044d0620 Mon Sep 17 00:00:00 2001 From: enxebre Date: Tue, 7 Jul 2026 15:51:28 +0200 Subject: [PATCH] feat(address-review-pr): add --ci flag for non-interactive CI mode When --ci is passed, the skill runs fully non-interactively: - Dirty working tree: stash/discard instead of asking - Comment categorization: proceed without user confirmation - Ambiguous comments: make autonomous decisions instead of asking - Pre-push hook failures on pre-existing issues: push with --no-verify This prevents the agent from blocking on unanswered interactive prompts when running in CI pipelines. Co-Authored-By: Claude Opus 4.6 (1M context) --- docs/index.html | 2 +- plugins/openshift-developer/.claude-plugin/plugin.json | 2 +- .../openshift-developer/skills/address-review-pr/SKILL.md | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/index.html b/docs/index.html index 3d44b30f5..5ac39733c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2467,7 +2467,7 @@

ai-helpers

{ "name": "openshift-developer", "description": "Bundle of curated plugins, skills, and MCP servers useful to any OpenShift engineer", - "version": "1.1.7", + "version": "1.1.8", "has_readme": true, "commands": [], "skills": [ diff --git a/plugins/openshift-developer/.claude-plugin/plugin.json b/plugins/openshift-developer/.claude-plugin/plugin.json index 0e86a812c..d812d0b2f 100644 --- a/plugins/openshift-developer/.claude-plugin/plugin.json +++ b/plugins/openshift-developer/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "openshift-developer", "description": "Bundle of curated plugins, skills, and MCP servers useful to any OpenShift engineer", - "version": "1.1.7", + "version": "1.1.8", "author": { "name": "github.com/openshift-eng" }, diff --git a/plugins/openshift-developer/skills/address-review-pr/SKILL.md b/plugins/openshift-developer/skills/address-review-pr/SKILL.md index 0135a19bb..9e7cd12c5 100644 --- a/plugins/openshift-developer/skills/address-review-pr/SKILL.md +++ b/plugins/openshift-developer/skills/address-review-pr/SKILL.md @@ -8,12 +8,14 @@ openshift-developer:address-review-pr ## Synopsis ``` -/openshift-developer:address-review-pr [PR number] [--preview] +/openshift-developer:address-review-pr [PR number] [--preview] [--ci] ``` ## Description Automates addressing PR review comments by fetching all comments from a pull request, categorizing them by priority (blocking, change requests, questions, suggestions), and systematically addressing each one. Intelligently filters out outdated comments, bot-generated content, and oversized responses to optimize context usage. Handles code changes, posts replies to reviewers, and maintains a clean git history by amending relevant commits rather than creating unnecessary new ones. +When `--ci` is passed: NEVER ask interactive questions or wait for user input. Make autonomous decisions. When in doubt, proceed with the safest action. + ## Implementation ### Step 0: Checkout the PR Branch @@ -238,6 +240,7 @@ Show: total comments found, filtered out, addressed with code changes, replied t ## Arguments - `$1`: PR number (optional — uses current branch if omitted) - `--preview`: Preview each comment's proposed action and reply before proceeding +- `--ci`: Non-interactive CI automation mode ## Duplicate Prevention