From 3156cd687c2a6cbd25ba0b0461d3169a108048e3 Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Mon, 23 Mar 2026 11:54:07 +0100 Subject: [PATCH] Fix license headers (#6205) --- .cspell.json | 1 + .woodpecker/test.yaml | 2 +- Makefile | 2 +- cli/admin/org/org_list.go | 14 ++++++++++++++ cli/common/hooks.go | 14 ++++++++++++++ cli/internal/config/config.go | 14 ++++++++++++++ cli/internal/config/config_test.go | 14 ++++++++++++++ cli/lint/utils.go | 14 ++++++++++++++ cli/pipeline/list_test.go | 14 ++++++++++++++ cli/pipeline/pipeline_test.go | 14 ++++++++++++++ cli/pipeline/purge_test.go | 14 ++++++++++++++ cli/repo/repo_show_test.go | 14 ++++++++++++++ cli/repo/repo_test.go | 14 ++++++++++++++ cli/setup/setup.go | 14 ++++++++++++++ cli/setup/token_fetcher.go | 14 ++++++++++++++ cli/setup/ui/ask.go | 14 ++++++++++++++ cli/setup/ui/confirm.go | 14 ++++++++++++++ cli/update/command.go | 14 ++++++++++++++ cli/update/tar.go | 14 ++++++++++++++ cli/update/types.go | 14 ++++++++++++++ cli/update/updater.go | 14 ++++++++++++++ cli/update/updater_test.go | 14 ++++++++++++++ cmd/server/openapi_test.go | 14 ++++++++++++++ pipeline/backend/docker/backend_options.go | 14 ++++++++++++++ pipeline/backend/docker/backend_options_test.go | 14 ++++++++++++++ pipeline/backend/kubernetes/backend_options.go | 14 ++++++++++++++ .../backend/kubernetes/backend_options_test.go | 14 ++++++++++++++ pipeline/backend/kubernetes/namespace.go | 14 ++++++++++++++ pipeline/backend/kubernetes/namespace_test.go | 14 ++++++++++++++ server/api/helper_test.go | 14 ++++++++++++++ server/api/hook_test.go | 14 ++++++++++++++ server/api/login_test.go | 14 ++++++++++++++ server/forge/bitbucketdatacenter/fixtures/hooks.go | 14 ++++++++++++++ server/forge/bitbucketdatacenter/parse.go | 14 ++++++++++++++ server/forge/bitbucketdatacenter/parse_test.go | 14 ++++++++++++++ server/forge/common/event_normalize.go | 14 ++++++++++++++ server/forge/setup/setup.go | 14 ++++++++++++++ server/model/commit.go | 14 ++++++++++++++ server/model/queue.go | 14 ++++++++++++++ server/pipeline/gated_test.go | 14 ++++++++++++++ server/pipeline/items_test.go | 14 ++++++++++++++ server/services/log/file/file.go | 14 ++++++++++++++ server/services/log/service.go | 14 ++++++++++++++ server/services/permissions/admins.go | 14 ++++++++++++++ server/services/permissions/admins_test.go | 14 ++++++++++++++ server/services/permissions/orgs.go | 14 ++++++++++++++ server/services/permissions/orgs_test.go | 14 ++++++++++++++ server/services/permissions/repo_owners.go | 14 ++++++++++++++ server/services/permissions/repo_owners_test.go | 14 ++++++++++++++ .../migration/000_legacy_to_xormigrate.go | 14 ++++++++++++++ shared/token/token_test.go | 14 ++++++++++++++ woodpecker-go/woodpecker/agent.go | 14 ++++++++++++++ woodpecker-go/woodpecker/agent_test.go | 14 ++++++++++++++ woodpecker-go/woodpecker/global_registry.go | 14 ++++++++++++++ woodpecker-go/woodpecker/global_secret.go | 14 ++++++++++++++ woodpecker-go/woodpecker/list_options.go | 14 ++++++++++++++ woodpecker-go/woodpecker/list_options_test.go | 14 ++++++++++++++ woodpecker-go/woodpecker/org.go | 14 ++++++++++++++ woodpecker-go/woodpecker/pipeline.go | 14 ++++++++++++++ woodpecker-go/woodpecker/queue.go | 14 ++++++++++++++ woodpecker-go/woodpecker/queue_test.go | 14 ++++++++++++++ woodpecker-go/woodpecker/repo.go | 14 ++++++++++++++ woodpecker-go/woodpecker/repo_test.go | 14 ++++++++++++++ woodpecker-go/woodpecker/user.go | 14 ++++++++++++++ woodpecker-go/woodpecker/user_test.go | 14 ++++++++++++++ 65 files changed, 871 insertions(+), 2 deletions(-) diff --git a/.cspell.json b/.cspell.json index b456288ab6..2a59bf2957 100644 --- a/.cspell.json +++ b/.cspell.json @@ -183,6 +183,7 @@ "sess", "sfnt", "shellescape", + "shopt", "sigstore", "Sonatype", "SSHURL", diff --git a/.woodpecker/test.yaml b/.woodpecker/test.yaml index 4f5cf869cd..dd3ca3e6b7 100644 --- a/.woodpecker/test.yaml +++ b/.woodpecker/test.yaml @@ -75,7 +75,7 @@ steps: image: *golang_image commands: - make install-addlicense # cspell:words addlicense - - 'addlicense -check -ignore "vendor/**" **/*.go' + - bash -c 'shopt -s globstar; addlicense -check -ignore "vendor/**" -ignore cmd/server/openapi/docs.go **/*.go' when: *when test: diff --git a/Makefile b/Makefile index 570e9c1195..6e5a99e671 100644 --- a/Makefile +++ b/Makefile @@ -127,7 +127,7 @@ generate-openapi: ## Run openapi code generation and format it CGO_ENABLED=0 go generate cmd/server/openapi.go generate-license-header: install-addlicense - addlicense -c "Woodpecker Authors" -ignore "vendor/**" **/*.go + addlicense -c "Woodpecker Authors" -l apache -ignore "vendor/**" -ignore cmd/server/openapi/docs.go **/*.go check-xgo: ## Check if xgo is installed @hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \ diff --git a/cli/admin/org/org_list.go b/cli/admin/org/org_list.go index e5f50068ef..b67e6120cf 100644 --- a/cli/admin/org/org_list.go +++ b/cli/admin/org/org_list.go @@ -1,3 +1,17 @@ +// Copyright 2025 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package org import ( diff --git a/cli/common/hooks.go b/cli/common/hooks.go index fb7a4b4c7b..4b2a22136f 100644 --- a/cli/common/hooks.go +++ b/cli/common/hooks.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package common import ( diff --git a/cli/internal/config/config.go b/cli/internal/config/config.go index c4abfa9dc2..735035bc15 100644 --- a/cli/internal/config/config.go +++ b/cli/internal/config/config.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/cli/internal/config/config_test.go b/cli/internal/config/config_test.go index 110805dcc0..697471937d 100644 --- a/cli/internal/config/config_test.go +++ b/cli/internal/config/config_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package config import ( diff --git a/cli/lint/utils.go b/cli/lint/utils.go index bfa29c6c01..211d0f78fa 100644 --- a/cli/lint/utils.go +++ b/cli/lint/utils.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package lint import ( diff --git a/cli/pipeline/list_test.go b/cli/pipeline/list_test.go index bca49637e6..ed8d726b1e 100644 --- a/cli/pipeline/list_test.go +++ b/cli/pipeline/list_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package pipeline import ( diff --git a/cli/pipeline/pipeline_test.go b/cli/pipeline/pipeline_test.go index 0abe5a78cf..e6541d9b7d 100644 --- a/cli/pipeline/pipeline_test.go +++ b/cli/pipeline/pipeline_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package pipeline import ( diff --git a/cli/pipeline/purge_test.go b/cli/pipeline/purge_test.go index 72a1e91a70..0b15ab84b5 100644 --- a/cli/pipeline/purge_test.go +++ b/cli/pipeline/purge_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package pipeline import ( diff --git a/cli/repo/repo_show_test.go b/cli/repo/repo_show_test.go index ec7ad65d1b..6a94e0676c 100644 --- a/cli/repo/repo_show_test.go +++ b/cli/repo/repo_show_test.go @@ -1,3 +1,17 @@ +// Copyright 2025 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package repo import ( diff --git a/cli/repo/repo_test.go b/cli/repo/repo_test.go index b27b065120..44f5ead766 100644 --- a/cli/repo/repo_test.go +++ b/cli/repo/repo_test.go @@ -1,3 +1,17 @@ +// Copyright 2025 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package repo import ( diff --git a/cli/setup/setup.go b/cli/setup/setup.go index e26cb1ab1a..6f8a10f44a 100644 --- a/cli/setup/setup.go +++ b/cli/setup/setup.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package setup import ( diff --git a/cli/setup/token_fetcher.go b/cli/setup/token_fetcher.go index 05305e7ca9..17f05ba3ac 100644 --- a/cli/setup/token_fetcher.go +++ b/cli/setup/token_fetcher.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package setup import ( diff --git a/cli/setup/ui/ask.go b/cli/setup/ui/ask.go index eea4b2b00a..a7a0bae809 100644 --- a/cli/setup/ui/ask.go +++ b/cli/setup/ui/ask.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package ui import ( diff --git a/cli/setup/ui/confirm.go b/cli/setup/ui/confirm.go index 1a7dfa4943..29465db237 100644 --- a/cli/setup/ui/confirm.go +++ b/cli/setup/ui/confirm.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package ui import ( diff --git a/cli/update/command.go b/cli/update/command.go index a4dad8530e..6c576915e2 100644 --- a/cli/update/command.go +++ b/cli/update/command.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package update import ( diff --git a/cli/update/tar.go b/cli/update/tar.go index acf1b03e80..7e46aa64cc 100644 --- a/cli/update/tar.go +++ b/cli/update/tar.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package update import ( diff --git a/cli/update/types.go b/cli/update/types.go index 7f2bf6b775..13f7bfd497 100644 --- a/cli/update/types.go +++ b/cli/update/types.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package update type VersionData struct { diff --git a/cli/update/updater.go b/cli/update/updater.go index 2810989ee9..0bcffa0802 100644 --- a/cli/update/updater.go +++ b/cli/update/updater.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package update import ( diff --git a/cli/update/updater_test.go b/cli/update/updater_test.go index bb082a7996..7a962e061f 100644 --- a/cli/update/updater_test.go +++ b/cli/update/updater_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package update import ( diff --git a/cmd/server/openapi_test.go b/cmd/server/openapi_test.go index 448aa1fad1..a1c8d23629 100644 --- a/cmd/server/openapi_test.go +++ b/cmd/server/openapi_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/pipeline/backend/docker/backend_options.go b/pipeline/backend/docker/backend_options.go index b7b2a10e12..e03b58100f 100644 --- a/pipeline/backend/docker/backend_options.go +++ b/pipeline/backend/docker/backend_options.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package docker import ( diff --git a/pipeline/backend/docker/backend_options_test.go b/pipeline/backend/docker/backend_options_test.go index 50fb7f73ea..456760f403 100644 --- a/pipeline/backend/docker/backend_options_test.go +++ b/pipeline/backend/docker/backend_options_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package docker import ( diff --git a/pipeline/backend/kubernetes/backend_options.go b/pipeline/backend/kubernetes/backend_options.go index 64fd49f141..d664b599bb 100644 --- a/pipeline/backend/kubernetes/backend_options.go +++ b/pipeline/backend/kubernetes/backend_options.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kubernetes import ( diff --git a/pipeline/backend/kubernetes/backend_options_test.go b/pipeline/backend/kubernetes/backend_options_test.go index 14526a8f85..38db360190 100644 --- a/pipeline/backend/kubernetes/backend_options_test.go +++ b/pipeline/backend/kubernetes/backend_options_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kubernetes import ( diff --git a/pipeline/backend/kubernetes/namespace.go b/pipeline/backend/kubernetes/namespace.go index d5ddfaaa11..f68591b70b 100644 --- a/pipeline/backend/kubernetes/namespace.go +++ b/pipeline/backend/kubernetes/namespace.go @@ -1,3 +1,17 @@ +// Copyright 2025 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kubernetes import ( diff --git a/pipeline/backend/kubernetes/namespace_test.go b/pipeline/backend/kubernetes/namespace_test.go index c8e4682dce..e247d31153 100644 --- a/pipeline/backend/kubernetes/namespace_test.go +++ b/pipeline/backend/kubernetes/namespace_test.go @@ -1,3 +1,17 @@ +// Copyright 2025 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package kubernetes import ( diff --git a/server/api/helper_test.go b/server/api/helper_test.go index 4dd17b1b8a..46c8fab3d0 100644 --- a/server/api/helper_test.go +++ b/server/api/helper_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package api import ( diff --git a/server/api/hook_test.go b/server/api/hook_test.go index c49194752c..e062c8ec9b 100644 --- a/server/api/hook_test.go +++ b/server/api/hook_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package api_test import ( diff --git a/server/api/login_test.go b/server/api/login_test.go index 0a11a0f345..b7d3b2caa9 100644 --- a/server/api/login_test.go +++ b/server/api/login_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package api_test import ( diff --git a/server/forge/bitbucketdatacenter/fixtures/hooks.go b/server/forge/bitbucketdatacenter/fixtures/hooks.go index d311c6457b..2639f769c4 100644 --- a/server/forge/bitbucketdatacenter/fixtures/hooks.go +++ b/server/forge/bitbucketdatacenter/fixtures/hooks.go @@ -1,3 +1,17 @@ +// Copyright 2025 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package fixtures import _ "embed" diff --git a/server/forge/bitbucketdatacenter/parse.go b/server/forge/bitbucketdatacenter/parse.go index b24fb00ecd..a01bd5c597 100644 --- a/server/forge/bitbucketdatacenter/parse.go +++ b/server/forge/bitbucketdatacenter/parse.go @@ -1,3 +1,17 @@ +// Copyright 2025 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package bitbucketdatacenter import ( diff --git a/server/forge/bitbucketdatacenter/parse_test.go b/server/forge/bitbucketdatacenter/parse_test.go index 628e0d5180..c70e51b91e 100644 --- a/server/forge/bitbucketdatacenter/parse_test.go +++ b/server/forge/bitbucketdatacenter/parse_test.go @@ -1,3 +1,17 @@ +// Copyright 2025 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package bitbucketdatacenter import ( diff --git a/server/forge/common/event_normalize.go b/server/forge/common/event_normalize.go index c030cd1c36..c0d826dec6 100644 --- a/server/forge/common/event_normalize.go +++ b/server/forge/common/event_normalize.go @@ -1,3 +1,17 @@ +// Copyright 2025 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package common func NormalizeEventReason(in string) string { diff --git a/server/forge/setup/setup.go b/server/forge/setup/setup.go index 95c4caa67c..9cb84f47b3 100644 --- a/server/forge/setup/setup.go +++ b/server/forge/setup/setup.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package setup import ( diff --git a/server/model/commit.go b/server/model/commit.go index 2de74fc44b..67b7362862 100644 --- a/server/model/commit.go +++ b/server/model/commit.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package model type Commit struct { diff --git a/server/model/queue.go b/server/model/queue.go index 4802c27f1a..bd912b8b1e 100644 --- a/server/model/queue.go +++ b/server/model/queue.go @@ -1,3 +1,17 @@ +// Copyright 2021 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package model // QueueTask represents a task in the queue with additional API-specific fields. diff --git a/server/pipeline/gated_test.go b/server/pipeline/gated_test.go index 3209875d57..9c61d951fb 100644 --- a/server/pipeline/gated_test.go +++ b/server/pipeline/gated_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package pipeline import ( diff --git a/server/pipeline/items_test.go b/server/pipeline/items_test.go index 78b162a062..5bb61207c5 100644 --- a/server/pipeline/items_test.go +++ b/server/pipeline/items_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package pipeline import ( diff --git a/server/services/log/file/file.go b/server/services/log/file/file.go index e5c400728d..105f9a4c34 100644 --- a/server/services/log/file/file.go +++ b/server/services/log/file/file.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package file import ( diff --git a/server/services/log/service.go b/server/services/log/service.go index c4d98a8450..1a45cdd392 100644 --- a/server/services/log/service.go +++ b/server/services/log/service.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package log import "go.woodpecker-ci.org/woodpecker/v3/server/model" diff --git a/server/services/permissions/admins.go b/server/services/permissions/admins.go index 1097816bae..80ea04b9b2 100644 --- a/server/services/permissions/admins.go +++ b/server/services/permissions/admins.go @@ -1,3 +1,17 @@ +// Copyright 2023 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package permissions import ( diff --git a/server/services/permissions/admins_test.go b/server/services/permissions/admins_test.go index f7cbb55b99..c20f445bb5 100644 --- a/server/services/permissions/admins_test.go +++ b/server/services/permissions/admins_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package permissions import ( diff --git a/server/services/permissions/orgs.go b/server/services/permissions/orgs.go index 3187350501..db1109b15b 100644 --- a/server/services/permissions/orgs.go +++ b/server/services/permissions/orgs.go @@ -1,3 +1,17 @@ +// Copyright 2023 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package permissions import ( diff --git a/server/services/permissions/orgs_test.go b/server/services/permissions/orgs_test.go index e7ead62b64..0a1852387c 100644 --- a/server/services/permissions/orgs_test.go +++ b/server/services/permissions/orgs_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package permissions import ( diff --git a/server/services/permissions/repo_owners.go b/server/services/permissions/repo_owners.go index a56c56cebd..2e5c234f5d 100644 --- a/server/services/permissions/repo_owners.go +++ b/server/services/permissions/repo_owners.go @@ -1,3 +1,17 @@ +// Copyright 2023 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package permissions import ( diff --git a/server/services/permissions/repo_owners_test.go b/server/services/permissions/repo_owners_test.go index 77206eb795..30d7d47c7b 100644 --- a/server/services/permissions/repo_owners_test.go +++ b/server/services/permissions/repo_owners_test.go @@ -1,3 +1,17 @@ +// Copyright 2023 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package permissions import ( diff --git a/server/store/datastore/migration/000_legacy_to_xormigrate.go b/server/store/datastore/migration/000_legacy_to_xormigrate.go index d3b59117ca..b82721c917 100644 --- a/server/store/datastore/migration/000_legacy_to_xormigrate.go +++ b/server/store/datastore/migration/000_legacy_to_xormigrate.go @@ -1,3 +1,17 @@ +// Copyright 2023 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package migration import ( diff --git a/shared/token/token_test.go b/shared/token/token_test.go index 0c1f3b9730..bbd2225c31 100644 --- a/shared/token/token_test.go +++ b/shared/token/token_test.go @@ -1,3 +1,17 @@ +// Copyright 2021 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package token_test import ( diff --git a/woodpecker-go/woodpecker/agent.go b/woodpecker-go/woodpecker/agent.go index 81ff8883c1..8eb4cb034b 100644 --- a/woodpecker-go/woodpecker/agent.go +++ b/woodpecker-go/woodpecker/agent.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package woodpecker import "fmt" diff --git a/woodpecker-go/woodpecker/agent_test.go b/woodpecker-go/woodpecker/agent_test.go index a10d756ee7..1a5587c6e1 100644 --- a/woodpecker-go/woodpecker/agent_test.go +++ b/woodpecker-go/woodpecker/agent_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package woodpecker import ( diff --git a/woodpecker-go/woodpecker/global_registry.go b/woodpecker-go/woodpecker/global_registry.go index 1936b7b477..07749e2e86 100644 --- a/woodpecker-go/woodpecker/global_registry.go +++ b/woodpecker-go/woodpecker/global_registry.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package woodpecker import ( diff --git a/woodpecker-go/woodpecker/global_secret.go b/woodpecker-go/woodpecker/global_secret.go index 1be6053fa6..ae7e972683 100644 --- a/woodpecker-go/woodpecker/global_secret.go +++ b/woodpecker-go/woodpecker/global_secret.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package woodpecker import ( diff --git a/woodpecker-go/woodpecker/list_options.go b/woodpecker-go/woodpecker/list_options.go index 8107fa3084..cb43632de9 100644 --- a/woodpecker-go/woodpecker/list_options.go +++ b/woodpecker-go/woodpecker/list_options.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package woodpecker import ( diff --git a/woodpecker-go/woodpecker/list_options_test.go b/woodpecker-go/woodpecker/list_options_test.go index 22d45d92ee..3ec6808152 100644 --- a/woodpecker-go/woodpecker/list_options_test.go +++ b/woodpecker-go/woodpecker/list_options_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package woodpecker import ( diff --git a/woodpecker-go/woodpecker/org.go b/woodpecker-go/woodpecker/org.go index 7e6f15895a..2f19523e05 100644 --- a/woodpecker-go/woodpecker/org.go +++ b/woodpecker-go/woodpecker/org.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package woodpecker import ( diff --git a/woodpecker-go/woodpecker/pipeline.go b/woodpecker-go/woodpecker/pipeline.go index 4eec3ef017..aaecec9178 100644 --- a/woodpecker-go/woodpecker/pipeline.go +++ b/woodpecker-go/woodpecker/pipeline.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package woodpecker import ( diff --git a/woodpecker-go/woodpecker/queue.go b/woodpecker-go/woodpecker/queue.go index 1e0f27e15f..579fe44188 100644 --- a/woodpecker-go/woodpecker/queue.go +++ b/woodpecker-go/woodpecker/queue.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package woodpecker import "fmt" diff --git a/woodpecker-go/woodpecker/queue_test.go b/woodpecker-go/woodpecker/queue_test.go index 11ab1b8a86..dc23285a1e 100644 --- a/woodpecker-go/woodpecker/queue_test.go +++ b/woodpecker-go/woodpecker/queue_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package woodpecker import ( diff --git a/woodpecker-go/woodpecker/repo.go b/woodpecker-go/woodpecker/repo.go index 385992e720..2eaacfa35d 100644 --- a/woodpecker-go/woodpecker/repo.go +++ b/woodpecker-go/woodpecker/repo.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package woodpecker import ( diff --git a/woodpecker-go/woodpecker/repo_test.go b/woodpecker-go/woodpecker/repo_test.go index 442d8c4c4b..2f88292d5d 100644 --- a/woodpecker-go/woodpecker/repo_test.go +++ b/woodpecker-go/woodpecker/repo_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package woodpecker import ( diff --git a/woodpecker-go/woodpecker/user.go b/woodpecker-go/woodpecker/user.go index dc3d4aed59..66ef5b9470 100644 --- a/woodpecker-go/woodpecker/user.go +++ b/woodpecker-go/woodpecker/user.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package woodpecker import ( diff --git a/woodpecker-go/woodpecker/user_test.go b/woodpecker-go/woodpecker/user_test.go index 709ca66b08..7e7a43429b 100644 --- a/woodpecker-go/woodpecker/user_test.go +++ b/woodpecker-go/woodpecker/user_test.go @@ -1,3 +1,17 @@ +// Copyright 2024 Woodpecker Authors +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package woodpecker import (