diff --git a/.github/README.md b/.github/README.md index 89d0ed9..0864606 100644 --- a/.github/README.md +++ b/.github/README.md @@ -32,7 +32,7 @@ Please see our [support](SUPPORT.md) documentation for further instructions. ## Copyright and License ``` -Copyright (c) 2022 Target Brands, Inc. +Copyright 2019 Target Brands, Inc. ``` -[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) +[Apache License, Version 2.0](../LICENSE) diff --git a/.golangci.yml b/.golangci.yml index abd57d5..4f6bf1a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -35,9 +35,7 @@ linters-settings: # https://github.com/denis-tingaikin/go-header goheader: template: |- - Copyright (c) {{ YEAR }} Target Brands, Inc. All rights reserved. - - Use of this source code is governed by the LICENSE file in this repository. + SPDX-License-Identifier: Apache-2.0 # https://github.com/client9/misspell misspell: diff --git a/LICENSE b/LICENSE index a2f9a29..d34ffa8 100644 --- a/LICENSE +++ b/LICENSE @@ -186,7 +186,7 @@ Apache License same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright (c) 2022 Target Brands, Inc. + Copyright 2019 Target Brands, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/Makefile b/Makefile index 38a6187..97a28b1 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,4 @@ -# Copyright (c) 2022 Target Brands, Inc. All rights reserved. -# -# Use of this source code is governed by the LICENSE file in this repository. +# SPDX-License-Identifier: Apache-2.0 # The `clean` target is intended to clean the workspace # and prepare the local changes for submission. diff --git a/vela/admin.go b/vela/admin.go index 1e9300f..d9de714 100644 --- a/vela/admin.go +++ b/vela/admin.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/admin_test.go b/vela/admin_test.go index b4c9ab7..e1f5306 100644 --- a/vela/admin_test.go +++ b/vela/admin_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/authentication.go b/vela/authentication.go index 852e2b7..d5e5c81 100644 --- a/vela/authentication.go +++ b/vela/authentication.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/authentication_test.go b/vela/authentication_test.go index ee8b056..2f7734d 100644 --- a/vela/authentication_test.go +++ b/vela/authentication_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/build.go b/vela/build.go index dfe31b4..02a3825 100644 --- a/vela/build.go +++ b/vela/build.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/build_test.go b/vela/build_test.go index 425f1e8..d433d76 100644 --- a/vela/build_test.go +++ b/vela/build_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/client.go b/vela/client.go index ed90657..1a555eb 100644 --- a/vela/client.go +++ b/vela/client.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/client_test.go b/vela/client_test.go index f56bde3..86762a7 100644 --- a/vela/client_test.go +++ b/vela/client_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/context.go b/vela/context.go index 8b6d8e5..2338811 100644 --- a/vela/context.go +++ b/vela/context.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/context_test.go b/vela/context_test.go index 52c4e7f..f928189 100644 --- a/vela/context_test.go +++ b/vela/context_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/deployment.go b/vela/deployment.go index f9f743d..da35287 100644 --- a/vela/deployment.go +++ b/vela/deployment.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/deployment_test.go b/vela/deployment_test.go index e002761..6198ece 100644 --- a/vela/deployment_test.go +++ b/vela/deployment_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/doc.go b/vela/doc.go index d3dc44f..93c89de 100644 --- a/vela/doc.go +++ b/vela/doc.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 // Package vela provides a client for using the Vela API. // diff --git a/vela/hook.go b/vela/hook.go index f1ced84..e7e7fa8 100644 --- a/vela/hook.go +++ b/vela/hook.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/hook_test.go b/vela/hook_test.go index 704b319..630828e 100644 --- a/vela/hook_test.go +++ b/vela/hook_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/jwt.go b/vela/jwt.go index 34e782b..4be5bb3 100644 --- a/vela/jwt.go +++ b/vela/jwt.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/jwt_test.go b/vela/jwt_test.go index f21150d..6ba2e97 100644 --- a/vela/jwt_test.go +++ b/vela/jwt_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/log.go b/vela/log.go index aab6f29..cd892f6 100644 --- a/vela/log.go +++ b/vela/log.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/log_test.go b/vela/log_test.go index f08125e..fce0ac5 100644 --- a/vela/log_test.go +++ b/vela/log_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/login.go b/vela/login.go index 3756535..b70ad7f 100644 --- a/vela/login.go +++ b/vela/login.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/login_test.go b/vela/login_test.go index d72d412..ab0b5f8 100644 --- a/vela/login_test.go +++ b/vela/login_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/pipeline.go b/vela/pipeline.go index 6a9c67b..e1c20b9 100644 --- a/vela/pipeline.go +++ b/vela/pipeline.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/pipeline_test.go b/vela/pipeline_test.go index a089e76..473c3fc 100644 --- a/vela/pipeline_test.go +++ b/vela/pipeline_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/repo.go b/vela/repo.go index 553cff3..f8ea98c 100644 --- a/vela/repo.go +++ b/vela/repo.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/repo_test.go b/vela/repo_test.go index 5779600..e22a840 100644 --- a/vela/repo_test.go +++ b/vela/repo_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/schedule.go b/vela/schedule.go index f0e56fa..80a4004 100644 --- a/vela/schedule.go +++ b/vela/schedule.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/schedule_test.go b/vela/schedule_test.go index adf640a..675ad4a 100644 --- a/vela/schedule_test.go +++ b/vela/schedule_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/scm.go b/vela/scm.go index 8e94023..f19c7e4 100644 --- a/vela/scm.go +++ b/vela/scm.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/scm_test.go b/vela/scm_test.go index 85725e1..f9e0f92 100644 --- a/vela/scm_test.go +++ b/vela/scm_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/secret.go b/vela/secret.go index 29e74ab..69fa834 100644 --- a/vela/secret.go +++ b/vela/secret.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/secret_test.go b/vela/secret_test.go index 6ab8567..457e9eb 100644 --- a/vela/secret_test.go +++ b/vela/secret_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/service.go b/vela/service.go index 5dae1cc..7e29819 100644 --- a/vela/service.go +++ b/vela/service.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 //nolint:dupl // ignore dupl linter false positive package vela diff --git a/vela/service_test.go b/vela/service_test.go index aa0f55f..7dfbec9 100644 --- a/vela/service_test.go +++ b/vela/service_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/step.go b/vela/step.go index 562689a..4ca7613 100644 --- a/vela/step.go +++ b/vela/step.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 //nolint:dupl // ignore dupl linter false positive package vela diff --git a/vela/step_test.go b/vela/step_test.go index c0fe029..bbdb589 100644 --- a/vela/step_test.go +++ b/vela/step_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/vela.go b/vela/vela.go index 4975c7a..cff0488 100644 --- a/vela/vela.go +++ b/vela/vela.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/vela_test.go b/vela/vela_test.go index 1ddc913..7218dd8 100644 --- a/vela/vela_test.go +++ b/vela/vela_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/worker.go b/vela/worker.go index 481d6c3..fca6d1e 100644 --- a/vela/worker.go +++ b/vela/worker.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/vela/worker_test.go b/vela/worker_test.go index 5ecbb23..bdf8a09 100644 --- a/vela/worker_test.go +++ b/vela/worker_test.go @@ -1,6 +1,4 @@ -// Copyright (c) 2022 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package vela diff --git a/version/version.go b/version/version.go index 3cff270..b44b292 100644 --- a/version/version.go +++ b/version/version.go @@ -1,6 +1,4 @@ -// Copyright (c) 2023 Target Brands, Inc. All rights reserved. -// -// Use of this source code is governed by the LICENSE file in this repository. +// SPDX-License-Identifier: Apache-2.0 package version