-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Escape label names when writing to disk. #1195
Conversation
The following is the coverage report on pkg/.
|
/cc @dibyom @bobcatfish |
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
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.
Awesome!! I'm especially excited to have an example for this now too :D My only feedback is a quick plug for maybe adding a focused unit test or two, and a comment, but nothing major
/hold |
Github/other providers allow labels to contain special characters like /. These cannot easily be represented as filenames. This commit URL encodes these label keys, which should provide a safe mechanism for writing these names as files. I've been unable to find documentation containing an exhaustive list of characters allowed in labels, but this change works with everything in the Tekton repos. This PR also includes a sample YAML that ensures a Tekton PR has been approved, which caught this issue.
Ready! |
The following is the coverage report on pkg/.
|
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
/hold cancel
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dibyom, dlorenc 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 |
Changes
Github/other providers allow labels to contain special characters like /. These
cannot easily be represented as filenames. This commit URL encodes these label
keys, which should provide a safe mechanism for writing these names as files.
I've been unable to find documentation containing an exhaustive list of characters
allowed in labels, but this change works with everything in the Tekton repos.
This PR also includes a sample YAML that ensures a Tekton PR has been approved, which
caught this issue.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
Reviewer Notes
Release Notes