Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 87716ec

Browse files
ocmbot[bot]hilmarf
andauthored
chore: add set milestone action (#178)
See [#401 - Automatically set milestone at issues when closed](open-component-model/ocm-project#401) for more information. --------- Co-authored-by: Hilmar Falkenberg <[email protected]> Co-authored-by: ocmbot[bot] <125909804+ocmbot[bot]@users.noreply.github.com>
1 parent e3db8ce commit 87716ec

40 files changed

+121
-371
lines changed

.github/workflows/codeql.yml

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

.github/workflows/milestone.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Set milestone
2+
on:
3+
issues:
4+
types:
5+
- closed
6+
pull_request:
7+
types:
8+
- closed
9+
jobs:
10+
set_milestone:
11+
name: Set milestone
12+
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write
15+
pull-requests: write
16+
steps:
17+
- name: Set milestone on issue
18+
if: github.event.issue.state_reason == 'completed'
19+
run: gh issue edit ${{ github.event.issue.number }} --milestone "$(date +"%Y-Q%q")" --repo ${{ github.repository }}
20+
env:
21+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
- name: Set milestone on pull request
23+
if: github.event.pull_request.merged == true
24+
run: gh pr edit ${{ github.event.pull_request.number }} --milestone "$(date +"%Y-Q%q")" --repo ${{ github.repository }}
25+
env:
26+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.reuse/dep5

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

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.21 as builder
2+
FROM golang:1.21 AS builder
33
ARG TARGETOS
44
ARG TARGETARCH
55

Makefile

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and Gardener contributors.
2-
#
3-
# SPDX-License-Identifier: Apache-2.0
4-
51
# Image URL to use all building/pushing image targets
62
IMG ?= controller:latest
73
# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
@@ -46,8 +42,8 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
4642
$(CONTROLLER_GEN) rbac:roleName=git-controller-manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
4743

4844
.PHONY: generate
49-
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
50-
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
45+
generate: controller-gen manifests ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
46+
$(CONTROLLER_GEN) object paths="./..."
5147

5248
.PHONY: fmt
5349
fmt: ## Run go fmt against code.
@@ -149,7 +145,7 @@ GEN_CRD_API_REFERENCE_DOCS ?= $(LOCALBIN)/gen-crd-api-reference-docs
149145

150146
## Tool Versions
151147
KUSTOMIZE_VERSION ?= v3.8.7
152-
CONTROLLER_TOOLS_VERSION ?= v0.9.2
148+
CONTROLLER_TOOLS_VERSION ?= v0.17.1
153149
GEN_API_REF_DOCS_VERSION ?= e327d0730470cbd61b06300f81c5fcf91c23c113
154150
GOLANGCI_LINT_VERSION ?= v1.55.2
155151

@@ -169,16 +165,6 @@ envtest: $(ENVTEST) ## Download envtest-setup locally if necessary.
169165
$(ENVTEST): $(LOCALBIN)
170166
test -s $(LOCALBIN)/setup-envtest || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
171167

172-
.PHONY: generate-license
173-
generate-license:
174-
for f in $(shell find . -name "*.go" -o -name "*.sh"); do \
175-
reuse addheader -r \
176-
--copyright="SAP SE or an SAP affiliate company and Open Component Model contributors." \
177-
--license="Apache-2.0" \
178-
$$f \
179-
--skip-unrecognised; \
180-
done
181-
182168
# Find or download gen-crd-api-reference-docs
183169
.PHONY: gen-crd-api-reference-docs
184170
gen-crd-api-reference-docs: $(GEN_CRD_API_REFERENCE_DOCS)

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ pullRequestTemplate:
5656

5757
The Repository object manages git repositories for supported providers. At the moment of this writing the following
5858
providers are supported:
59+
5960
- GitHub
6061
- Gitlab
6162
- Gitea
@@ -110,6 +111,6 @@ To get started simple run `tilt up` then hit `<space>` to enter Tilt's ui. You s
110111

111112
## Licensing
112113

113-
Copyright 2022 SAP SE or an SAP affiliate company and Open Component Model contributors.
114+
Copyright 2025 SAP SE or an SAP affiliate company and Open Component Model contributors.
114115
Please see our [LICENSE](LICENSE) for copyright and license information.
115116
Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/open-component-model/ocm-controller).

REUSE.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version = 1
2+
SPDX-PackageName = "git-controller"
3+
SPDX-PackageSupplier = "[email protected]"
4+
SPDX-PackageDownloadLocation = "https://github.com/open-component-model/git-controller"
5+
SPDX-PackageComment = "The code in this project may include calls to APIs (\"API Calls\") of\n SAP or third-party products or services developed outside of this project\n (\"External Products\").\n \"APIs\" means application programming interfaces, as well as their respective\n specifications and implementing code that allows software to communicate with\n other software.\n API Calls to External Products are not licensed under the open source license\n that governs this project. The use of such API Calls and related External\n Products are subject to applicable additional agreements with the relevant\n provider of the External Products. In no event shall the open source license\n that governs this project grant any rights in or to any External Products, or\n alter, expand or supersede any terms of the applicable additional agreements.\n If you have a valid license agreement with SAP for the use of a particular SAP\n External Product, then you may make use of any API Calls included in this\n project's code for that SAP External Product, subject to the terms of such\n license agreement. If you do not have a valid license agreement for the use of\n a particular SAP External Product, then you may only make use of any API Calls\n in this project for that SAP External Product for your internal, non-productive\n and non-commercial test and evaluation of such API Calls. Nothing herein grants\n you any rights to use or access any SAP External Product, or provide any third\n parties the right to use of access any SAP External Product, through API Calls."
6+
7+
[[annotations]]
8+
path = "**"
9+
precedence = "aggregate"
10+
SPDX-FileCopyrightText = "2025 SAP SE or an SAP affiliate company and Open Component Model contributors"
11+
SPDX-License-Identifier = "Apache-2.0"

apis/delivery/v1alpha1/condition_types.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and Open Component Model contributors.
2-
//
3-
// SPDX-License-Identifier: Apache-2.0
4-
51
package v1alpha1
62

73
const (

apis/delivery/v1alpha1/doc.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and Open Component Model contributors.
2-
//
3-
// SPDX-License-Identifier: Apache-2.0
4-
51
// Package v1alpha1 contains API Schema definitions for the delivery v1alpha1 API group
62
// +kubebuilder:object:generate=true
73
// +groupName=delivery.ocm.software

apis/delivery/v1alpha1/groupversion_info.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
// SPDX-FileCopyrightText: 2022 SAP SE or an SAP affiliate company and Open Component Model contributors.
2-
//
3-
// SPDX-License-Identifier: Apache-2.0
4-
51
// Package v1alpha1 contains API Schema definitions for the delivery v1alpha1 API group
62
// +kubebuilder:object:generate=true
73
// +groupName=delivery.ocm.software

0 commit comments

Comments
 (0)