-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
New Issue ?body= query #5851
New Issue ?body= query #5851
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5851 +/- ##
==========================================
+ Coverage 37.83% 37.85% +0.01%
==========================================
Files 328 328
Lines 48326 48328 +2
==========================================
+ Hits 18285 18294 +9
+ Misses 27408 27401 -7
Partials 2633 2633
Continue to review full report at Codecov.
|
Can we put this in the docs? |
@kolaente I have updated the documentation, thanks for the suggestion. |
@@ -39,3 +39,6 @@ Possible file names for PR templates: | |||
* .gitea/pull_request_template.md | |||
* .github/PULL_REQUEST_TEMPLATE.md | |||
* .github/pull_request_template.md | |||
|
|||
|
|||
Additionally, the New Issue page URL can be suffixed with `?body=Issue+Text` and the form will be populated with that string. This string will be used instead of the template if there is one. |
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.
Doesn't this also work for pull requests? If so, you should mention that 🙂
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 does not, this PR adds supports only for new issues. Implementing this to new pull requests makes little sense to me, as the developer also has to know which branches the user needs to compare in advance.
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.
Makes sense, thanks for clarifying!
Like with mailto email links, Github allows filling the body of the issue with the "body" query string in the URL, you can see it here:
https://github.com/LoveEevee/gitea/issues/new?body=This+is+an+example
This is particularly useful to make a link in an application and include a bug reporting button, which pre-fills the issue with a specific template, but also with some debug information that the software author wants to be included with the bug.
This PR implements an optional "body" that may be included with the URL when creating a new issue in a repository.