Add documentation and example for type field in issue templates (#58098)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: azenMatt <7584089+azenMatt@users.noreply.github.com> Co-authored-by: Felix Guntrip <stevecat@github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: felix <guntrip@github.com>
This commit is contained in:
@@ -22,7 +22,7 @@ shortTitle: Configure
|
||||
{% data reusables.repositories.sidebar-settings %}
|
||||
1. In the "Features" section, under **Issues**, click **Set up templates**. You may need to enable **Issues** and refresh the page before you can see the button.
|
||||
|
||||

|
||||

|
||||
1. Use the **Add template** dropdown menu, and click on the type of template you'd like to create.
|
||||
|
||||

|
||||
@@ -30,7 +30,7 @@ shortTitle: Configure
|
||||
1. To edit the template, click {% octicon "pencil" aria-label="Edit template" %}, and type in the fields to edit their contents.
|
||||
|
||||

|
||||
1. To automatically set a default issue title, assign the issue to people with read access to the repository, or apply labels to issues raised from the template, use the fields under "Optional additional information." You can also add these details in the issue template with `title`, `labels`, or `assignees` in a YAML frontmatter format.
|
||||
1. To automatically set a default issue title, assign the issue to people with read access to the repository, or apply labels to issues raised from the template, use the fields under "Optional additional information." You can also add these details in the issue template with `title`, `labels`, `type`, or `assignees` in a YAML frontmatter format.
|
||||
1. When you're finished editing and previewing your template, click **Propose changes** in the upper right corner of the page.
|
||||
1. In the "Commit message" field, type a commit message describing your changes.
|
||||
1. Below the commit message fields, select whether to commit your template directly to the default branch, or to create a new branch and open a pull request. For more information about pull requests, see [AUTOTITLE](/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests).
|
||||
|
||||
@@ -5,7 +5,8 @@ title: "[Bug]: "
|
||||
labels: ["bug", "triage"]
|
||||
projects: ["octo-org/1", "octo-org/44"]
|
||||
assignees:
|
||||
- octocat
|
||||
- octocat{% ifversion issue-types %}
|
||||
type: bug{% endif %}
|
||||
body:
|
||||
- type: markdown
|
||||
attributes:
|
||||
@@ -59,7 +60,7 @@ body:
|
||||
id: terms
|
||||
attributes:
|
||||
label: Code of Conduct
|
||||
description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com).
|
||||
description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com).
|
||||
options:
|
||||
- label: I agree to follow this project's Code of Conduct
|
||||
required: true
|
||||
|
||||
Reference in New Issue
Block a user