Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
with:
version: v2.11.4 # keep in step with the hook rev in .pre-commit-config.yaml
- run: go mod tidy -diff
- uses: j178/prek-action@4e14d07f9231acabce116ccfca13b13dd9755ece # v3.0.0
with:
extra-args: --all-files --hook-stage pre-push renovate-config-validator
Comment thread
emyller marked this conversation as resolved.

install-ps1:
name: install.ps1 lint
Expand Down
11 changes: 10 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ repos:
- id: golangci-lint-fmt
- id: golangci-lint-config-verify

- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 44.28.0
hooks:
# The lint workflow runs this too. It cannot run on pre-commit.ci, whose
# 250MiB tier limit this hook's 400MiB node environment does not fit.
- id: renovate-config-validator
args: [--no-global]
stages: [pre-push]
Comment thread
emyller marked this conversation as resolved.

- repo: local
hooks:
- id: go-mod-tidy
Expand All @@ -42,4 +51,4 @@ repos:
stages: [pre-push]

ci:
skip: [golangci-lint-full, golangci-lint-config-verify, go-mod-tidy, go-test]
skip: [golangci-lint-full, golangci-lint-config-verify, go-mod-tidy, go-test, renovate-config-validator]
21 changes: 21 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"security:only-security-updates",
":semanticCommitTypeAll(deps)"
],
"semanticCommitScope": "",
"postUpdateOptions": ["gomodUpdateImportPaths", "gomodTidy"],
"packageRules": [
{
"description": "Eagerly bump flagsmith-go-client on every version release",
"matchPackageNames": ["github.com/Flagsmith/flagsmith-go-client{,/**}"],
"enabled": true,
"rangeStrategy": "bump"
},
{
"matchManagers": ["gomod"],
"addLabels": ["dependencies"]
}
]
}