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

Update git-clone task and document changes in behaviour #427

Merged
merged 1 commit into from
Sep 11, 2020
Merged

Update git-clone task and document changes in behaviour #427

merged 1 commit into from
Sep 11, 2020

Conversation

divyansh42
Copy link
Member

@divyansh42 divyansh42 commented Jul 20, 2020

Changes

Earlier git-clone assumes master as default branch, but after tektoncd/pipeline#2835
master is no more default branch. Hence, updated the git clone task to
fetch 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:

  • Includes docs (if user facing)
  • Commit messages follow commit message best practices
  • Yaml file complies with yamllint rules.
  • Complies with Catalog Orgainization TEP, see example. Note An issue has been filed to automate this validation
    • 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 resource

    • Has mandatory metadata.annotations tekton.dev/pipelines.minVersion

    • mandatory spec.description follows the convention

        ```
      
        spec:
          description: >-
            one line summary of the resource
      
            Paragraph(s) to describe the resource.
        ```
      

See the contribution guide
for more details.


@tekton-robot tekton-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 20, 2020
Copy link
Member

@chmouel chmouel left a 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

task/git-clone/0.1/README.md Outdated Show resolved Hide resolved
task/git-clone/0.1/README.md Outdated Show resolved Hide resolved
task/git-clone/0.1/README.md Outdated Show resolved Hide resolved
@divyansh42
Copy link
Member Author

Perhaps update the sample too, to not use master

@chmouel I have checked in the sample for git-clone task, master is not used any where.
Did you mean we need to check for master in every catalog task? Please let me know your thoughts on this.

@vinamra28
Copy link
Member

/test pull-tekton-catalog-build-tests

@divyansh42
Copy link
Member Author

/hold

@tekton-robot tekton-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 30, 2020
@chmouel
Copy link
Member

chmouel commented Jul 30, 2020

let's wait for #433 first which would be a 0.2 bump,

@ghost
Copy link

ghost commented Aug 17, 2020

#433 is merged now - suggest porting these changes to 0.2. Thanks for taking this on!

@divyansh42
Copy link
Member Author

/hold cancel

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 28, 2020
Copy link
Member

@vinamra28 vinamra28 left a 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? 🙂

task/git-clone/0.2/README.md Outdated Show resolved Hide resolved
task/git-clone/0.2/README.md Outdated Show resolved Hide resolved
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]>
Copy link
Member

@vinamra28 vinamra28 left a comment

Choose a reason for hiding this comment

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

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 28, 2020
@vinamra28
Copy link
Member

/cc @vdemeester @chmouel
can we get this in? 🙂

@tekton-robot
Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 11, 2020
@chmouel
Copy link
Member

chmouel commented Sep 11, 2020

/lgtm

Looking Good! 🤙🏽

@tekton-robot tekton-robot merged commit 88bc2b5 into tektoncd:master Sep 11, 2020
@tekton-robot
Copy link

@divyansh42: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-tekton-catalog-integration-tests 76baa49 link /test pull-tekton-catalog-integration-tests

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
@tekton-robot
Copy link

@divyansh42: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
pull-tekton-catalog-integration-tests 76baa49 link /test pull-tekton-catalog-integration-tests

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.

@divyansh42 divyansh42 deleted the update-git-clone branch September 11, 2020 14:08
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. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update git-clone to latest git-init and document changes in behaviour
6 participants