From 126506ad56f5ae1dcc8b3c44a2b3c7c7829f2964 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 8 May 2025 08:20:31 +0200 Subject: [PATCH 01/15] chore: add templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto KrΓΆpke --- .github/ISSUE_TEMPLATE/bug_report.yaml | 105 ++++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 1 + .github/ISSUE_TEMPLATE/enhancement.yaml | 52 ++++++++++++ .github/ISSUE_TEMPLATE/question.yaml | 55 +++++++++++++ .github/workflows/pr-check.yaml | 31 +++++++ 5 files changed, 244 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yaml create mode 100644 .github/ISSUE_TEMPLATE/config.yml create mode 100644 .github/ISSUE_TEMPLATE/enhancement.yaml create mode 100644 .github/ISSUE_TEMPLATE/question.yaml create mode 100644 .github/workflows/pr-check.yaml diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml new file mode 100644 index 0000000..3b5c7ce --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -0,0 +1,105 @@ +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! + + Before you submit this issue, please make sure you have read the documentation and searched for similar issues. + If you have done that, please fill out the template below. + + - 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: markdown + attributes: + value: Please not that openvpn-auth-oauth2 requires an OpenVPN server version 2.6.2 or higher. + + - type: textarea + attributes: + label: Environment + description: | + examples: + - **openvpn-auth-oauth2 Version**: 1.5.1 + - **OpenVPN Server Version**: 2.6.2 + - **Server OS**: Linux + - **OpenVPN Client (flavor, OS)**: Tunnelblick 4.0.0beta10 / MacOS + - **OIDC Provider**: Entra ID + value: | + - openvpn-auth-oauth2 Version: + - OpenVPN Server Version: + - Server OS: + - OpenVPN Client (flavor, OS): + - OIDC Provider: + validations: + required: true + + - type: textarea + attributes: + label: openvpn-auth-oauth2 logs + description: | + Log of openvpn-auth-oauth2. Output of `journalctl -flu openvpn-auth-oauth2` and `dmesg | grep openvpn`, if openvpn-auth-oauth2 is installed as linux package. + ⚠️ Without proving logs, I unable to assist here. ⚠️ + render: shell + validations: + required: true + + - type: textarea + attributes: + label: openvpn server logs + description: | + Log of openvpn server + render: shell + validations: + required: false + + - 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 + + - type: checkboxes + id: documentation + attributes: + label: Preflight Checklist + options: + - required: true + #language=markdown + label: | + I could not find a solution in the [documentation](https://github.com/jkroepke/openvpn-auth-oauth2/wiki), + the [FAQ](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/FAQ), the existing issues or discussions. diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..3ba13e0 --- /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 0000000..c3aff26 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/enhancement.yaml @@ -0,0 +1,52 @@ +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 + + - type: checkboxes + id: documentation + attributes: + label: Preflight Checklist + options: + - required: true + #language=markdown + label: | + I could not find a solution in the [documentation](https://github.com/jkroepke/openvpn-auth-oauth2/wiki), + the [FAQ](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/FAQ), the existing issues or discussions. diff --git a/.github/ISSUE_TEMPLATE/question.yaml b/.github/ISSUE_TEMPLATE/question.yaml new file mode 100644 index 0000000..1368c03 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/question.yaml @@ -0,0 +1,55 @@ +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: openvpn-auth-oauth2 logs + description: | + Log of openvpn-auth-oauth2. Output of `journalctl -flu openvpn-auth-oauth2` and `dmesg | grep openvpn`, if openvpn-auth-oauth2 is installed as linux package. + ⚠️ Without proving logs, I unable to assist in case of issues. ⚠️ + render: shell + validations: + required: true + + - type: markdown + attributes: + value: Please not that openvpn-auth-oauth2 requires an OpenVPN server version 2.6.2 or higher. + + - type: textarea + attributes: + label: Environment + description: | + examples: + - **openvpn-auth-oauth2 Version**: 1.5.1 + - **OpenVPN Server Version**: 2.6.2 + - **Server OS**: Linux + - **OpenVPN Client (flavor, OS)**: Tunnelblick 4.0.0beta10 / MacOD + value: | + - openvpn-auth-oauth2 Version: + - OpenVPN Server Version: + - Server OS: + - OpenVPN Client (flavor, OS): + validations: + required: false + + - type: checkboxes + id: documentation + attributes: + label: Preflight Checklist + options: + - required: true + #language=markdown + label: | + I could not find a solution in the [documentation](https://github.com/jkroepke/openvpn-auth-oauth2/wiki), + the [FAQ](https://github.com/jkroepke/openvpn-auth-oauth2/wiki/FAQ), the existing issues or discussions. diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml new file mode 100644 index 0000000..c66d83d --- /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 From 0a0ccdeb0a9baf1d46ad52041637ff0c7625137a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 8 May 2025 08:21:29 +0200 Subject: [PATCH 02/15] chore: add templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto KrΓΆpke --- .github/ISSUE_TEMPLATE/bug_report.yaml | 6 ++++-- .github/ISSUE_TEMPLATE/enhancement.yaml | 6 ++++-- .github/ISSUE_TEMPLATE/question.yaml | 10 +++++++--- .github/workflows/pr-check.yaml | 20 ++++++++------------ action.yml | 2 +- badges/coverage.svg | 2 +- 6 files changed, 25 insertions(+), 21 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yaml b/.github/ISSUE_TEMPLATE/bug_report.yaml index 3b5c7ce..67a955b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/bug_report.yaml @@ -1,6 +1,6 @@ name: 🐞 Bug description: Something is not working as indended. -labels: [ 🐞 bug ] +labels: [🐞 bug] body: - type: markdown attributes: @@ -43,7 +43,9 @@ body: - type: markdown attributes: - value: Please not that openvpn-auth-oauth2 requires an OpenVPN server version 2.6.2 or higher. + value: + Please not that openvpn-auth-oauth2 requires an OpenVPN server version + 2.6.2 or higher. - type: textarea attributes: diff --git a/.github/ISSUE_TEMPLATE/enhancement.yaml b/.github/ISSUE_TEMPLATE/enhancement.yaml index c3aff26..570fc88 100644 --- a/.github/ISSUE_TEMPLATE/enhancement.yaml +++ b/.github/ISSUE_TEMPLATE/enhancement.yaml @@ -1,11 +1,13 @@ name: ✨ Enhancement / Feature / Task description: Some feature is missing or incomplete. -labels: [ ✨ enhancement ] +labels: [✨ enhancement] body: - type: textarea attributes: label: Problem Statement - description: Without specifying a solution, describe what the project is missing today. + 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. diff --git a/.github/ISSUE_TEMPLATE/question.yaml b/.github/ISSUE_TEMPLATE/question.yaml index 1368c03..bb428c4 100644 --- a/.github/ISSUE_TEMPLATE/question.yaml +++ b/.github/ISSUE_TEMPLATE/question.yaml @@ -1,11 +1,13 @@ name: ❓ Question description: Something is not clear. -labels: [ ❓ question ] +labels: [❓ question] body: - type: textarea attributes: label: Problem Statement - description: Without specifying a solution, describe what the project is missing today. + 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. @@ -24,7 +26,9 @@ body: - type: markdown attributes: - value: Please not that openvpn-auth-oauth2 requires an OpenVPN server version 2.6.2 or higher. + value: + Please not that openvpn-auth-oauth2 requires an OpenVPN server version + 2.6.2 or higher. - type: textarea attributes: diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml index c66d83d..d7613bb 100644 --- a/.github/workflows/pr-check.yaml +++ b/.github/workflows/pr-check.yaml @@ -15,17 +15,13 @@ jobs: 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') + !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 + breaking-change enhancement bug docs chore && exit 1 diff --git a/action.yml b/action.yml index 41afecc..ecef0e9 100644 --- a/action.yml +++ b/action.yml @@ -2,7 +2,7 @@ name: 'stackit-cli tools installer' description: |- Install a specific version of the stackit-cli binary. Acceptable values are latest or any semantic version string like 0.31.0. - + https://github.com/stackitcloud/stackit-cli inputs: version: diff --git a/badges/coverage.svg b/badges/coverage.svg index 22b6d51..f6403f3 100644 --- a/badges/coverage.svg +++ b/badges/coverage.svg @@ -1 +1 @@ -Coverage: 52.54%Coverage52.54% \ No newline at end of file +Coverage: 25.42%Coverage25.42% \ No newline at end of file From e7664d13c98c3be94ac3703e7f1f4bb2c20be168 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 8 May 2025 08:24:08 +0200 Subject: [PATCH 03/15] chore: add templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto KrΓΆpke --- .editorconfig | 10 ++++++++++ .prettierignore | 1 + release.config.mjs => .releaserc | 5 +---- tsconfig.eslint.json | 3 +-- 4 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 .editorconfig create mode 100644 .prettierignore rename release.config.mjs => .releaserc (82%) diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..4e1b5d3 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +root = true + +[*] +charset = utf-8 +indent_style = space +indent_size = 4 +insert_final_newline = true +trim_trailing_whitespace = true +end_of_line = lf +max_line_length = 160 diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..de3291b --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +.github/actions/ diff --git a/release.config.mjs b/.releaserc similarity index 82% rename from release.config.mjs rename to .releaserc index 3463573..16c4114 100644 --- a/release.config.mjs +++ b/.releaserc @@ -1,7 +1,4 @@ -/** - * @type {import('semantic-release').GlobalConfig} - */ -export default { +{ branches: ['main'], plugins: [ [ diff --git a/tsconfig.eslint.json b/tsconfig.eslint.json index 3643406..7a00c40 100644 --- a/tsconfig.eslint.json +++ b/tsconfig.eslint.json @@ -12,7 +12,6 @@ "src", "eslint.config.mjs", "jest.config.js", - "rollup.config.ts", - "release.config.mjs" + "rollup.config.ts" ] } From 193cc1e24747ce5e41e51d3c8c32ba2636b7aac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 8 May 2025 08:33:35 +0200 Subject: [PATCH 04/15] chore: add templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto KrΓΆpke --- .editorconfig | 3 ++ .github/labeler.yml | 10 ++++++ .github/workflows/pr-check.yaml | 27 ---------------- .github/workflows/pr.yaml | 55 +++++++++++++++++++++++++++++++++ 4 files changed, 68 insertions(+), 27 deletions(-) create mode 100644 .github/labeler.yml delete mode 100644 .github/workflows/pr-check.yaml create mode 100644 .github/workflows/pr.yaml diff --git a/.editorconfig b/.editorconfig index 4e1b5d3..99db888 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,3 +8,6 @@ insert_final_newline = true trim_trailing_whitespace = true end_of_line = lf max_line_length = 160 + +[*.{yaml,yml}] +indent_size = 2 \ No newline at end of file diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..8fb81ff --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,10 @@ +version: 1 +labels: + - label: "chore" + title: "^chore:.*" + - label: "🐞 bug" + title: "^fix:.*" + - label: "✨ enhancement" + title: "^feat:.*" + - label: "πŸ“– docs" + title: "^docs:.*" diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml deleted file mode 100644 index d7613bb..0000000 --- a/.github/workflows/pr-check.yaml +++ /dev/null @@ -1,27 +0,0 @@ -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 diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml new file mode 100644 index 0000000..2b0c830 --- /dev/null +++ b/.github/workflows/pr.yaml @@ -0,0 +1,55 @@ +name: Pull Request +on: + pull_request: + types: + - opened + - reopened + - synchronize + - labeled + - unlabeled + +jobs: + add-labels: + runs-on: ubuntu-latest + 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') + steps: + - uses: srvaroa/labeler@master + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + validate-labels: + name: check 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 + validate-title: + name: check title prefix + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - name: check + run: | + PR_TITLE_PREFIX=$(echo "$PR_TITLE" | cut -d':' -f1) + if [[ "$PR_TITLE_PREFIX" == "fix"* ]] || [[ "$PR_TITLE_PREFIX" == "feat"* ]] || [[ "$PR_TITLE_PREFIX" == "chore"* ]]; then + exit 0 + fi + + echo "PR title must start with feat, fix or chore" + exit 1 + env: + PR_TITLE: ${{ github.event.pull_request.title }} From 4dbff82e5e295416888aa325f02ceda0346ee12f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 8 May 2025 08:37:50 +0200 Subject: [PATCH 05/15] chore: add templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto KrΓΆpke --- .github/labeler.yml | 23 ++++++++++++++--------- .github/workflows/pr.yaml | 15 ++++++++------- .prettierignore | 2 +- 3 files changed, 23 insertions(+), 17 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 8fb81ff..8cff776 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,10 +1,15 @@ -version: 1 +version: "1" +appendOnly: true labels: - - label: "chore" - title: "^chore:.*" - - label: "🐞 bug" - title: "^fix:.*" - - label: "✨ enhancement" - title: "^feat:.*" - - label: "πŸ“– docs" - title: "^docs:.*" + - label: 'chore' + type: "pull_request" + title: '^chore:.*' + - label: '🐞 bug' + type: "pull_request" + title: '^fix:.*' + - label: '✨ enhancement' + type: "pull_request" + title: '^feat:.*' + - label: 'πŸ“– docs' + type: "pull_request" + title: '^docs:.*' diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 2b0c830..8469e9b 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -12,25 +12,26 @@ jobs: add-labels: runs-on: ubuntu-latest 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, 'πŸ’₯ 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') steps: - - uses: srvaroa/labeler@master + - uses: srvaroa/labeler@v1 env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' validate-labels: name: check 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, 'πŸ’₯ + 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') diff --git a/.prettierignore b/.prettierignore index de3291b..3cc9203 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1 @@ -.github/actions/ +.github/actions/* From 05c8f6e0b4b35f0fcea5ca9fd185e40661519fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 8 May 2025 08:39:01 +0200 Subject: [PATCH 06/15] chore: add templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto KrΓΆpke --- .github/workflows/pr.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 8469e9b..7fc4603 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -11,15 +11,15 @@ on: jobs: add-labels: runs-on: ubuntu-latest - 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') steps: - uses: srvaroa/labeler@v1 + 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') env: GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' validate-labels: From 58c20e5a3ddf64b1e1b9d29c859ee657d1dd81cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 8 May 2025 08:39:41 +0200 Subject: [PATCH 07/15] chore: add templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto KrΓΆpke --- .github/labeler.yml | 10 +++++----- .prettierignore | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 8cff776..7bcd5d4 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,15 +1,15 @@ -version: "1" +version: '1' appendOnly: true labels: - label: 'chore' - type: "pull_request" + type: 'pull_request' title: '^chore:.*' - label: '🐞 bug' - type: "pull_request" + type: 'pull_request' title: '^fix:.*' - label: '✨ enhancement' - type: "pull_request" + type: 'pull_request' title: '^feat:.*' - label: 'πŸ“– docs' - type: "pull_request" + type: 'pull_request' title: '^docs:.*' diff --git a/.prettierignore b/.prettierignore index 3cc9203..d36e950 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1 +1 @@ -.github/actions/* +.github/**/*.yaml From 2cd31ec8fef1dab4094515b34b8a35e80c859913 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 8 May 2025 08:40:19 +0200 Subject: [PATCH 08/15] chore: add templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto KrΓΆpke --- .github/workflows/pr.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 7fc4603..9fca17a 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -8,9 +8,13 @@ on: - labeled - unlabeled +permissions: {} + jobs: add-labels: runs-on: ubuntu-latest + permissions: + pull-requests: write steps: - uses: srvaroa/labeler@v1 if: >- From 8c9b09bae20882bc7442b19008d55310dac9bfba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 8 May 2025 08:41:32 +0200 Subject: [PATCH 09/15] chore: add templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto KrΓΆpke --- .github/labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/labeler.yml b/.github/labeler.yml index 7bcd5d4..ad16672 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -1,4 +1,4 @@ -version: '1' +version: 1 appendOnly: true labels: - label: 'chore' From 4687e120a523fcfe0ecf9fc7b3818d41181e7b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 8 May 2025 08:45:17 +0200 Subject: [PATCH 10/15] chore: add templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto KrΓΆpke --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9e5d16..80e7f71 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,13 +68,10 @@ jobs: VALIDATE_ALL_CODEBASE: true VALIDATE_BASH: true VALIDATE_BASH_EXEC: true - VALIDATE_EDITORCONFIG: true VALIDATE_ENV: true VALIDATE_GITHUB_ACTIONS: true VALIDATE_HTML: true - # VALIDATE_JSON: true VALIDATE_NATURAL_LANGUAGE: true - # VALIDATE_RENOVATE: true VALIDATE_SHELL_SHFMT: true VALIDATE_XML: true VALIDATE_YAML: true From d9fa6a44b8b4e42c2bdac0f80609d7ed20ccf3f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 8 May 2025 08:45:54 +0200 Subject: [PATCH 11/15] chore: add templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto KrΓΆpke --- .github/workflows/pr.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 9fca17a..921a82d 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -16,6 +16,11 @@ jobs: permissions: pull-requests: write steps: + - uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 + id: app-token + with: + app-id: 1248576 + private-key: ${{ secrets.APP_RENOVATE_HELPER_PRIVATE_KEY }} - uses: srvaroa/labeler@v1 if: >- !contains(github.event.pull_request.labels.*.name, 'πŸ’₯ breaking-change') @@ -25,7 +30,7 @@ jobs: !contains(github.event.pull_request.labels.*.name, 'chore') && !contains(github.event.pull_request.labels.*.name, 'πŸ› οΈ dependencies') env: - GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} validate-labels: name: check labels missing runs-on: ubuntu-latest From 3a8ed24f9bfe1199218508beae97fb78c3b9937a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 8 May 2025 08:46:13 +0200 Subject: [PATCH 12/15] chore: add templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto KrΓΆpke --- .github/workflows/pr.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 921a82d..b6e0cfb 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -23,8 +23,8 @@ jobs: private-key: ${{ secrets.APP_RENOVATE_HELPER_PRIVATE_KEY }} - uses: srvaroa/labeler@v1 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, 'πŸ’₯ 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') && @@ -37,10 +37,9 @@ jobs: 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, 'πŸ’₯ 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') From e39ea9346c3d293c30106a980f0396d1df187594 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 8 May 2025 08:47:24 +0200 Subject: [PATCH 13/15] chore: add templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto KrΓΆpke --- .github/workflows/pr.yaml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index b6e0cfb..17995d8 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -13,8 +13,13 @@ permissions: {} jobs: add-labels: runs-on: ubuntu-latest - permissions: - pull-requests: write + 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') steps: - uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6 id: app-token @@ -22,13 +27,6 @@ jobs: app-id: 1248576 private-key: ${{ secrets.APP_RENOVATE_HELPER_PRIVATE_KEY }} - uses: srvaroa/labeler@v1 - 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') env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} validate-labels: From 918bc64e3008e29d548e15d4f63e0f7d6fc49f74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 8 May 2025 08:48:46 +0200 Subject: [PATCH 14/15] chore: add templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto KrΓΆpke --- .releaserc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.releaserc b/.releaserc index 16c4114..e2f8e22 100644 --- a/.releaserc +++ b/.releaserc @@ -5,7 +5,7 @@ '@semantic-release/commit-analyzer', { preset: 'angular', - releaseRules: [{ type: 'chore', scope: 'deps', release: 'patch' }] + releaseRules: [{ type: 'chore', scope: 'deps', release: 'patch' },{ type: 'chore', scope: 'fix', release: 'patch' }] } ], [ From 1464f8e158207dc5996f5d65cafba4ca796da15c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Otto=20Kr=C3=B6pke?= Date: Thu, 8 May 2025 08:50:40 +0200 Subject: [PATCH 15/15] chore: add templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan-Otto KrΓΆpke --- .github/PULL_REQUEST_TEMPLATE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index b1421a9..34065cb 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -20,5 +20,6 @@ Complete these before marking the PR as `ready to review`: - [ ] [DCO](https://github.com/prometheus-community/helm-charts/blob/main/CONTRIBUTING.md#sign-off-your-work) signed - [ ] The PR title has a summary of the changes +- [ ] The PR title begins with `feat:`, `fix:` or `chore:` - [ ] The PR body has a summary to reflect any significant (and particularly user-facing) changes introduced by this PR