From 823499efa6bbe4e4478eb1730f5b2c7daf18cf93 Mon Sep 17 00:00:00 2001 From: tegonal-bot Date: Sun, 26 Oct 2025 14:02:46 +0000 Subject: [PATCH] update files of remote tegonal-gh-commons to version v4.2.0 via gt --- .editorconfig | 2 +- .github/CODE_OF_CONDUCT.md | 2 +- .github/workflows/cleanup.yml | 37 ++++++++++++++++++- .gt/remotes/tegonal-gh-commons/pulled.tsv | 20 +++++----- .shellcheckrc | 2 +- .../src/gt/pull-hook-functions.sh | 2 +- .../src/gt/tegonal.data.source.sh | 2 +- 7 files changed, 50 insertions(+), 17 deletions(-) diff --git a/.editorconfig b/.editorconfig index 8b64916..6137771 100644 --- a/.editorconfig +++ b/.editorconfig @@ -5,7 +5,7 @@ # \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal # /___/ Please report bugs and contribute back your improvements # -# Version: v3.1.0 +# Version: v4.2.0 ################################### # https://editorconfig.org diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index 6911567..6cd282e 100644 --- a/.github/CODE_OF_CONDUCT.md +++ b/.github/CODE_OF_CONDUCT.md @@ -6,7 +6,7 @@ # \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal # /___/ Please report bugs and contribute back your improvements # -# Version: v3.1.0 +# Version: v4.2.0 ################################### --> # Contributor Covenant Code of Conduct diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index f31fa64..27a6a5b 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -5,22 +5,54 @@ # \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal # /___/ Please report bugs and contribute back your improvements # -# Version: v3.1.0 +# Version: v4.2.0 ################################### name: Cleanup +#gt-placeholder-trigger-start on: push: branches: - main +#gt-placeholder-trigger-end + +#gt-placeholder-permissions-start +permissions: + contents: read +#gt-placeholder-permissions-end jobs: build: + #gt-placeholder-runs-on-start runs-on: ubuntu-latest + #gt-placeholder-runs-on-end steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 + + #gt-placeholder-install-dependencies-start + #gt-placeholder-install-dependencies-end + - name: Cleanup Sources run: ./scripts/cleanup-on-push-to-main.sh + + - name: Check if actor is collaborator + id: check-collaborator + run: | + user="${{ github.actor }}" + repo="${{ github.repository }}" + status=$(curl -s -o /dev/null -w '%{http_code}' \ + -H "Authorization: Bearer $GITHUB_TOKEN" \ + -H "Accept: application/vnd.github+json" \ + "https://api.github.com/repos/$repo/collaborators/$user") + echo "status $status for user $user" + if [ "$status" = "204" ]; then + echo "reviewer=$user" >> $GITHUB_OUTPUT + else + echo "reviewer=" >> $GITHUB_OUTPUT + fi + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Create Pull Request if necessary uses: peter-evans/create-pull-request@v7 with: @@ -31,3 +63,4 @@ jobs: delete-branch: true token: ${{ secrets.AUTO_PR_TOKEN }} push-to-fork: ${{ vars.AUTO_PR_FORK_NAME != '' && vars.AUTO_PR_FORK_NAME || secrets.AUTO_PR_FORK_NAME }} + reviewers: ${{ steps.check-collaborator.outputs.reviewer }} diff --git a/.gt/remotes/tegonal-gh-commons/pulled.tsv b/.gt/remotes/tegonal-gh-commons/pulled.tsv index bc66cba..44dcd66 100644 --- a/.gt/remotes/tegonal-gh-commons/pulled.tsv +++ b/.gt/remotes/tegonal-gh-commons/pulled.tsv @@ -1,10 +1,10 @@ -#@ Version: 1.1.0 -tag file relativeTarget tagFilter sha512 -v3.1.0 src/.github/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md .* fab8a286b8a62ce9e2567b6f224bc0236db0e827996f5175c541fe137dfbd4b5659085c59b50a259d0daa8f9c3a12fe6f5568b61fc44a51f224c5710779dc332 -v3.1.0 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md .* 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb -v3.1.0 src/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt .* 0b9a8a954edf302ca5fe0062b7e283d3da06a6bc0631a812663095a78b3a734cefb43b725ae342694d770be75206124c42a1150e168fac33f28aebea0bda35ec -v3.1.0 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml .* dede0d9d3b5ca662578cb9ccb004c10504da50bca2fb8785618ebfd129a8850625f5dcd265c326a201e760180fb8d20ce71812cc7fcbbc415555c10e69870f66 -v3.1.0 src/dotfiles/.editorconfig ../.editorconfig .* 7e25835577cdc5bb812b04ef8bcfc3937129bb1078c90772884ef24433797ce22f7d429f129dc93e8983fcf4cb4b2fd81f4fb917322c8942c0b8bc76cd3781fa -v3.1.0 src/dotfiles/.shellcheckrc ../.shellcheckrc .* 06b373f5f2610677ea71a015c0a1057936d3c8339d535eb4bad6daedc9294b14325ea34f3e36f5f9ca947807823356ea41a749764692f34ccfe34a4c46d662fb -v3.1.0 src/gt/pull-hook-functions.sh ../lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh .* 91c008ad7dc031aef14c20e44040039fe3c43c1d211149458b724216185e7c216a53e5c133aee949517d8097568e27e7236631045d152cb1cb3fbc7f3f1da1fa -v3.1.0 src/gt/tegonal.data.source.sh ../lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh .* 3fd2975d13a55491079ce2d706454943d22ae0f10f041851ef4f4bca1914754fcbf5aa5e2d469c4dcb3769b903a7853d43f5c25230cf64731a22429bfd968346 +#@ Version: 1.2.0 +tag file relativeTarget tagFilter hasPlaceholder sha512 +v4.2.0 src/.github/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md .* false 2ab05247219f9816a3be4d76144c647500f2d6044ce917615a726fbd7adcb4f4625772e4ece5bdeca7da9af4ae7d1b03ed96bde2a2a8134afeb1964f0fce3f00 +v4.2.0 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md .* false 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb +v4.2.0 src/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt .* false 0b9a8a954edf302ca5fe0062b7e283d3da06a6bc0631a812663095a78b3a734cefb43b725ae342694d770be75206124c42a1150e168fac33f28aebea0bda35ec +v4.2.0 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml .* true c01d45a29ce50be8851b6c372eda4b50bff77df8f7189c189bc2231ead89dd564eab211fa3bb6d7afbbfbec499fb7b514b30bb6efe4437a97e041836421cac14 +v4.2.0 src/dotfiles/.editorconfig ../.editorconfig .* false de9f9dcd6ff43b0bf183ddb26cc9fae820eecc9ffbee1797e213e0216c42d73606a231613a7872486bb95413ca417255374b388b0e5118f3730e4689ba3d1502 +v4.2.0 src/dotfiles/.shellcheckrc ../.shellcheckrc .* false 70028305482349a30b61d8b8be828ae0a94b2647f13fc54bf339fa8cc37d6406ba551d4f657596c2820bd0ded81f7440ae1759214857a463fa9c71a897be3dfa +v4.2.0 src/gt/pull-hook-functions.sh ../lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh .* false e89726c87fead32d990867ceece823e0cbab8fc8a73236b45efb2a7b48472569f1ced18c4829135b2fa14f4197a940eaa6e3ece47e6f4b1f40c0ea29f913fed8 +v4.2.0 src/gt/tegonal.data.source.sh ../lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh .* false f324a7f032432f3a465dcd7bb2f27fe1f208c0fedaa9269896a11d16fa1481064a62b9c752416c5fb9e6d0a45e39676e5e7d5398a0b0efb8678a354f2de832d1 diff --git a/.shellcheckrc b/.shellcheckrc index 65a4d4e..e083ae2 100644 --- a/.shellcheckrc +++ b/.shellcheckrc @@ -5,7 +5,7 @@ # \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal # /___/ Please report bugs and contribute back your improvements # -# Version: v3.1.0 +# Version: v4.2.0 ################################### # SC2250 = Prefer putting braces around variable references even when not strictly required. diff --git a/lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh b/lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh index 06742f8..d2f26a9 100644 --- a/lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh +++ b/lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh @@ -6,7 +6,7 @@ # \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal # /___/ Please report bugs and contribute back your improvements # -# Version: v3.1.0 +# Version: v4.2.0 ####### Description ############# # # functions which can be used to update the placeholders in the templates in a gt pull-hook.sh diff --git a/lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh b/lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh index de85769..c0dd865 100644 --- a/lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh +++ b/lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh @@ -7,7 +7,7 @@ # \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under European Union Public License 1.2 # /___/ Please report bugs and contribute back your improvements # -# Version: v3.1.0 +# Version: v4.2.0 ####### Description ############# # # constants intended to be sourced into a function.