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.
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
Issue Template Forms #140
base: main
Are you sure you want to change the base?
Issue Template Forms #140
Changes from 6 commits
2cdabff
4432791
0674ca5
7df4375
cc5bf1d
7f3560f
61b2c1b
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
It's fine to postpone, because you might be able to iterate faster without, but adding a template for this (and start this with
amends "path/to/template/maybe/even/package/on/pkl-pantry"
) would give you the full Pkl experience ;)You can also start by just putting type annotations in this file.
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.
I was thinking about doing something like that but then I decided to just write the
yml
assisted by the existing template and basing thepkl
on that, since it's not gonna be changed a lot and I didn't wanna bury myself in a rabbithole.I'm not gonna go that deep atm but I bet as this gets more popular someone is gonna make a template that can then be used here.
Really seeing the use-cases of this language tho :D
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.
I will write a template tho, where should I put that? I don't think it makes sense to put it in the ISSUE_TEMPLATE folder or one might confuse it with an actual issue template that didn't get rendered by accident. What do you think?
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.
In a very general sense; you can publish packages anywhere you like (that's just FYI for whatever else you might be looking to create templates for). All repositories maintained by the core Pkl team should really only be use packages in those repositories. This could be an excellent contribution to pkl-pantry. It's worth having a think about naming. I'm hesitant to suggest
com.github
as a package name, because that would suggest an authoritative source, but maybecom.github.contrib
? (cc @bioball).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.
I was gonna write just a template for this specific usecase, not a completely generalized one. This would just include the "GENERATED" message and shared attributes between similar templates. Obviously that's not really necessary, but I wanted to try out some of the features of pkl, without writing a complete implementation of github's issue form standard.
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.
Re: package name: I think
com.github
is entirely reasonable, as long as the templates simply represent a schema in the target domain.Maybe the name should be more narrowly scoped, though? How about we call this
com.github.issueTemplate
? There's also GitHub Actions, which we probably don't want to group together with this.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.
@holzensp what did you mean by this?
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.
^^ that as assuming you would
amends "path/to/template/maybe/even/package/on/pkl-pantry"
Considering all your templates will have a
name: String
,description: String
,title: String
,Labels: Listing<SomeMeaningfulEnum>
,body: Listing<BodyPart>
, I would consider rolling a template for that.If you follow the above advice about multi-file; the template would simply produce zero output files, so you can still evaluate
*.pkl
without issue. Keeping the template in this directory, instead of publishing it topkl-pantry
also communicates "this isn't a general implementation of the GitHub Issues API, it's just something used here."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.
Exactly. If there is enough demand, someone is gonna make a full suite of GitHub scoped templates, I'll leave that to them and use a simple template for this use case.
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.
So my question remains, where should I put the template file?