-
Notifications
You must be signed in to change notification settings - Fork 708
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add label configuration (#1540)
- Loading branch information
Showing
7 changed files
with
203 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: π Bug | ||
description: Something is not working as indended. | ||
labels: [ π bug ] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: Thanks for taking the time to fill out this bug report! | ||
|
||
- type: textarea | ||
attributes: | ||
label: Current Behavior | ||
description: A concise description of what you're experiencing. | ||
placeholder: | | ||
When I do <X>, <Y> happens and I see the error message attached below: | ||
```...``` | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Expected Behavior | ||
description: A concise description of what you expected to happen. | ||
placeholder: When I do <X>, <Z> should happen instead. | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Steps To Reproduce | ||
description: Steps to reproduce the behavior. | ||
placeholder: | | ||
1. In this environment... | ||
2. With this config... | ||
3. Run '...' | ||
4. See error... | ||
render: Markdown | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
attributes: | ||
label: Environment | ||
description: | | ||
examples: | ||
- **windows_exporter Version**: 0.26 | ||
- **Windows Server Version**: 2019 | ||
value: | | ||
- windows_exporter Version: | ||
- Windows Server Version: | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: windows_exporter logs | ||
description: | | ||
Log of windows_exporter. | ||
β οΈ Without proving logs, we unable to assist here. β οΈ | ||
render: shell | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
attributes: | ||
label: Anything else? | ||
description: | | ||
Links? References? Anything that will give us more context about the issue you are encountering! | ||
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in. | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
blank_issues_enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: β¨ Enhancement / Feature / Task | ||
description: Some feature is missing or incomplete. | ||
labels: [ β¨ enhancement ] | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Problem Statement | ||
description: Without specifying a solution, describe what the project is missing today. | ||
placeholder: | | ||
The rotating project logo has a fixed size and color. | ||
There is no way to make it larger and more shiny. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Proposed Solution | ||
description: Describe the proposed solution to the problem above. | ||
placeholder: | | ||
- Implement 2 new flags CLI: ```--logo-color=FFD700``` and ```--logo-size=100``` | ||
- Let these flags control the size of the rotating project logo. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Additional information | ||
placeholder: | | ||
We considered adjusting the logo size to the phase of the moon, but there was no | ||
reliable data source in air-gapped environments. | ||
validations: | ||
required: false | ||
- type: textarea | ||
attributes: | ||
label: Acceptance Criteria | ||
placeholder: | | ||
- [ ] As a user, I can control the size of the rotating logo using a CLI flag. | ||
- [ ] As a user, I can control the color of the rotating logo using a CLI flag. | ||
- [ ] Defaults are reasonably set. | ||
- [ ] New settings are appropriately documented. | ||
- [ ] No breaking change for current users of the rotating logo feature. | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: β Question | ||
description: Something is not clear. | ||
labels: [ β question ] | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Problem Statement | ||
description: Without specifying a solution, describe what the project is missing today. | ||
placeholder: | | ||
The rotating project logo has a fixed size and color. | ||
There is no way to make it larger and more shiny. | ||
validations: | ||
required: false | ||
|
||
- type: textarea | ||
attributes: | ||
label: Environment | ||
description: | | ||
examples: | ||
- **windows_exporter Version**: 0.26 | ||
- **Windows Server Version**: 2019 | ||
value: | | ||
- windows_exporter Version: | ||
- Windows Server Version: | ||
validations: | ||
required: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
labels: | ||
- "π οΈ dependencies" | ||
|
||
- package-ecosystem: "gomod" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
labels: | ||
- "π οΈ dependencies" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
changelog: | ||
exclude: | ||
labels: | ||
- chore | ||
categories: | ||
- title: π₯ Breaking Changes | ||
labels: | ||
- π₯ breaking-change | ||
- title: β¨ Exciting New Features | ||
labels: | ||
- β¨ enhancement | ||
- title: π Bug Fixes | ||
labels: | ||
- π bug | ||
- title: π οΈ Dependencies | ||
labels: | ||
- π οΈ dependencies | ||
- title: π Documentation | ||
labels: | ||
- π docs | ||
- title: Other Changes | ||
labels: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Validate Pull Request | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- labeled | ||
- unlabeled | ||
|
||
jobs: | ||
required-labels-missing: | ||
name: required labels missing | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: check | ||
if: >- | ||
!contains(github.event.pull_request.labels.*.name, 'π₯ breaking-change') | ||
&& !contains(github.event.pull_request.labels.*.name, 'β¨ enhancement') | ||
&& !contains(github.event.pull_request.labels.*.name, 'π bug') | ||
&& !contains(github.event.pull_request.labels.*.name, 'π docs') | ||
&& !contains(github.event.pull_request.labels.*.name, 'chore') | ||
&& !contains(github.event.pull_request.labels.*.name, 'π οΈ dependencies') | ||
run: >- | ||
echo One of the following labels is missing on this PR: | ||
breaking-change | ||
enhancement | ||
bug | ||
docs | ||
chore | ||
&& exit 1 |