From e237bc8243b06f5aa50cea68f3b777f2839b9d2e Mon Sep 17 00:00:00 2001 From: Philip De Lorenzo Date: Wed, 23 Oct 2024 23:05:59 -0700 Subject: [PATCH] chore: add copyleft to all files --- scripts/replace-tag.sh | 5 +++++ src/checks.py | 6 ++++++ src/exceptions.py | 5 +++++ src/gh.py | 5 +++++ src/gh_api.py | 5 +++++ src/helpers.py | 5 +++++ src/shared.py | 6 ++++++ src/test_checks.py | 5 +++++ src/test_gh.py | 5 +++++ src/test_gh_api.py | 5 +++++ sync-action-status.py | 5 +++++ 11 files changed, 57 insertions(+) diff --git a/scripts/replace-tag.sh b/scripts/replace-tag.sh index 3b598b4..ab0d15f 100644 --- a/scripts/replace-tag.sh +++ b/scripts/replace-tag.sh @@ -1,4 +1,9 @@ #!/usr/bin/env bash +# Copyright (c) 2024, Philip De Lorenzo +# All rights reserved. + +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. # We want to make some change to the code, but keep the same tag for the version RELEASE_TAG="v0.1.0" diff --git a/src/checks.py b/src/checks.py index c084e03..5b3fbc6 100644 --- a/src/checks.py +++ b/src/checks.py @@ -1,4 +1,10 @@ # Author: Philip De lorenzo +# Copyright (c) 2024, Philip De Lorenzo +# All rights reserved. + +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. + import argparse import requests diff --git a/src/exceptions.py b/src/exceptions.py index baba267..d4a864f 100644 --- a/src/exceptions.py +++ b/src/exceptions.py @@ -1,4 +1,9 @@ # Author: Philip De lorenzo +# Copyright (c) 2024, Philip De Lorenzo +# All rights reserved. + +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. class GHTokenError(Exception): def __init__(self, message, errors={}): # Call the base class constructor with the parameters it needs diff --git a/src/gh.py b/src/gh.py index 7ac97e6..b85ce54 100644 --- a/src/gh.py +++ b/src/gh.py @@ -1,3 +1,8 @@ +# Copyright (c) 2024, Philip De Lorenzo +# All rights reserved. + +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. import argparse import json import os diff --git a/src/gh_api.py b/src/gh_api.py index 5a03886..2fb4f81 100644 --- a/src/gh_api.py +++ b/src/gh_api.py @@ -1,3 +1,8 @@ +# Copyright (c) 2024, Philip De Lorenzo +# All rights reserved. + +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. import json import os import subprocess # We will use subprocess to run the gh command to get the deployment pipelines diff --git a/src/helpers.py b/src/helpers.py index c1a2826..cc81ab1 100644 --- a/src/helpers.py +++ b/src/helpers.py @@ -1,3 +1,8 @@ +# Copyright (c) 2024, Philip De Lorenzo +# All rights reserved. + +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. class Args: def __init__(self): self.current_repo = "philipdelorenzo/sync-action-status" diff --git a/src/shared.py b/src/shared.py index c5162b0..2acfecc 100644 --- a/src/shared.py +++ b/src/shared.py @@ -1,3 +1,9 @@ +# Copyright (c) 2024, Philip De Lorenzo +# All rights reserved. + +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. + """This python script will return the deployment pipelines, and ids for the SRE Deployments Repo -- @manscaped-dev/manscaped-sre-deployments # Author: @philipdelorenzo-manscaped diff --git a/src/test_checks.py b/src/test_checks.py index f696df4..aa5fd30 100644 --- a/src/test_checks.py +++ b/src/test_checks.py @@ -1,3 +1,8 @@ +# Copyright (c) 2024, Philip De Lorenzo +# All rights reserved. + +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. import unittest from checks import check_gh_token, is_org, prerequisites, repo_owner_verification diff --git a/src/test_gh.py b/src/test_gh.py index 2b8b793..7ef1e64 100644 --- a/src/test_gh.py +++ b/src/test_gh.py @@ -1,3 +1,8 @@ +# Copyright (c) 2024, Philip De Lorenzo +# All rights reserved. + +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. import unittest import requests diff --git a/src/test_gh_api.py b/src/test_gh_api.py index 97ed7e4..59766d6 100644 --- a/src/test_gh_api.py +++ b/src/test_gh_api.py @@ -1,3 +1,8 @@ +# Copyright (c) 2024, Philip De Lorenzo +# All rights reserved. + +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. import unittest import requests diff --git a/sync-action-status.py b/sync-action-status.py index d68ef06..a0c1fc7 100644 --- a/sync-action-status.py +++ b/sync-action-status.py @@ -1,3 +1,8 @@ +# Copyright (c) 2024, Philip De Lorenzo +# All rights reserved. + +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. import argparse import os import sys