diff --git a/.claude/commands/process-konflux-prs.md b/.claude/commands/process-konflux-prs.md deleted file mode 100644 index 0efaa940905..00000000000 --- a/.claude/commands/process-konflux-prs.md +++ /dev/null @@ -1,599 +0,0 @@ ---- -name: process-konflux-prs -description: Look at pull requests created by the Konflux bot and manage them, optimizing their merge to avoid repetitive builds. -allowed-tools: - - Bash(scripts/process-konflux-prs/snapshot-prs.sh *) - - Bash(scripts/process-konflux-prs/list-prs.sh *) - - Bash(scripts/process-konflux-prs/get-pr-status.sh *) - - Bash(scripts/process-konflux-prs/get-pr-components.sh *) - - Bash(scripts/process-konflux-prs/label-pr.sh *) - - Bash(scripts/process-konflux-prs/merge-pr.sh *) - - Bash(scripts/process-konflux-prs/skip-pr.sh *) - - Bash(scripts/process-konflux-prs/check-pipeline-status.sh *) - - Bash(scripts/process-konflux-prs/check-merge-safety.sh *) - - Bash(scripts/process-konflux-prs/get-nudge-prs.sh *) - - Bash(scripts/process-konflux-prs/get-component-info.sh) - - Bash(scripts/process-konflux-prs/get-component-info.sh *) ---- - -Process the pull requests from Mintmaker and Konflux - -# Implementation Requirements - -**CRITICAL: Parameter-gated behavior**: The command behavior is strictly controlled by parameters: - -- **No parameter**: ONLY list PRs. For each PR, show which images will be rebuilt and the - suggested action (see [Status output format](#status-output-format)). Do NOT label or merge. -- **`--mintmaker`**: Process Mintmaker PRs ONLY. Apply labels (ok-to-test, lgtm), then merge - PRs that are ready (see [Step 1 - Mintmaker PR processing](#step-1---mintmaker-pr-processing)). - Do NOT touch Nudge PRs. -- **`--nudge`**: Process Nudge PRs ONLY, with the Mintmaker safeguard (see - [Step 2 - Nudge PR processing](#step-2---nudge-pr-processing)). Do NOT touch Mintmaker PRs. - Merges nudge PRs that do not auto-merge (non-osc repos, and osc PRs not targeting `devel`). -- **`--dry-run`**: Show what would be done. Do NOT label or merge. Can be combined with - `--mintmaker` or `--nudge` to preview that specific step. - -`--mintmaker` and `--nudge` are mutually exclusive. If neither is given, only list/status output -is produced. - -**CRITICAL**: Always query fresh data. Never use PR numbers from previous runs or earlier in the conversation. - -When implementing this skill: - -1. **Always start fresh**: Use `list-prs.sh` at the beginning of execution to get current PRs -2. **Process only discovered PRs**: Only process PR numbers returned from `list-prs.sh` -3. **Never hardcode PR numbers**: Do not use PR numbers from memory, previous runs, or earlier conversation turns -4. **Verify state before processing**: Use `get-pr-status.sh` to verify PR state before taking action - -All scripts must be called from the **repository root** using the full relative path -`./scripts/process-konflux-prs/