Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: base ref #1618

Merged
merged 1 commit into from
Nov 20, 2024
Merged

fix: base ref #1618

merged 1 commit into from
Nov 20, 2024

Conversation

msvticket
Copy link
Member

@msvticket msvticket commented Nov 18, 2024

The baseRefOID field is used as the sha of the base ref. The problem is that the returned value for this field sometimes is another sha. Often I think it is the sha of the base when the PR was created, but sometimes it is the sha of a much older commit.

In this PR I replace the use of baseRefIOD with

baseRef {
    target {
        oid
    }
}

This seems to always be the current sha of the base ref, which is what we want.

This should fix the issue reported here: https://kubernetes.slack.com/archives/C9MBGQJRH/p1728050746717079

@jenkins-x-bot
Copy link
Contributor

[jx-info] Hi, we've detected that the pipelines in this repository are using a syntax that will soon be deprecated.
We'll continue to update you through PRs as we progress. Please check #8589 for further information.

@jenkins-x-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Skisocks

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

The pull request process is described here

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

@jenkins-x-bot jenkins-x-bot merged commit 082a621 into main Nov 20, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants