Skip to content

NO-ISSUE: Remove setting the expectedMergeBase in commitchecker#95

Open
tmshort wants to merge 1 commit intoopenshift:mainfrom
tmshort:remove-expected-merge-base
Open

NO-ISSUE: Remove setting the expectedMergeBase in commitchecker#95
tmshort wants to merge 1 commit intoopenshift:mainfrom
tmshort:remove-expected-merge-base

Conversation

@tmshort
Copy link
Copy Markdown
Contributor

@tmshort tmshort commented Mar 31, 2026

The field is optional.
The commitchecker ought to be able to figure this out.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Mar 31, 2026
@openshift-ci-robot
Copy link
Copy Markdown

@tmshort: This pull request explicitly references no jira issue.

Details

In response to this:

The field is optional.
The commitchecker ought to be able to figure this out.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Mar 31, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tmshort

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 31, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 6d82eee9-12e9-4ee3-a28a-1ec2249757c9

📥 Commits

Reviewing files that changed from the base of the PR and between 497e99f and b70a0f6.

📒 Files selected for processing (1)
  • pkg/v1/cmd.go

Walkthrough

The writeCommitCheckerFile function in pkg/v1/cmd.go had its expectedMergeBase parameter removed; callers were updated and the generated commitchecker.yaml no longer includes an expectedMergeBase field.

Changes

Cohort / File(s) Summary
Function signature and generated config
pkg/v1/cmd.go
Dropped the expectedMergeBase parameter from writeCommitCheckerFile signature and removed the expectedMergeBase field from the marshaled YAML; updated the function call site accordingly.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 golangci-lint (2.11.4)

Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions
The command is terminated due to an error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions


Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 31, 2026
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@pkg/v1/cmd.go`:
- Line 971: The function signature for writeCommitCheckerFile has a missing
comma between parameters causing invalid Go syntax; open the
writeCommitCheckerFile function declaration and insert a comma between the
branch and dir parameters so the parameter list reads something like "org, repo,
branch, dir string" (keeping commitArgs []string unchanged), then run go build
to confirm the compile error is resolved.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 330b5483-2f90-4478-8cac-ce15b066e600

📥 Commits

Reviewing files that changed from the base of the PR and between 7951ec3 and 497e99f.

📒 Files selected for processing (1)
  • pkg/v1/cmd.go

The field is optional.
The commitchecker ought to be able to figure this out.

Signed-off-by: Todd Short <todd.short@me.com>
@openshift-ci
Copy link
Copy Markdown

openshift-ci bot commented Mar 31, 2026

@tmshort: all tests passed!

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants