From de3abc636e6dac37d2bf0f2052f583e2a9284077 Mon Sep 17 00:00:00 2001 From: "Marcus R. Brown" Date: Mon, 12 Aug 2024 04:08:26 -0700 Subject: [PATCH] chore: add labels; keep @bfra-me/renovate-action pinned to major --- .changeset/twenty-scissors-sleep.md | 6 ++++++ .github/renovate.json5 | 12 +++++++++++- .github/workflows/renovate.yaml | 2 +- common-settings.yaml | 20 ++++++++++++++++++++ 4 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 .changeset/twenty-scissors-sleep.md diff --git a/.changeset/twenty-scissors-sleep.md b/.changeset/twenty-scissors-sleep.md new file mode 100644 index 0000000..920a5c1 --- /dev/null +++ b/.changeset/twenty-scissors-sleep.md @@ -0,0 +1,6 @@ +--- +"@bfra.me/.github": patch +--- + +Add labels and keep @bfra-me/renovate-action pinned to major version + \ No newline at end of file diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 1af23d2..dab3e37 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -4,11 +4,21 @@ 'github>bfra-me/renovate-config#v3', 'github>bfra-me/renovate-config:internal.json5#v3', ], + packageRules: [ + { + description: 'Disable digest pinning for @bfra-me GitHub actions and reusable workflows.', + matchDepTypes: ['action'], + matchPackagePrefixes: ['@bfra.me/', 'bfra-me/'], + matchUpdateTypes: ['minor', 'patch', 'digest'], + pinDigests: false, + rangeStrategy: 'replace', + updatePinnedDependencies: false, + }, + ], postUpgradeTasks: { commands: [ 'npm install -g pnpm@9.7.0', 'pnpm install --frozen-lockfile --ignore-scripts', - 'git checkout -- .npmrc', 'pnpm run format', ], executionMode: 'branch', diff --git a/.github/workflows/renovate.yaml b/.github/workflows/renovate.yaml index a503809..84e4215 100644 --- a/.github/workflows/renovate.yaml +++ b/.github/workflows/renovate.yaml @@ -89,7 +89,7 @@ jobs: ${{ github.event.repository.name == '.github' && !contains('["issues", "pull_request"]', github.event_name) && github.ref == 'refs/heads/main' }} dry_run: ${{ github.event_name == 'push' && github.ref != 'refs/heads/main' }} if: github.event_name != 'push' || steps.filter.outputs.changes == 'true' - uses: bfra-me/renovate-action@v3.170.0 + uses: bfra-me/renovate-action@v3 with: autodiscover: ${{ env.autodiscover }} branch: ${{ env.dry_run == 'true' && github.ref_name || '' }} diff --git a/common-settings.yaml b/common-settings.yaml index c65ffc3..1beac98 100644 --- a/common-settings.yaml +++ b/common-settings.yaml @@ -134,6 +134,10 @@ repository: # Labels: define labels for Issues and Pull Requests labels: + - name: automerge + color: '#8f4fbc' + description: '' + - name: bug color: '#d73a4a' description: Something isn't working @@ -166,10 +170,26 @@ labels: color: '#e4e669' description: This doesn't seem right + - name: major + color: '#b60205' + description: '' + + - name: minor + color: '#2729A8' + description: '' + + - name: patch + color: '#27A89F' + description: '' + - name: question color: '#d876e3' description: Further information is requested + - name: renovate + color: '#dd42f5' + description: Universal dependency update tool + - name: security color: '#ff0000' description: Security vulnerability