Skip to content

Commit 02ff821

Browse files
authored
Remove dependabot and use labeler from common (#765)
1 parent 13474fa commit 02ff821

File tree

8 files changed

+17
-86
lines changed

8 files changed

+17
-86
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/labeler.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/dependabot-auto-merge.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/labeler.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,14 @@ jobs:
1212
pull-requests: write # for actions/labeler to add labels
1313
runs-on: ubuntu-24.04
1414
steps:
15+
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
16+
with:
17+
sparse-checkout: |
18+
labeler.yml
19+
sparse-checkout-cone-mode: false
20+
repository: nginxinc/k8s-common
1521
- uses: actions/labeler@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
1622
with:
1723
repo-token: "${{ secrets.GITHUB_TOKEN }}"
1824
sync-labels: true
25+
configuration-path: labeler.yml

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131

3232
- name: Lint Go
3333
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
34+
with:
35+
version: v1.60.1 # renovate: datasource=github-releases depName=golangci/golangci-lint
3436

3537
actionlint:
3638
name: Actionlint

.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ repos:
1616
- id: check-symlinks
1717
- id: check-case-conflict
1818
- id: check-vcs-permalinks
19+
- id: check-json
20+
- id: pretty-format-json
21+
args: [--autofix, --no-ensure-ascii]
1922
- id: mixed-line-ending
2023
args: [--fix=lf]
2124
- id: name-tests-test

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
.DEFAULT_GOAL := build-goreleaser
2+
# renovate: datasource=github-releases depName=golangci/golangci-lint
3+
GOLANGCI_LINT_VERSION = v1.60.1
24

35
.PHONY: test
46
test:
57
go test -v -shuffle=on -race ./...
68

79
.PHONY: lint
810
lint:
9-
docker run --pull always --rm -v $(shell pwd):/nginx-asg-sync -w /nginx-asg-sync -v $(shell go env GOCACHE):/cache/go -e GOCACHE=/cache/go -e GOLANGCI_LINT_CACHE=/cache/go -v $(shell go env GOPATH)/pkg:/go/pkg golangci/golangci-lint:latest golangci-lint --color always run
11+
docker run --pull always --rm -v $(shell pwd):/nginx-asg-sync -w /nginx-asg-sync -v $(shell go env GOCACHE):/cache/go -e GOCACHE=/cache/go -e GOLANGCI_LINT_CACHE=/cache/go -v $(shell go env GOPATH)/pkg:/go/pkg golangci/golangci-lint:$(GOLANGCI_LINT_VERSION) golangci-lint --color always run
1012

1113
nginx-asg-sync:
1214
@go version || (code=$$?; printf "\033[0;31mError\033[0m: unable to build locally, try using the parameter TARGET=container or TARGET=download\n"; exit $$code)

renovate.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
33
"extends": [
4-
"github>nginxinc/k8s-common"
4+
"github>nginxinc/k8s-common",
5+
"schedule:earlyMondays"
56
]
67
}

0 commit comments

Comments
 (0)