-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
feat: support for file headers #183
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This reverts commit 7c81b7f.
aeneasr
approved these changes
Aug 4, 2022
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, let's give this a spin! :)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This enables Ory CLI to add headers to source code files in various ways. I decided to build (vs buy) this because that was needed for feature (2) anyways, and I could reuse the functionality to add headers to build a solution for (1) that is custom-tailored to our unique setup.
This PR adds two main capabilities to Ory CLI's dev tooling:
add license headers to all files in a folder (implements https://github.com/ory-corp/general/issues/602)
cli dev headers license .
.md
filesadd link to original file in ory/meta while replicating from ory/meta to all Ory repos (implements idea: add header to file copies that mentions they are auto-generated and links to the original meta#149)
cli dev headers cp [-r] <source> <destination>
cp -r
around which files are copied (if not that's a bug in this tool)ory/meta
since that's the only source of file replication I am aware of right nowThis is an alpha release. Fine-tuning is expected as this is being used more widely.
Related Issue or Design Document
ory/meta#149 and https://github.com/ory-corp/general/issues/602
Checklist
and signed the CLA.
introduces a new feature.
vulnerability. If this pull request addresses a security vulnerability, I
confirm that I got green light (please contact
security@ory.sh) from the maintainers to push
the changes.
works.
appropriate).