Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pre-populate the github new issue form using the querystring

Tags:

github

Is there a way to have a link for a new git issue that pre-populates labels and the assignment field to labels and a user that is specified in the query string?

My use case is that I'd like to have a link that I can give to testers that will ensure they select the correct labels for my feature and also have the git issue assigned to me.

like image 628
DiverseAndRemote.com Avatar asked Dec 08 '15 01:12

DiverseAndRemote.com


2 Answers

I found out that the format is https://github.com/[user]/[repo]/issues/new?title=[title]&assignee=[user]&body=[body]&labels[]=label1&labels[]=label2

like image 72
DiverseAndRemote.com Avatar answered Nov 15 '22 06:11

DiverseAndRemote.com


This is now:

https://github.com/[user]/[repo]/issues/new?title=[title]&assignee=[user]&body=[body]&labels=label1,label2

since Nov 2017. See: https://github.com/isaacs/github/issues/99#issuecomment-343061332

like image 2
James Heazlewood Avatar answered Nov 15 '22 05:11

James Heazlewood