Issue and PR templates #1518

Closed
opened 2025-11-02 04:03:41 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @lapin-b on GitHub (Feb 11, 2018).

  • Gitea version (or commit ref): 1.4.0+rc1
  • Git version: 2.16.1
  • Operating system: Linux (Arch Linux)
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:
    Not relevant

Description

I have absolutely no idea how I can word this, but I'll do my best.

In a nutshell, if the template file exists in the repository (let's say .gitea/ISSUE_TEMPLATE.md), then Gitea can fetch the contents of the file and populate the textarea on the new issue template. Otherwise leave the textarea empty.

For example, GitHub implements this feature.

PS: my wording can be terrible; English isn't my native language

Originally created by @lapin-b on GitHub (Feb 11, 2018). <!-- 1. Please speak English, this is the language all of us can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/NsatcWJ) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version (or commit ref): 1.4.0+rc1 - Git version: 2.16.1 - Operating system: Linux (Arch Linux) - Database (use `[x]`): - [ ] PostgreSQL - [x] MySQL - [ ] MSSQL - [ ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: *Not relevant* ## Description I have absolutely no idea how I can word this, but I'll do my best. In a nutshell, if the template file exists in the repository (let's say `.gitea/ISSUE_TEMPLATE.md`), then Gitea can fetch the contents of the file and populate the textarea on the new issue template. Otherwise leave the textarea empty. For example, GitHub implements this feature. *PS: my wording can be terrible; English isn't my native language*
GiteaMirror added the type/docs label 2025-11-02 04:03:41 -06:00
Author
Owner

@kolaente commented on GitHub (Feb 13, 2018):

This actually already exists:

Possible names for issues:

"ISSUE_TEMPLATE.md",
"issue_template.md",
".gitea/ISSUE_TEMPLATE.md",
".gitea/issue_template.md",
".github/ISSUE_TEMPLATE.md",
".github/issue_template.md",

And for PRs:

"PULL_REQUEST_TEMPLATE.md",
"pull_request_template.md",
".gitea/PULL_REQUEST_TEMPLATE.md",
".gitea/pull_request_template.md",
".github/PULL_REQUEST_TEMPLATE.md",
".github/pull_request_template.md",

We should add this somewhere to the docs.

@kolaente commented on GitHub (Feb 13, 2018): This actually already exists: Possible names for issues: ``` "ISSUE_TEMPLATE.md", "issue_template.md", ".gitea/ISSUE_TEMPLATE.md", ".gitea/issue_template.md", ".github/ISSUE_TEMPLATE.md", ".github/issue_template.md", ``` And for PRs: ``` "PULL_REQUEST_TEMPLATE.md", "pull_request_template.md", ".gitea/PULL_REQUEST_TEMPLATE.md", ".gitea/pull_request_template.md", ".github/PULL_REQUEST_TEMPLATE.md", ".github/pull_request_template.md", ``` We should add this somewhere to the docs.
Author
Owner

@techknowlogick commented on GitHub (May 10, 2018):

@kolaente I added a PR to add this information to the docs, please see: #3942

@techknowlogick commented on GitHub (May 10, 2018): @kolaente I added a PR to add this information to the docs, please see: #3942
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1518