-
Notifications
You must be signed in to change notification settings - Fork 113
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
[fixed] : Order of Local Source between Builds and BuildRuns #1507
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
// Note: In v1alpha1 we will append all sources across builds and buildruns, and then return | ||
// the first source of type Local. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment becomes an orphan by your change, nonetheless we think this comment can be removed anyway. Could you amend that in your change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah sure @HeavyWombat . will do it ASAP!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please rebase your branch. Commit "Fixed buildCredentialserences function name" was already merged in #1506.
Also, please check the release notes section of your PR description. You need to remove the HTML comment (<!-- -->
) and select one section like I had done it for you in your previous PR.
I think i have messed up a lot of things. I'll just create a new PR |
Changes
This Pull Request fixes #1500 by improving the "isLocalCopyBuildSource" function by reordering the conditionals to prioritize the local source from the BuildRun over that of the Build. Here's a summary of the changes made:
Removed redundant condition:
With the first conditional handling the case where a local source is defined in the BuildRun, there's no need to check if the Build has a local source if the BuildRun already has one.
Submitter Checklist
See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.
Release Notes