mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-26 14:46:35 +00:00
chore: Add label configuration (#1540)
This commit is contained in:
71
.github/ISSUE_TEMPLATE/bug_report.yaml
vendored
Normal file
71
.github/ISSUE_TEMPLATE/bug_report.yaml
vendored
Normal file
@@ -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
|
||||||
1
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
1
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
blank_issues_enabled: false
|
||||||
41
.github/ISSUE_TEMPLATE/enhancement.yaml
vendored
Normal file
41
.github/ISSUE_TEMPLATE/enhancement.yaml
vendored
Normal file
@@ -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
|
||||||
27
.github/ISSUE_TEMPLATE/question.yaml
vendored
Normal file
27
.github/ISSUE_TEMPLATE/question.yaml
vendored
Normal file
@@ -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
|
||||||
|
|
||||||
9
.github/dependabot.yml
vendored
9
.github/dependabot.yml
vendored
@@ -1,6 +1,15 @@
|
|||||||
version: 2
|
version: 2
|
||||||
updates:
|
updates:
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
labels:
|
||||||
|
- "🛠️ dependencies"
|
||||||
|
|
||||||
- package-ecosystem: "gomod"
|
- package-ecosystem: "gomod"
|
||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "weekly"
|
interval: "weekly"
|
||||||
|
labels:
|
||||||
|
- "🛠️ dependencies"
|
||||||
|
|||||||
23
.github/release.yml
vendored
Normal file
23
.github/release.yml
vendored
Normal file
@@ -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:
|
||||||
|
- "*"
|
||||||
31
.github/workflows/pr-check.yaml
vendored
Normal file
31
.github/workflows/pr-check.yaml
vendored
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user