-
Notifications
You must be signed in to change notification settings - Fork 577
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
Update git-clone task and document changes in behaviour #427
Conversation
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.
Perhaps update the sample too, to not use master
@chmouel I have checked in the sample for |
/test pull-tekton-catalog-build-tests |
/hold |
let's wait for #433 first which would be a 0.2 bump, |
#433 is merged now - suggest porting these changes to 0.2. Thanks for taking this on! |
/hold cancel |
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 we change this also? 🙂
Earlier git-clone assumes `master` as default branch, but after #2835 `master` is no more default branch. Hence, updated the git clone task fetch a remote repository's default branch instead of assuming "master" when revision is "". Signed-off-by: Divyansh42 <[email protected]>
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.
/lgtm
/cc @vdemeester @chmouel |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sbwsg, vinamra28 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 |
/lgtm Looking Good! 🤙🏽 |
@divyansh42: The following test failed, say
Full PR test history. Your PR dashboard. 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/test-infra repository. I understand the commands that are listed here. |
1 similar comment
@divyansh42: The following test failed, say
Full PR test history. Your PR dashboard. 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/test-infra repository. I understand the commands that are listed here. |
Changes
Earlier git-clone assumes
master
as default branch, but after tektoncd/pipeline#2835master
is no more default branch. Hence, updated the git clone task tofetch a remote repository's default branch instead of assuming
master
when
revision
is "".Closes: #390
Signed-off-by: Divyansh42 [email protected]
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
File path follows
<kind>/<name>/<version>/name.yaml
Has
README.md
at<kind>/<name>/<version>/README.md
Has mandatory
metadata.labels
-app.kubernetes.io/version
the same as the<version>
of the resourceHas mandatory
metadata.annotations
tekton.dev/pipelines.minVersion
mandatory
spec.description
follows the conventionSee the contribution guide
for more details.