You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
ability to preset issue/pr title and label in templates #1252
At best this would not be shown in the issue message, so that people can't simply adjust the label line and influence it like that.
Reacted by Summer Knight, Christoph, EduardoDelgado, Zadkiel AHARONIAN, Elias, AraHaan, Jhoan Manuel Muñoz Serrano, Viktor Zahorodnii, Jonathan Wong, Tegan Rauh and 26 more
changed the title [-]ability to preset issue/pr title and/or label in templates[/-][+]ability to preset issue/pr title and label in templates[/+]on May 23, 2018
@tooomm you can set the title, assignees, and labels via YAML frontmatter (or via the online template editor, which will do that for you). For example:
---
name: "Feature Request"about: "Request a feature"title: "feat: "labels: "feature-request, not-reviewed"assignees: "derekprior, tooomm"
---
Body of my template
When a user uses the template to create a new issue, the title, labels, and assignees will be preselected. Title can be overridden, just as body can today. Users with write access to the repo will be able to modify the label and assignee selections before submitting the issue if they wish. Users that do not have write access will not be able to change those because they do not have permissions.
Hope this helps!
Reacted by tooomm, Gabriela Gabriel, Joshua Shields, Adam J. Stewart and AraHaan
Reacted by oliver-nh, Tom, Martina Iglesias, Ville Saukkonen, AraHaan, Alexandre Gaudreault, Jonathan Wong, Joshua Shields, Simon Espigolé, Pierre-Yves Bigourdan and 8 more
Also, is there a way to use variables coming from the current action?
Something like:
---
assignee: $(user_that_raised_the_pr)
---
Reacted by Julian, AraHaan, Václav Čevela, Gabriela Gabriel, Joshua Shields, Terry Tu Nguyen, Simon Espigolé, Shoichi Aizawa, Adam Mathis, Arnau Sangrà and 5 more
@derekprior any timeline for supporting labels in pull request templates? We control our releases (patch, minor, major) with it and minor is the default. Otherwise it gets forgotten easily.
Reacted by Daniel Naves de Carvalho, Marvin ROGER, Jon E. Eguiluz, Lucas Hansen, Dani, Alexandre Gaudreault, Jonathan Wong, Tegan Rauh, Joshua Shields, applesaucesome and 25 more
Reacted by Jadwiga, Mark Visser, Jack Nguyen, Anatoly Leskovets, AraHaan, Johannes Visintini, JC Dansereau, Sebastian Kunze, Gabriel Massadas, Anderson G. Porto and 9 more
@AraHaan Could you provide us with an example of it working? I can't work out if this feature has been implemented yet or not. Would be really interested in using it!
Activity
[-]ability to preset issue/pr title and/or label in templates[/-][+]ability to preset issue/pr title and label in templates[/+]aslafy-z commentedon Nov 6, 2018
But it should look like this:
derekprior commentedon Dec 5, 2018
Hello! We now support setting the issue title, labels, and assignees via issue template frontmatter. See: https://blog.github.com/changelog/2018-12-05-issue-template-automation-improvements/
tooomm commentedon Dec 5, 2018
Reading that blog post and the linked pages there... I've still no clue how this is supposed to work.
Can you elaborate a bit, please @derekprior ?
derekprior commentedon Dec 5, 2018
@tooomm you can set the
title,assignees, andlabelsvia YAML frontmatter (or via the online template editor, which will do that for you). For example:When a user uses the template to create a new issue, the title, labels, and assignees will be preselected. Title can be overridden, just as body can today. Users with write access to the repo will be able to modify the label and assignee selections before submitting the issue if they wish. Users that do not have write access will not be able to change those because they do not have permissions.
Hope this helps!
aslafy-z commentedon Dec 6, 2018
@derekprior Do this also work for PRs?
derekprior commentedon Dec 6, 2018
@aslafy-z not at this time.
AraHaan commentedon Dec 6, 2018
What about preselecting the project on the issue/pull request via the templates?
Yaml header is not yet supported for PR templates
Yaml header is not yet supported for PR templates (#437)
epignatelli commentedon Jul 8, 2019
Also, is there a way to use variables coming from the current action?
Something like:
Yaml header is not yet supported for PR templates (#437)
villesau commentedon Jan 7, 2020
@derekprior any timeline for supporting labels in pull request templates? We control our releases (patch, minor, major) with it and minor is the default. Otherwise it gets forgotten easily.
AraHaan commentedon Jan 8, 2020
@derekprior what about
projectsin them as well.4 remaining items
nothub commentedon Aug 13, 2020
its 2020 and this still isnt a thing?
Crow-Control commentedon Aug 28, 2020
This is really bad practice...
Not having it after saying to be working on it in 2018.
rodoabad commentedon Jan 19, 2021
Here's to having this feature added in 2021!
anlesk commentedon Feb 13, 2021
Any updates?
AraHaan commentedon Feb 13, 2021
I see many repositories set this so I think it has already been done just not documented yet.
anlesk commentedon Feb 14, 2021
@AraHaan not for the title for PR's though
AraHaan commentedon Feb 14, 2021
I seen some repositories set some title prefixes however.
TylerCharlesworth commentedon Feb 15, 2021
@AraHaan Any repos in particular that might be worth us referencing? Even for just the labels would be cool!
AraHaan commentedon Feb 15, 2021
I think it is a microsoft one if I remember right @TylerCharlesworth
alexander-scott commentedon Apr 15, 2021
@AraHaan Could you provide us with an example of it working? I can't work out if this feature has been implemented yet or not. Would be really interested in using it!
AraHaan commentedon Apr 15, 2021
I think it was the powershell repository @alexander-scott if I remember right.
vincentrohde commentedon Aug 30, 2021
Any updates, if someone from Microsoft is working on the PR preset issue? Any updates, if someone found a working solution?☹️
AraHaan commentedon Aug 30, 2021
I feel like the solution to this would be something similar to the issue forms beta, however instead have it targeting pull requests as well.