diff --git a/.editorconfig b/.editorconfig index e12c51b2..5bd4d18b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,7 +4,7 @@ # / __/ -_) _ `/ _ \/ _ \/ _ `/ / It is licensed under Creative Commons Zero v1.0 Universal # \__/\__/\_, /\___/_//_/\_,_/_/ Please report bugs and contribute back your improvements # /___/ -# Version: v0.8.0 +# Version: v1.0.0 # ################################### @@ -15,7 +15,6 @@ root = true [*] charset = utf-8 indent_style = tab -indent_size = 4 end_of_line = lf insert_final_newline = true trim_trailing_whitespace = true @@ -24,5 +23,5 @@ trim_trailing_whitespace = true insert_final_newline = false trim_trailing_whitespace = false -[*.{yml,sh}] +[*.{yml,yaml}] indent_size = 2 diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index b17234af..a366f5fb 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -5,7 +5,7 @@ # / __/ -_) _ `/ _ \/ _ \/ _ `/ / It is licensed under Creative Commons Zero v1.0 Universal # \__/\__/\_, /\___/_//_/\_,_/_/ Please report bugs and contribute back your improvements # /___/ -# Version: v0.8.0 +# Version: v1.0.0 # ################################### --> diff --git a/.github/Contributor Agreement.txt b/.github/Contributor Agreement.txt index a9a939ab..86275c66 100644 --- a/.github/Contributor Agreement.txt +++ b/.github/Contributor Agreement.txt @@ -1,5 +1,5 @@ Tegonal Contributor Agreement v1.1 - + This agreement is based on the ISA contributor agreement https://joinup.ec.europa.eu/collection/eupl/solution/isa-contributor-agreement/release/v11 which was based in turn on the Harmony contributor agreements harmonyagreements.org. @@ -7,10 +7,10 @@ Thank you for your interest in contributing to tegonal-scripts currently developed on the platform https://github.com/tegonal/tegonal-scripts -and owned by +and owned by Tegonal Genossenschaft, Switzerland (the “Project Owner”, hereafter "We" or "Us"). -This contributor agreement ("Agreement") documents the rights granted by contributors to +This contributor agreement ("Agreement") documents the rights granted by contributors to Us. To make this document effective, please sign it. The consent in the form of a sign-off remark in your pull request is considered as your valid signature. Alternatively you can sign it and send it to Us by email. @@ -19,92 +19,92 @@ The Agreement may cover more than one project managed by Us. 1. Definitions "You" (Individual) means the individual who Submits a Contribution to Us. -"You" (Entity) means any Legal Entity on behalf of whom a Contribution has been received -by Us. "Legal Entity" means an entity which is not a natural person. "Affiliates" means other -Legal Entities that control, are controlled by, or under common control with that Legal -Entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, -to cause the direction or management of such Legal Entity, whether by contract or -otherwise, (ii) ownership of fifty percent (50%) or more of the outstanding shares or -securities which vote to elect the management or other persons who direct such Legal Entity +"You" (Entity) means any Legal Entity on behalf of whom a Contribution has been received +by Us. "Legal Entity" means an entity which is not a natural person. "Affiliates" means other +Legal Entities that control, are controlled by, or under common control with that Legal +Entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, +to cause the direction or management of such Legal Entity, whether by contract or +otherwise, (ii) ownership of fifty percent (50%) or more of the outstanding shares or +securities which vote to elect the management or other persons who direct such Legal Entity or (iii) beneficial ownership of such entity. -"Contribution" means any work of authorship that is Submitted by You to Us in which You -own or assert ownership rights including, but not limited to Copyright. If You do not fully -own the entire work of authorship, please ensure that a paper copy of this Agreement is -signed by all relevant copyright holders -"Copyright" means all rights protecting works of authorship owned or controlled by You [or -Your Affiliates], including copyright, moral and neighbouring rights, as appropriate, for the +"Contribution" means any work of authorship that is Submitted by You to Us in which You +own or assert ownership rights including, but not limited to Copyright. If You do not fully +own the entire work of authorship, please ensure that a paper copy of this Agreement is +signed by all relevant copyright holders +"Copyright" means all rights protecting works of authorship owned or controlled by You [or +Your Affiliates], including copyright, moral and neighbouring rights, as appropriate, for the full term of their existence including any extensions by You. -"Work" means the work of authorship which is made available by Us to third parties. When -this Agreement covers more than one project, the Work means the work of authorship to -which the Contribution was Submitted. After You Submit your Contribution, it may be +"Work" means the work of authorship which is made available by Us to third parties. When +this Agreement covers more than one project, the Work means the work of authorship to +which the Contribution was Submitted. After You Submit your Contribution, it may be included in the Work. -"Submit" means any form of electronic, verbal, or written communication sent to Us or our -representatives, including but not limited to electronic mails, attachments, lists, source code -control systems, and issue tracking systems that are managed by, or on behalf of, Us for -the purpose of discussing and improving the Work, but excluding communication that is +"Submit" means any form of electronic, verbal, or written communication sent to Us or our +representatives, including but not limited to electronic mails, attachments, lists, source code +control systems, and issue tracking systems that are managed by, or on behalf of, Us for +the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by You as "Not a Contribution." "Submission Date" means the date on which You Submit a Contribution to Us. -"Effective Date" means the date You execute this Agreement or the date You first Submit a +"Effective Date" means the date You execute this Agreement or the date You first Submit a Contribution to Us, whichever is earlier. -"Media" means any Contribution or portion of a Contribution which is not software: data, +"Media" means any Contribution or portion of a Contribution which is not software: data, metadata, data bases, documents, manuals, images, video, etc. 2. Grant of Rights 2.1 Copyright Assignment -(a) At the time the Contribution is Submitted, You irrevocably assign to Us all right, title, -and interest worldwide in all Copyright covering the Contribution; provided that this transfer -is conditioned upon compliance with Section 2.3. In particular, You agree to transfer the +(a) At the time the Contribution is Submitted, You irrevocably assign to Us all right, title, +and interest worldwide in all Copyright covering the Contribution; provided that this transfer +is conditioned upon compliance with Section 2.3. In particular, You agree to transfer the following rights: 1. the right to use and to re-use in a whole or in part; -2. the right to modify, including the right to translate and to re-write in a different +2. the right to modify, including the right to translate and to re-write in a different form; 3. the rights to licence and sub-licence any of the rights herein; 4. the right to distribute copies and cause the distribution; 5. the right to display publicly; -6. the right to communicate to the public by telecommunication, by electronic +6. the right to communicate to the public by telecommunication, by electronic publication, by press information services, by downloadable and non- -downloadable files, by communication with computer terminals; by sending of -telegrams, messages and wire service, by electronic and non-electronic +downloadable files, by communication with computer terminals; by sending of +telegrams, messages and wire service, by electronic and non-electronic publications; 7. the right to reproduce by any mean including paper, digital, electronic or non- electronic format; 8. the right to integrate and incorporate into any existing or future Work; -9. the right to transfer to another environment (hardware, software, computer +9. the right to transfer to another environment (hardware, software, computer electronic, Web, multimedia or other); 10. the right to make improvements and derivative works; 11. the right to store; -12. the right to licence the above-mentioned rights. - -(b) To the extent that any of the rights in Section 2.1(a) cannot be assigned by You to Us, -You grant to Us a perpetual, worldwide, exclusive, royalty-free, transferable, irrevocable -licence under such non-assigned rights, with rights to sublicense through multiple tiers of -sub licensees, to practice such non-assigned rights, including, but not limited to, the right to -reproduce, modify, display, perform and distribute the Contribution; provided that this +12. the right to licence the above-mentioned rights. + +(b) To the extent that any of the rights in Section 2.1(a) cannot be assigned by You to Us, +You grant to Us a perpetual, worldwide, exclusive, royalty-free, transferable, irrevocable +licence under such non-assigned rights, with rights to sublicense through multiple tiers of +sub licensees, to practice such non-assigned rights, including, but not limited to, the right to +reproduce, modify, display, perform and distribute the Contribution; provided that this licence is conditioned upon compliance with Section 2.3. -(c) To the extent that any of the rights in Section 2.1(a) can neither be assigned nor -licensed by You to Us, You irrevocably waive and agree never to assert such rights against -Us, any of our successors in interest, or any of our licensees, either direct or indirect; +(c) To the extent that any of the rights in Section 2.1(a) can neither be assigned nor +licensed by You to Us, You irrevocably waive and agree never to assert such rights against +Us, any of our successors in interest, or any of our licensees, either direct or indirect; provided that this agreement not to assert is conditioned upon compliance with Section 2.3. -(d) Upon such transfer of rights to Us, to the maximum extent possible, We immediately -grant to You a perpetual, worldwide, non-exclusive, royalty-free, transferable, irrevocable -licence under such rights covering the Contribution, with rights to sublicense through -multiple tiers of sub licensees, to reproduce, modify, display, perform, and distribute the -Contribution. The intention of the parties is that this licence will be as broad as possible and -to provide You with rights as similar as possible to the owner of the rights that You -transferred. This licence back is limited to the Contribution and does not provide any rights +(d) Upon such transfer of rights to Us, to the maximum extent possible, We immediately +grant to You a perpetual, worldwide, non-exclusive, royalty-free, transferable, irrevocable +licence under such rights covering the Contribution, with rights to sublicense through +multiple tiers of sub licensees, to reproduce, modify, display, perform, and distribute the +Contribution. The intention of the parties is that this licence will be as broad as possible and +to provide You with rights as similar as possible to the owner of the rights that You +transferred. This licence back is limited to the Contribution and does not provide any rights to the Work, which shall be subject to the outbound licence(s) as provided in Section 2.3. 2.2 Patent Licence -For patent claims including, without limitation, method, process, and apparatus claims -which You [or Your Affiliates] own, control or have the right to grant, now or in the future, -You grant to Us a perpetual, worldwide, non-exclusive, transferable, royalty-free, -irrevocable patent licence, with the right to sublicense these rights to multiple tiers of sub -licensees, to make, have made, use, sell, offer for sale, import and otherwise transfer the -Contribution and the Contribution in combination with the Work (and portions of such -combination). This licence is granted only to the extent that the exercise of the licensed -rights infringes such patent claims; and provided that this licence is conditioned upon +For patent claims including, without limitation, method, process, and apparatus claims +which You [or Your Affiliates] own, control or have the right to grant, now or in the future, +You grant to Us a perpetual, worldwide, non-exclusive, transferable, royalty-free, +irrevocable patent licence, with the right to sublicense these rights to multiple tiers of sub +licensees, to make, have made, use, sell, offer for sale, import and otherwise transfer the +Contribution and the Contribution in combination with the Work (and portions of such +combination). This licence is granted only to the extent that the exercise of the licensed +rights infringes such patent claims; and provided that this licence is conditioned upon compliance with Section 2.3. 2.3 Outbound Licence(s) @@ -119,79 +119,79 @@ To the extend the Work includes software (source code or binaries): To the extend the Work includes Media: • The ISA Open Metadata Licence v1.1 or later Without prejudice to the former conditions - and for the exclusive purpose of ensuring -copyleft compatibility, We may licence the Contribution under any licences which are -approved by the Open Source Initiative, or the Free Software Foundation, or Creative -Commons or equivalent non-proprietary licences published by the European Commission on +copyleft compatibility, We may licence the Contribution under any licences which are +approved by the Open Source Initiative, or the Free Software Foundation, or Creative +Commons or equivalent non-proprietary licences published by the European Commission on or after the Effective Date, including both permissive and copyleft licences, whether or not -such licences are subsequently disapproved by relevant organisations (including any right to +such licences are subsequently disapproved by relevant organisations (including any right to adopt any future version of these licences). -2.4 Moral Rights. If moral rights apply to the Contribution, to the maximum extent -permitted by law, You waive and agree not to assert such moral rights against Us or our +2.4 Moral Rights. If moral rights apply to the Contribution, to the maximum extent +permitted by law, You waive and agree not to assert such moral rights against Us or our successors in interest, or any of our licensees, either direct or indirect. -2.5 Our Rights. You acknowledge that We are not obligated to use Your Contribution as part +2.5 Our Rights. You acknowledge that We are not obligated to use Your Contribution as part of the Work and may decide to include any Contribution We consider appropriate. -2.6 Reservation of Rights. Any rights not expressly assigned or licensed under this section +2.6 Reservation of Rights. Any rights not expressly assigned or licensed under this section are expressly reserved by You. 3. Agreement You confirm that: (a) You have the legal authority to enter into this Agreement. -(b) You [or Your Affiliates] own the Copyright and any other proprietary rights in the -Contribution, including patent claims where applicable, which are required to transfer or -grant the rights as provided under Section 2. -(c)(Individual) The grant of rights under Section 2 does not violate any grant of rights which -You have made to third parties, including Your employer. If You are an employee or official, -You have had Your employer approve this Agreement or sign the Entity version of this -document. If You are less than eighteen years old, please have Your parents or guardian +(b) You [or Your Affiliates] own the Copyright and any other proprietary rights in the +Contribution, including patent claims where applicable, which are required to transfer or +grant the rights as provided under Section 2. +(c)(Individual) The grant of rights under Section 2 does not violate any grant of rights which +You have made to third parties, including Your employer. If You are an employee or official, +You have had Your employer approve this Agreement or sign the Entity version of this +document. If You are less than eighteen years old, please have Your parents or guardian sign the Agreement on your behalf. -(c)(Entity) The grant of rights under Section 2 does not violate any grant of rights which +(c)(Entity) The grant of rights under Section 2 does not violate any grant of rights which You or Your Affiliates have made to third parties. -(d) You communicated to Us a paper copy of this Agreement, signed by all relevant -copyright holders, if You do not own the Copyright in the entire work of authorship +(d) You communicated to Us a paper copy of this Agreement, signed by all relevant +copyright holders, if You do not own the Copyright in the entire work of authorship Submitted. 4. Disclaimer -EXCEPT FOR THE EXPRESS WARRANTIES IN SECTION 3, THE CONTRIBUTION IS PROVIDED -"AS IS". MORE PARTICULARLY, ALL EXPRESS OR IMPLIED WARRANTIES INCLUDING, -WITHOUT LIMITATION, ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A -PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE EXPRESSLY DISCLAIMED BY YOU TO -US [AND BY US TO YOU]. TO THE EXTENT THAT ANY SUCH WARRANTIES CANNOT BE -DISCLAIMED, SUCH WARRANTY IS LIMITED IN DURATION TO THE MINIMUM PERIOD +EXCEPT FOR THE EXPRESS WARRANTIES IN SECTION 3, THE CONTRIBUTION IS PROVIDED +"AS IS". MORE PARTICULARLY, ALL EXPRESS OR IMPLIED WARRANTIES INCLUDING, +WITHOUT LIMITATION, ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE EXPRESSLY DISCLAIMED BY YOU TO +US [AND BY US TO YOU]. TO THE EXTENT THAT ANY SUCH WARRANTIES CANNOT BE +DISCLAIMED, SUCH WARRANTY IS LIMITED IN DURATION TO THE MINIMUM PERIOD PERMITTED BY LAW. 5. Consequential Damage Waiver -TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT WILL YOU [OR -US] BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF ANTICIPATED SAVINGS, LOSS OF -DATA, INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL AND EXEMPLARY DAMAGES -ARISING OUT OF THIS AGREEMENT REGARDLESS OF THE LEGAL OR EQUITABLE THEORY +TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT WILL YOU [OR +US] BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF ANTICIPATED SAVINGS, LOSS OF +DATA, INDIRECT, SPECIAL, INCIDENTAL, CONSEQUENTIAL AND EXEMPLARY DAMAGES +ARISING OUT OF THIS AGREEMENT REGARDLESS OF THE LEGAL OR EQUITABLE THEORY (CONTRACT, TORT OR OTHERWISE) UPON WHICH THE CLAIM IS BASED. 6. Miscellaneous -6.1 This Agreement will be governed by and construed in accordance with the laws of the +6.1 This Agreement will be governed by and construed in accordance with the laws of the jurisdiction in which the Project Owner has its principal place of business -Any litigation resulting from the interpretation of this Agreement, arising between the -European Commission, as the project owner, and any Contributor, will be subject to the -jurisdiction of the Court of Justice of the European Communities, as laid down in article 238 -of the Treaty establishing the European Community. -Any litigation arising between Parties, other than the European Commission, and resulting -from the interpretation of this Agreement, will be subject to the exclusive jurisdiction of the +Any litigation resulting from the interpretation of this Agreement, arising between the +European Commission, as the project owner, and any Contributor, will be subject to the +jurisdiction of the Court of Justice of the European Communities, as laid down in article 238 +of the Treaty establishing the European Community. +Any litigation arising between Parties, other than the European Commission, and resulting +from the interpretation of this Agreement, will be subject to the exclusive jurisdiction of the competent court where the Project Owner resides or conducts its primary business. -6.2 This Agreement sets out the entire agreement between You and Us for Your +6.2 This Agreement sets out the entire agreement between You and Us for Your Contributions to Us and overrides all other agreements or understandings. -6.3 If You or We assign the rights or obligations received through this Agreement to a third -party, as a condition of the assignment, that third party must agree in writing to abide by all +6.3 If You or We assign the rights or obligations received through this Agreement to a third +party, as a condition of the assignment, that third party must agree in writing to abide by all the rights and obligations in the Agreement. -6.4 The failure of either party to require performance by the other party of any provision of -this Agreement in one situation shall not affect the right of a party to require such -performance at any time in the future. A waiver of performance under a provision in one -situation shall not be considered a waiver of the performance of the provision in the future +6.4 The failure of either party to require performance by the other party of any provision of +this Agreement in one situation shall not affect the right of a party to require such +performance at any time in the future. A waiver of performance under a provision in one +situation shall not be considered a waiver of the performance of the provision in the future or a waiver of the provision in its entirety. -6.5 If any provision of this Agreement is found void and unenforceable, such provision will -be replaced to the extent possible with a provision that comes closest to the meaning of the -original provision and which is enforceable. The terms and conditions set forth in this -Agreement shall apply notwithstanding any failure of essential purpose of this Agreement or +6.5 If any provision of this Agreement is found void and unenforceable, such provision will +be replaced to the extent possible with a provision that comes closest to the meaning of the +original provision and which is enforceable. The terms and conditions set forth in this +Agreement shall apply notwithstanding any failure of essential purpose of this Agreement or any limited remedy to the maximum extent possible under law. SIGNATURES @@ -201,7 +201,7 @@ Us – the act of accepting a contribution is considered as our valid signature. You (Individual) – the consent in the form of a sign-off remark in your pull request (I confirm that I have read ...) is considered as your valid signature. -You (Legal Entity or Employer, or any other relevant copyright holder if applicable) – In -such case, only a paper copy of this agreement, signed by all relevant stakeholders’ +You (Legal Entity or Employer, or any other relevant copyright holder if applicable) – In +such case, only a paper copy of this agreement, signed by all relevant stakeholders’ legitimate representatives, will be considered as a valid commitment. diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f3ea9b0a..6e05c5ff 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,7 +4,7 @@ # / __/ -_) _ `/ _ \/ _ \/ _ `/ / It is licensed under Creative Commons Zero v1.0 Universal # \__/\__/\_, /\___/_//_/\_,_/_/ Please report bugs and contribute back your improvements # /___/ -# Version: v0.8.0 +# Version: v1.0.0 # ################################### version: 2 diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index f7eac5bb..5589ff43 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -4,7 +4,7 @@ # / __/ -_) _ `/ _ \/ _ \/ _ `/ / It is licensed under Creative Commons Zero v1.0 Universal # \__/\__/\_, /\___/_//_/\_,_/_/ Please report bugs and contribute back your improvements # /___/ -# Version: v0.8.0 +# Version: v1.0.0 # ################################### name: Cleanup @@ -22,7 +22,7 @@ jobs: - name: Cleanup Sources run: ./scripts/cleanup-on-push-to-main.sh - name: Create Pull Request if necessary - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@v5 with: branch: auto-cleanup title: Auto Cleanup diff --git a/.gt/remotes/tegonal-gh-commons/lib/src/gt/pull-hook-functions.sh b/.gt/remotes/tegonal-gh-commons/lib/src/gt/pull-hook-functions.sh index 37513b19..7788ff12 100644 --- a/.gt/remotes/tegonal-gh-commons/lib/src/gt/pull-hook-functions.sh +++ b/.gt/remotes/tegonal-gh-commons/lib/src/gt/pull-hook-functions.sh @@ -5,7 +5,7 @@ # / __/ -_) _ `/ _ \/ _ \/ _ `/ / It is licensed under Creative Commons Zero v1.0 Universal # \__/\__/\_, /\___/_//_/\_,_/_/ Please report bugs and contribute back your improvements # /___/ -# Version: v0.8.0 +# Version: v1.0.0 # ####### Description ############# # @@ -31,8 +31,8 @@ # declare _tag=$1 source=$2 _target=$3 # shift 3 || die "could not shift by 3" # -# replacePlaceholdersContributorsAgreement "$source" "my-project-name" -# replacePlaceholderPullRequestTemplate "$source" "https://github.com/tegonal/my-project-name" "$MY_PROJECT_LATEST_VERSION" +# replacePlaceholdersContributorsAgreement "$source" "my-project-name" "MyCompanyName, Country" +# replacePlaceholdersPullRequestTemplate "$source" "https://github.com/tegonal/my-project-name" "$MY_PROJECT_LATEST_VERSION" # # # also have a look at https://github.com/tegonal/gt/blob/main/.gt/remotes/tegonal-scripts/pull-hook.sh # @@ -40,7 +40,6 @@ set -euo pipefail shopt -s inherit_errexit unset CDPATH -export GT_VERSION='v0.5.0-SNAPSHOT' if ! [[ -v dir_of_github_commons ]]; then dir_of_github_commons="$(cd -- "$(dirname -- "${BASH_SOURCE[0]:-$0}")" >/dev/null && pwd 2>/dev/null)/.." @@ -53,8 +52,27 @@ if ! [[ -v dir_of_tegonal_scripts ]]; then fi function replacePlaceholdersContributorsAgreement() { + if ! (($# == 3)); then + logError "you need to pass three arguments to replacePlaceholdersContributorsAgreement" + echo "1: file represents the 'Contributor Agreement.txt'" + echo "2: projectName the name of the project" + echo "3: owner owner of the project" + printStackTrace + exit 9 + fi + local -r file=$1 + local -r projectName=$2 + local -r owner=$3 + shift 3 || die "could not shift by 3" + perl -0777 -i \ + -pe "s//$projectName/g;" \ + -pe "s//$owner/g;" \ + "$file" +} + +function replacePlaceholdersContributorsAgreement_Tegonal() { if ! (($# == 2)); then - logError "you need to pass two arguments to replacePlaceholdersContributorsAgreement" + logError "you need to pass two arguments to replacePlaceholdersContributorsAgreement_Tegonal" echo "1: file represents the 'Contributor Agreement.txt'" echo "2: projectName the name of the project" printStackTrace @@ -63,12 +81,12 @@ function replacePlaceholdersContributorsAgreement() { local -r file=$1 local -r projectName=$2 shift 2 || die "could not shift by 2" - perl -0777 -i -pe "s//$projectName/g" "$file" + replacePlaceholdersContributorsAgreement "$file" "$projectName" "Tegonal Genossenschaft, Switzerland" } -function replacePlaceholderPullRequestTemplate() { +function replacePlaceholdersPullRequestTemplate() { if ! (($# == 3)); then - logError "you need to pass three arguments to replacePlaceholderPullRequestTemplate" + logError "you need to pass three arguments to replacePlaceholdersPullRequestTemplate" echo "1: file represents the 'PULL_REQUEST_TEMPLATE.md'" echo "2: url the github url" echo "3: latestTag latest tag" @@ -85,7 +103,6 @@ function replacePlaceholderPullRequestTemplate() { "$file" } - function replaceTagInPullRequestTemplate() { if ! (($# == 3)); then logError "you need to pass three arguments to replaceTagInPullRequestTemplate" diff --git a/.gt/remotes/tegonal-gh-commons/pull-hook.sh b/.gt/remotes/tegonal-gh-commons/pull-hook.sh index 6c8c7c44..68302d55 100755 --- a/.gt/remotes/tegonal-gh-commons/pull-hook.sh +++ b/.gt/remotes/tegonal-gh-commons/pull-hook.sh @@ -14,12 +14,12 @@ unset CDPATH TEGONAL_SCRIPTS_LATEST_VERSION="v1.1.0" if ! [[ -v dir_of_tegonal_scripts ]]; then - dir_of_tegonal_scripts="$(cd -- "$(dirname -- "${BASH_SOURCE[0]:-$0}")" >/dev/null && pwd 2>/dev/null)/../../../lib/tegonal-scripts/src" + dir_of_tegonal_scripts="$(cd -- "$(dirname -- "${BASH_SOURCE[0]:-$0}")" >/dev/null && pwd 2>/dev/null)/../../src" source "$dir_of_tegonal_scripts/setup.sh" "$dir_of_tegonal_scripts" fi if ! [[ -v dir_of_github_commons ]]; then - dir_of_github_commons="$dir_of_tegonal_scripts/../../../.gt/remotes/tegonal-gh-commons/lib/src" + dir_of_github_commons="$(cd -- "$(dirname -- "${BASH_SOURCE[0]:-$0}")" >/dev/null && pwd 2>/dev/null)/lib/src" readonly dir_of_github_commons fi @@ -28,22 +28,22 @@ sourceOnce "$dir_of_tegonal_scripts/utility/parse-fn-args.sh" function gt_pullHook_tegonal_gh_commons_before() { local _tag source _target - # shellcheck disable=SC2034 + # shellcheck disable=SC2034 # is passed to parseFnArgs by name local -ra params=(_tag source _target) parseFnArgs params "$@" if [[ $source =~ .*/\.github/Contributor[[:space:]]Agreement\.txt ]]; then - replacePlaceholdersContributorsAgreement "$source" "tegonal-scripts" + replacePlaceholdersContributorsAgreement_Tegonal "$source" "tegonal-scripts" elif [[ $source =~ .*/\.github/PULL_REQUEST_TEMPLATE.md ]]; then # same as in additional-release-files-preparations.sh local -r githubUrl="https://github.com/tegonal/scripts" - replacePlaceholderPullRequestTemplate "$source" "$githubUrl" "$TEGONAL_SCRIPTS_LATEST_VERSION" + replacePlaceholdersPullRequestTemplate "$source" "$githubUrl" "$TEGONAL_SCRIPTS_LATEST_VERSION" fi } function gt_pullHook_tegonal_gh_commons_after() { local _tag source target - # shellcheck disable=SC2034 + # shellcheck disable=SC2034 # is passed to parseFnArgs by name local -ra params=(_tag source target) parseFnArgs params "$@" diff --git a/.gt/remotes/tegonal-gh-commons/pulled.tsv b/.gt/remotes/tegonal-gh-commons/pulled.tsv index 9754754f..d9cb66a1 100644 --- a/.gt/remotes/tegonal-gh-commons/pulled.tsv +++ b/.gt/remotes/tegonal-gh-commons/pulled.tsv @@ -1,11 +1,11 @@ tag file relativeTarget sha512 -v0.8.0 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml 182304c829bf37dc5aea70a988699490f45e6c02c8cb993200070da7c6a845d58623b13350f608f878a212433ace856d6d9bdf37594810463fa873a83719b5b7 -v0.8.0 src/.github/dependabot.yml ../.github/dependabot.yml 37f53a06cd7fce85e108cc23870494acfa807a23b381b659e38903f5476516ccf04e902e8aae64781e178d1bc855c5fcba85e50f035c83e497377babd0234f53 -v0.8.0 src/.github/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md 413c8703156a7ce2196310112cba1a8e62041ba1813c43f75edccb630115ace335576f410fd60d53420b4f877dbe0f067afe9680ff6c41f98fb4c14d57207ff0 -v0.8.0 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb -v0.8.0 src/gt/pull-hook-functions.sh remotes/tegonal-gh-commons/lib/src/gt/pull-hook-functions.sh 26710da23d3480dfd9234567e708f70bfab9e4b29a1bbd6ad0cd66785db82e67e92414a9d2afcaac85fa02e87033f64201da6774efcf6419b1c4b08306510c99 -v0.8.0 src/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt f3b5080e1e1f23e6c5a44a23d0911f55df4e754de3fdbc377d8feb4b6d053482810e02e1bca15764136209dd791666e5d28c672b41c056da33e649b1bd56c806 -v0.8.0 src/gt/signing-key.public.asc signing-key.public.asc f60d6119f8083da722199a90ffb61273d404ba74dd01fe6712d1d1157dd0037e9618eb99f1d7f85450508d25f2ea33f869ee04ef11206c7e420f02b27738ae9b -v0.8.0 src/gt/signing-key.public.asc.actual_sig signing-key.public.asc.actual_sig e854eb98125782f99bab8cf3663392f9e24c8d3c90911e7688152b13550981c47d8e79efbb540521163abcb4c16e33c8e1270a424655057bd224bb9b4dff329d -v0.8.0 src/dotfiles/.editorconfig ../.editorconfig c9892e91ff7c3843e994ac5708b1a04b5c50698ac2bd7a7879663b468a0a8a4f6be4ea26b6bb9bd72dbe3f2324310f2c02293be8516da37cedd9c60e9c756c1f -v0.8.0 src/dotfiles/.shellcheckrc ../.shellcheckrc 5e4b61727cacc856caccc1a3dbf1b261be77ba00784582c9f4c0717d34ab8f9e75689af735afe2eec8a6ce13d5c541eb26c513cec7c656ccb9c3f8e51a8164d9 +v1.0.0 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml 2280253fa8846af3d1af8d4553c90bcae5d5dd6bb68704efa5e7a6bb6c48e42a3d25e55f0320177f97cd8be7b65ba16f1539e8c20218751a11ec48ebb9567f22 +v1.0.0 src/.github/dependabot.yml ../.github/dependabot.yml 056cb647b4978b6dc50dcb7f9378f26c48d35a48e511cd9237bbf64930ab1e70dcc3db9bb4827964c55ee1a65d8d89a8bbd91d3255b4754adffc79b0bd895576 +v1.0.0 src/.github/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md 2a40d61e7f7527f37b66623197393ad8aa1ba7156900595dc9dc32e628c7fdeaa57795238fa89a3cc98cb921149dcc03f3938c917ddf8ce03af0aa9cd4fef829 +v1.0.0 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb +v1.0.0 src/gt/pull-hook-functions.sh remotes/tegonal-gh-commons/lib/src/gt/pull-hook-functions.sh e837edf3d980add930f81062298ce052f053458789a7b09f16c7874bab20ce8a14ac6ee24c4f8dcc923a80e0662a46c42de83fcc755807f3f1a7fa65ff386fc5 +v1.0.0 src/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt 8ae9a779436b7e3c1bb1ebc3317b5d53fca85acfd53ecdb9c22c7bc3ed063f01f8dad2e8cfc5dfea0bde47d61c09e6323f4b1510c96a2bc8ffacf0b572b0e6ab +v1.0.0 src/gt/signing-key.public.asc signing-key.public.asc f60d6119f8083da722199a90ffb61273d404ba74dd01fe6712d1d1157dd0037e9618eb99f1d7f85450508d25f2ea33f869ee04ef11206c7e420f02b27738ae9b +v1.0.0 src/gt/signing-key.public.asc.actual_sig signing-key.public.asc.actual_sig e854eb98125782f99bab8cf3663392f9e24c8d3c90911e7688152b13550981c47d8e79efbb540521163abcb4c16e33c8e1270a424655057bd224bb9b4dff329d +v1.0.0 src/dotfiles/.editorconfig ../.editorconfig 0395c3361c283ca83081823b5e7eaa3b6309e40b0fa66a9905e69a7aa7ca6cb94a313ec95f9292bad144b225af8de4578e6b59a372f0637314fa41cb9e76f7b5 +v1.0.0 src/dotfiles/.shellcheckrc ../.shellcheckrc 7f0ffaa1380a62c015fd01bdc94926ca61bfd824b21828bb597b944fbdc866f684d1e2e167aeb5d49df7f157109ac3fdd36d772e5339695fde1e694fcef011b1 diff --git a/.shellcheckrc b/.shellcheckrc index e53c589b..e0cb0ee6 100644 --- a/.shellcheckrc +++ b/.shellcheckrc @@ -4,7 +4,7 @@ # / __/ -_) _ `/ _ \/ _ \/ _ `/ / It is licensed under Creative Commons Zero v1.0 Universal # \__/\__/\_, /\___/_//_/\_,_/_/ Please report bugs and contribute back your improvements # /___/ -# Version: v0.8.0 +# Version: v1.0.0 # ###################################