GitHub Issue Templates: Hide Zed Logs (#13211)

Add details/summary block to GitHub issue templates so zed.log can be
hidden by default.

The diff for this is messy because the existing files were not correctly
auto-formatted. So I created two commits, one for autoformat and the
other for the changes.

I tested it on a private repo. When you first open the issue it looks
like this:
<img width="879" alt="image"
src="https://github.com/zed-industries/zed/assets/145113/07cda992-4d62-4c27-abaa-5c272ff65345">

Then when you double-click inside it becomes editable:
<img width="880" alt="image"
src="https://github.com/zed-industries/zed/assets/145113/970c6669-84da-41d1-9119-d3eb9b090066">
 

Release Notes:

- N/A
This commit is contained in:
Peter Tripp 2024-06-18 12:15:05 -04:00 committed by GitHub
parent 3701e190ce
commit 5ede48337c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 92 additions and 82 deletions

View file

@ -2,23 +2,23 @@ name: Feature Request
description: "Tip: open this issue template from within Zed with the `request feature` command palette action" description: "Tip: open this issue template from within Zed with the `request feature` command palette action"
labels: ["admin read", "triage", "enhancement"] labels: ["admin read", "triage", "enhancement"]
body: body:
- type: checkboxes - type: checkboxes
attributes: attributes:
label: Check for existing issues label: Check for existing issues
description: Check the backlog of issues to reduce the chances of creating duplicates; if an issue already exists, place a `+1` (👍) on it. description: Check the backlog of issues to reduce the chances of creating duplicates; if an issue already exists, place a `+1` (👍) on it.
options: options:
- label: Completed - label: Completed
required: true
- type: textarea
attributes:
label: Describe the feature
description: A clear and concise description of what you want to happen.
validations:
required: true required: true
- type: textarea - type: textarea
attributes: attributes:
label: | label: Describe the feature
If applicable, add mockups / screenshots to help present your vision of the feature description: A clear and concise description of what you want to happen.
description: Drag images into the text input below validations:
validations: required: true
required: false - type: textarea
attributes:
label: |
If applicable, add mockups / screenshots to help present your vision of the feature
description: Drag images into the text input below
validations:
required: false

View file

@ -1,40 +1,45 @@
name: Bug Report name: Bug Report
description: | description: |
Use this template for **non-crash-related** bug reports. Use this template for **non-crash-related** bug reports.
Tip: open this issue template from within Zed with the `file bug report` command palette action. Tip: open this issue template from within Zed with the `file bug report` command palette action.
labels: ["admin read", "triage", "defect"] labels: ["admin read", "triage", "defect"]
body: body:
- type: checkboxes - type: checkboxes
attributes: attributes:
label: Check for existing issues label: Check for existing issues
description: Check the backlog of issues to reduce the chances of creating duplicates; if an issue already exists, place a `+1` (👍) on it. description: Check the backlog of issues to reduce the chances of creating duplicates; if an issue already exists, place a `+1` (👍) on it.
options: options:
- label: Completed - label: Completed
required: true
- type: textarea
attributes:
label: Describe the bug / provide steps to reproduce it
description: A clear and concise description of what the bug is.
validations:
required: true required: true
- type: textarea - type: textarea
id: environment attributes:
attributes: label: Describe the bug / provide steps to reproduce it
label: Environment description: A clear and concise description of what the bug is.
description: Run the `copy system specs into clipboard` command palette action and paste the output in the field below. validations:
validations: required: true
required: true - type: textarea
- type: textarea id: environment
attributes: attributes:
label: If applicable, add mockups / screenshots to help explain present your vision of the feature label: Environment
description: Drag issues into the text input below description: Run the `copy system specs into clipboard` command palette action and paste the output in the field below.
validations: validations:
required: false required: true
- type: textarea - type: textarea
attributes: attributes:
label: If applicable, attach your `~/Library/Logs/Zed/Zed.log` file to this issue. label: If applicable, add mockups / screenshots to help explain present your vision of the feature
description: | description: Drag issues into the text input below
Drag Zed.log into the text input below. validations:
If you only need the most recent lines, you can run the `zed: open log` command palette action to see the last 1000. required: false
validations: - type: textarea
required: false attributes:
label: If applicable, attach your `~/Library/Logs/Zed/Zed.log` file to this issue.
description: |
Drag Zed.log into the text input below.
If you only need the most recent lines, you can run the `zed: open log` command palette action to see the last 1000.
value: |
<details><summary>Zed.log</summary><pre>
<!-- Click below this line and paste or drag-and-drop your log-->
<!-- Click above this line and paste or drag-and-drop your log--></pre></details>
validations:
required: false

View file

@ -1,33 +1,38 @@
name: Crash Report name: Crash Report
description: | description: |
Use this template for crash reports. Use this template for crash reports.
labels: ["admin read", "triage", "defect", "panic / crash"] labels: ["admin read", "triage", "defect", "panic / crash"]
body: body:
- type: checkboxes - type: checkboxes
attributes: attributes:
label: Check for existing issues label: Check for existing issues
description: Check the backlog of issues to reduce the chances of creating duplicates; if an issue already exists, place a `+1` (👍) on it. description: Check the backlog of issues to reduce the chances of creating duplicates; if an issue already exists, place a `+1` (👍) on it.
options: options:
- label: Completed - label: Completed
required: true
- type: textarea
attributes:
label: Describe the bug / provide steps to reproduce it
description: A clear and concise description of what the bug is.
validations:
required: true required: true
- type: textarea - type: textarea
id: environment attributes:
attributes: label: Describe the bug / provide steps to reproduce it
label: Environment description: A clear and concise description of what the bug is.
description: Run the `copy system specs into clipboard` command palette action and paste the output in the field below. validations:
validations: required: true
required: true - type: textarea
- type: textarea id: environment
attributes: attributes:
label: If applicable, attach your `~/Library/Logs/Zed/Zed.log` file to this issue. label: Environment
description: | description: Run the `copy system specs into clipboard` command palette action and paste the output in the field below.
Drag Zed.log into the text input below. validations:
If you only need the most recent lines, you can run the `zed: open log` command palette action to see the last 1000. required: true
validations: - type: textarea
required: false attributes:
label: If applicable, attach your `~/Library/Logs/Zed/Zed.log` file to this issue.
description: |
Drag Zed.log into the text input below.
If you only need the most recent lines, you can run the `zed: open log` command palette action to see the last 1000.
value: |
<details><summary>Zed.log</summary><pre>
<!-- Click below this line and paste or drag-and-drop your log-->
<!-- Click above this line and paste or drag-and-drop your log--></pre></details>
validations:
required: false