-
-
Notifications
You must be signed in to change notification settings - Fork 557
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(yaml): Add extensions
option to load YAML files with custom extensions
#1445
Conversation
.cff
files with yaml
plugin.cff
files
Thanks for the PR. Unfortunately we won't be able to accept this PR. We mentioned in #868 that this is a pretty small edge case. It looks like An alternative approach that would make more sense would be to allow the plugin to accept an option to provide additional file extensions which the user believes are YAML-compatible. |
GitHub, Zernodo and Zotero is actually pretty broad support for someone in the scientific community.
I agree that would make more sense but in #868 you rejected that proposal and the issue was closed (as completed). If you changed your mind, maybe reopen it? |
Correction, the stale bot closed it because it didn't get engagement. There's a large difference that's important to understand. The author of #868 didn't provide specifics or context along the lines of what you provided here. Our job as maintainers is not to accept every request - our job is to say "no," frequently, to keep projects focused and free from bloat (as a counter example, see Webpack). These are two different issues in my view. One is unspecific and one is specific, exposing a wider reasonable need without catering directly to edge cases. I won't reopen #868 because it hasn't met the guidelines that the bot posted, but I will reopen this PR if you're interesting in pivoting to the alternative approach I mentioned. Worst case, you've got a fork of the yaml plugin that can handle |
Sure, I'll take a swing at making extensions configurable! Re the correction, I noticed the issue was not closed by you. But I (perhaps mis-)read your reply
as a rejection of configurable extensions (perhaps because I don't see how my issue is more general than #868). |
@shellscape I opted for |
Thanks for the ping. I'm very short on time at the moment. I like the new direction. We'll need some tests around the change and the CI failures will need to be resolved. |
@shellscape I added 5 tests. Let me know if you think more are needed. |
.cff
filesextensions
option to load YAML files with custom extensions
Rollup Plugin Name:
yaml
This PR contains:
Are tests included?
Breaking Changes?
If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.
List any relevant issue numbers:
#868
Description
GH supports citable repos by adding a
citation.cff
file in YAML format at the root. In scientific contexts, this makes needing to load yaml files with.cff
extension a common use case. Would be great if this was supported!