diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml new file mode 100644 index 000000000..5733c9dff --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -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 , 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 , 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 diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 000000000..3ba13e0ce --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1 @@ +blank_issues_enabled: false diff --git a/.github/ISSUE_TEMPLATE/enhancement.yaml b/.github/ISSUE_TEMPLATE/enhancement.yaml new file mode 100644 index 000000000..adb21e7d4 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/enhancement.yaml @@ -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 diff --git a/.github/ISSUE_TEMPLATE/question.yaml b/.github/ISSUE_TEMPLATE/question.yaml new file mode 100644 index 000000000..662219b50 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.yaml @@ -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 + diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f1b219b47..9c2eddf6d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -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" diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 000000000..8f4e18df4 --- /dev/null +++ b/.github/release.yml @@ -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: + - "*" \ No newline at end of file diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml new file mode 100644 index 000000000..01a3fcade --- /dev/null +++ b/.github/workflows/pr-check.yaml @@ -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 \ No newline at end of file