Process Renovate dependency PR(s) to meet repository contribution standards
Automates processing of Renovate dependency PRs to meet repository contribution standards.
/plugin marketplace add openshift-eng/ai-helpers/plugin install utils@ai-helpers<PR_NUMBER|open> [JIRA_PROJECT] [COMPONENT]utils:process-renovate-pr
/utils:process-renovate-pr <PR_NUMBER|open> [JIRA_PROJECT] [COMPONENT]
The utils:process-renovate-pr command automates the processing of Renovate/Konflux dependency update pull requests to meet repository contribution standards. It analyzes dependencies, creates comprehensive Jira tickets, and updates PR titles with proper references.
This command significantly reduces manual PR processing time from approximately 15 minutes to 2 minutes by automating:
The command can process either a single PR by number or all open dependency PRs from the Konflux bot.
The command executes the following workflow:
red-hat-konflux[bot]chore(deps): update * digest to * (main)git fetch originorigin/mainorigin/release-*From the PR diff (go.mod changes):
Type Classification:
// indirect comment in go.modgo mod why <package> to identify parent dependencyUsage Analysis:
Version Changes:
Testing Strategy:
{Package name} ({Brief purpose})Posts comment with /retitle command and processing summary:
/retitle [PROJECT-XXXX](https://issues.redhat.com/browse/PROJECT-XXXX): {Package name} ({Brief description})
Includes checklist of completed actions and link to Jira ticket.
Process a single PR:
/utils:process-renovate-pr 7051
Output:
✅ Processed PR #7051
- Dependency: github.com/go-logr/logr
- Type: Direct
- Jira: CNTRLPLANE-1234
- Target Version: openshift-4.21
- PR title updated with Jira reference
Process with custom Jira project:
/utils:process-renovate-pr 7051 OCPBUGS
Creates ticket in OCPBUGS project instead of default CNTRLPLANE.
Process with custom component:
/utils:process-renovate-pr 7051 CNTRLPLANE "Control Plane Operator"
Creates ticket with specified component name.
Process all open dependency PRs:
/utils:process-renovate-pr open
Output:
Processing 3 dependency PRs...
[1/3] Processing PR #7051...
✅ Completed PR #7051
- Dependency: github.com/go-logr/logr
- Jira: CNTRLPLANE-1234
[2/3] Processing PR #7049...
✅ Completed PR #7049
- Dependency: golang.org/x/net
- Jira: CNTRLPLANE-1235
[3/3] Processing PR #7048...
✅ Completed PR #7048
- Dependency: k8s.io/api
- Jira: CNTRLPLANE-1236
Summary:
✅ Processed 3 PRs successfully
- Jira project: CNTRLPLANE
- Component: HyperShift
- Target Version: openshift-4.21
Process all open PRs with custom settings:
/utils:process-renovate-pr open OCPBUGS Infrastructure
$1 (required): PR number (e.g., 7051) or open to process all open dependency PRs from Konflux bot
open: Automatically fetches and filters dependency PRs, excluding "Pipelines as Code configuration" PRs$2 (optional): Jira project key (default: CNTRLPLANE)
CNTRLPLANE, OCPBUGS, HOSTEDCP$3 (optional): Jira component name (default: HyperShift)
"Control Plane Operator"The command handles common error cases:
git remote -v (non-fork remote)