Skip to content
This repository was archived by the owner on Nov 18, 2021. It is now read-only.
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

Open

Description

@tooomm

The new option for several templates is nice, it only lacks some more possibilities.

Like presetting a issue title with [Bug] or adding a feature-request label for example.

<!-- presettings
titel=[Bug]
label=feature-request,not-reviewed
--->

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.

Activity

  1. 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
  2. aslafy-z commented on Nov 6, 2018

    @aslafy-z

    But it should look like this:

    ---
    # Currently supported
    name: "Feature request"
    about: "Feature request blabla"
    # Please add these <!>
    title: "feat: "
    labels: ["feature-request", "not-reviewed"]
    ---
  3. derekprior commented on Dec 5, 2018

    @derekprior

    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/

  4. tooomm commented on Dec 5, 2018

    @tooomm
    Author

    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 ?

  5. derekprior commented on Dec 5, 2018

    @derekprior

    @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!

  6. aslafy-z commented on Dec 6, 2018

    @aslafy-z

    @derekprior Do this also work for PRs?

  7. derekprior commented on Dec 6, 2018

    @derekprior

    @aslafy-z not at this time.

  8. AraHaan commented on Dec 6, 2018

    @AraHaan

    What about preselecting the project on the issue/pull request via the templates?

  9. epignatelli commented on Jul 8, 2019

    @epignatelli

    Also, is there a way to use variables coming from the current action?
    Something like:

    ---
    assignee: $(user_that_raised_the_pr)
    ---
    
  10. villesau commented on Jan 7, 2020

    @villesau

    @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.

  11. AraHaan commented on Jan 8, 2020

    @AraHaan

    @derekprior what about projects in them as well.

  12. 4 remaining items

  13. nothub commented on Aug 13, 2020

    @nothub

    its 2020 and this still isnt a thing?

  14. Crow-Control commented on Aug 28, 2020

    @Crow-Control

    This is really bad practice...
    Not having it after saying to be working on it in 2018.

  15. rodoabad commented on Jan 19, 2021

    @rodoabad

    Here's to having this feature added in 2021!

  16. anlesk commented on Feb 13, 2021

    @anlesk

    Any updates?

  17. AraHaan commented on Feb 13, 2021

    @AraHaan

    I see many repositories set this so I think it has already been done just not documented yet.

  18. anlesk commented on Feb 14, 2021

    @anlesk

    @AraHaan not for the title for PR's though

  19. AraHaan commented on Feb 14, 2021

    @AraHaan

    I seen some repositories set some title prefixes however.

  20. TylerCharlesworth commented on Feb 15, 2021

    @TylerCharlesworth

    @AraHaan Any repos in particular that might be worth us referencing? Even for just the labels would be cool!

  21. AraHaan commented on Feb 15, 2021

    @AraHaan

    I think it is a microsoft one if I remember right @TylerCharlesworth

  22. alexander-scott commented on Apr 15, 2021

    @alexander-scott

    @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!

  23. AraHaan commented on Apr 15, 2021

    @AraHaan

    I think it was the powershell repository @alexander-scott if I remember right.

  24. vincentrohde commented on Aug 30, 2021

    @vincentrohde

    Any updates, if someone from Microsoft is working on the PR preset issue? Any updates, if someone found a working solution? ☹️

  25. AraHaan commented on Aug 30, 2021

    @AraHaan

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions