Skip to content

Commit 3e661d2

Browse files
authored
Refactoring after project move (#317)
1 parent 12edff1 commit 3e661d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+139
-115
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ updates:
44
- package-ecosystem: "gomod"
55
directory: "/"
66
schedule:
7-
interval: "daily"
7+
interval: "weekly"
88
open-pull-requests-limit: 10
99
reviewers:
10-
- "onmetal/onmetal-api-maintainers"
10+
- "ironcore-dev/core"
1111
- package-ecosystem: "github-actions"
1212
directory: "/"
1313
schedule:
14-
interval: "daily"
14+
interval: "weekly"
1515
open-pull-requests-limit: 10
1616
reviewers:
17-
- "onmetal/onmetal-api-maintainers"
17+
- "ironcore-dev/core"

.github/release-drafter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name-template: 'v$RESOLVED_VERSION 🌈'
1+
name-template: 'v$RESOLVED_VERSION'
22
tag-template: 'v$RESOLVED_VERSION'
33
categories:
44
- title: '🚀 Features'
@@ -48,4 +48,4 @@ autolabeler:
4848
- '/JIRA-[0-9]{1,4}/'
4949
template: |
5050
## Changes
51-
$CHANGES
51+
$CHANGES

.github/workflows/golangci-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-go@v4
1515
with:
16-
go-version: "1.20"
16+
go-version-file: 'go.mod'
1717
- name: golangci-lint
1818
uses: golangci/golangci-lint-action@v3
1919
with:
20-
version: v1.51.1
20+
version: v1.55.2

.github/workflows/size-label.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
name: Size Label
22

33
on:
4-
pull_request_target:
5-
types: [ assigned, opened, synchronize, reopened ]
4+
pull_request:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
69

710
jobs:
811
size-label:
12+
permissions:
13+
contents: read
14+
pull-requests: write
915
runs-on: ubuntu-latest
1016
steps:
1117
- name: size-label

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- uses: actions/setup-go@v4
2020
with:
21-
go-version: '1.20'
21+
go-version-file: 'go.mod'
2222
- run: make test check-license

.golangci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ linters:
1010
- goimports
1111
- importas
1212
- unused
13+
- ginkgolinter
1314

1415
severity:
1516
default-severity: error

CODEOWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# onmetal-api maintainers
2-
* @onmetal/onmetal-api-maintainers
1+
# ironcore-dev core maintainers
2+
* @ironcore-dev/core

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Please refer to the [Gardener on Metal code of conduct](https://onmetal.github.io/documentation/contribute/overview/#code-of-conduct).
1+
Please refer to the [IronCore code of conduct](https://ironcore-dev.github.io/documentation/contribute/overview/#code-of-conduct).

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Please refer to the [Gardener on Metal contributor guide](https://onmetal.github.io/documentation/contribute/overview/).
1+
Please refer to the [IronCore contributor guide](https://ironcore-dev.github.io/documentation/contribute/overview/).

Makefile

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ help: ## Display this help.
2626

2727
.PHONY: add-license
2828
add-license: addlicense ## Add license headers to all go files.
29-
find . -name '*.go' -exec $(ADDLICENSE) -c 'OnMetal authors' {} +
29+
find . -name '*.go' -exec $(ADDLICENSE) -c 'IronCore authors' {} +
3030

3131
.PHONY: fmt
3232
fmt: goimports ## Run goimports against code.
@@ -37,12 +37,12 @@ vet: ## Run go vet against code.
3737
go vet ./...
3838

3939
.PHONY: lint
40-
lint: ## Lints the code-base using golangci-lint.
41-
golangci-lint run ./...
40+
lint: golangci-lint ## Run golangci-lint on the code.
41+
$(GOLANGCILINT) run ./...
4242

4343
.PHONY: check-license
4444
check-license: addlicense ## Check that every file has a license header present.
45-
find . -name '*.go' -exec $(ADDLICENSE) -check -c 'OnMetal authors' {} +
45+
find . -name '*.go' -exec $(ADDLICENSE) -check -c 'IronCore authors' {} +
4646

4747
.PHONY: generate
4848
generate: mockgen ## Generate code (mocks etc.).
@@ -69,11 +69,13 @@ $(LOCALBIN):
6969
ADDLICENSE ?= $(LOCALBIN)/addlicense
7070
GOIMPORTS ?= $(LOCALBIN)/goimports
7171
MOCKGEN ?= $(LOCALBIN)/mockgen
72+
GOLANGCILINT ?= $(LOCALBIN)/golangci-lint
7273

7374
## Tool Versions
7475
ADDLICENSE_VERSION ?= v1.1.1
75-
GOIMPORTS_VERSION ?= v0.13.0
76+
GOIMPORTS_VERSION ?= v0.14.0
7677
MOCKGEN_VERSION ?= v0.3.0
78+
GOLANGCILINT_VERSION ?= v1.55.2
7779

7880
.PHONY: addlicense
7981
addlicense: $(ADDLICENSE) ## Download addlicense locally if necessary.
@@ -89,3 +91,8 @@ $(GOIMPORTS): $(LOCALBIN)
8991
mockgen: $(MOCKGEN) ## Download mockgen locally if necessary.
9092
$(MOCKGEN): $(LOCALBIN)
9193
test -s $(LOCALBIN)/mockgen || GOBIN=$(LOCALBIN) go install go.uber.org/mock/mockgen@$(MOCKGEN_VERSION)
94+
95+
.PHONY: goimports
96+
golangci-lint: $(GOLANGCILINT) ## Download golangci-lint locally if necessary.
97+
$(GOLANGCILINT): $(LOCALBIN)
98+
test -s $(LOCALBIN)/golangci-lint || GOBIN=$(LOCALBIN) go install github.com/golangci/golangci-lint/cmd/golangci-lint@$(GOLANGCILINT_VERSION)

0 commit comments

Comments
 (0)