From 63c4e1ee1c07654e7eeac4f8057cef9650d123f6 Mon Sep 17 00:00:00 2001 From: tegonal-bot Date: Mon, 24 Nov 2025 04:10:17 +0000 Subject: [PATCH] update files of remote tegonal-gh-commons to version v5.0.0 via gt --- .editorconfig | 2 +- .github/CODE_OF_CONDUCT.md | 2 +- .github/workflows/cleanup.yml | 33 +++++++++++++++---- .github/workflows/matrix_commons.js | 19 ++++------- .gt/remotes/tegonal-gh-commons/pulled.tsv | 18 +++++----- .shellcheckrc | 2 +- .../src/gt/pull-hook-functions.sh | 2 +- .../src/gt/tegonal.data.source.sh | 2 +- 8 files changed, 46 insertions(+), 34 deletions(-) diff --git a/.editorconfig b/.editorconfig index 6137771..cb3dcfc 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: v4.2.0 +# Version: v5.0.0 ################################### # https://editorconfig.org diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md index 6cd282e..3ae1bd4 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: v4.2.0 +# Version: v5.0.0 ################################### --> # Contributor Covenant Code of Conduct diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index cd2a715..7b0342a 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -5,7 +5,7 @@ # \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal # /___/ Please report bugs and contribute back your improvements # -# Version: v4.2.0 +# Version: v5.0.0 ################################### name: Cleanup @@ -27,7 +27,9 @@ jobs: runs-on: ubuntu-latest #gt-placeholder-runs-on-end steps: + #gt-placeholder-gh-action-checkout-start - uses: actions/checkout@v6 + #gt-placeholder-gh-action-checkout-end #gt-placeholder-install-dependencies-start #gt-placeholder-install-dependencies-end @@ -49,21 +51,23 @@ jobs: run: | user="${{ github.actor }}" repo="${{ github.repository }}" - status=$(curl -s -o /dev/null -w '%{http_code}' \ - -H "Authorization: Bearer $GITHUB_TOKEN" \ + status=$(curl -L -s -o /dev/null -w '%{http_code}' \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ -H "Accept: application/vnd.github+json" \ - "https://api.github.com/repos/$repo/collaborators/$user") + "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 + id: create-pr + #gt-placeholder-gh-action-create-pull-request-start uses: peter-evans/create-pull-request@v7 + #gt-placeholder-gh-action-create-pull-request-end with: branch: auto-cleanup title: Auto Cleanup @@ -72,4 +76,19 @@ 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 }} + + + - name: set reviewer + if: ${{ steps.check-collaborator.outputs.reviewer != '' && steps.check-collaborator.outputs.reviewer != null && steps.create-pr.outputs.pull-request-operation == 'created' }} + run: | + repo="${{ github.repository }}" + status=$(curl -L -s -o /dev/null -w '%{http_code}' \ + -X POST \ + -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + https://api.github.com/repos/$repo/pulls/${{steps.create-pr.outputs.pull-request-number}}/requested_reviewers \ + -d '{"reviewers":["${{ steps.check-collaborator.outputs.reviewer }}"]}' + ) + echo "status $status" + [ "$status" = "201" ] diff --git a/.github/workflows/matrix_commons.js b/.github/workflows/matrix_commons.js index d93a350..5e5a09f 100644 --- a/.github/workflows/matrix_commons.js +++ b/.github/workflows/matrix_commons.js @@ -5,7 +5,7 @@ // \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Apache License 2.0 // /___/ Please report bugs and contribute back your improvements // -// Version: v4.2.0 +// Version: v5.0.0 //################################## // adapted version of https://github.com/vlsi/github-actions-random-matrix/blob/main/examples/matrix.js // licensed under Apache License 2.0 @@ -32,7 +32,7 @@ const javaDistributionAxis = { ] }; -const javaVersionAxis = javaVersionAxisBuilder(['11', '17', '21']); +const javaVersionAxis = javaVersionAxisBuilder(['11', '17', '21', '25']); function javaVersionAxisBuilder(values){ return { @@ -83,19 +83,12 @@ function configureJavaDefaults(matrix, distributionAxis = javaDistributionAxis, generateUbuntuWindowsRows(matrix); } -function configureKotlinDefaults(matrix) { - const kotlinJavaDistributionAxis = { - ...javaDistributionAxis, - values: javaDistributionAxis.values.filter ( x => - // seems to have problems with kotlin https://youtrack.jetbrains.com/issue/KT-61836 - x != 'semeru' - ) - }; - configureJavaDefaults(matrix, kotlinJavaDistributionAxis); +function configureKotlinDefaults(matrix, distributionAxis = javaDistributionAxis, versionAxis = javaVersionAxis, operatingSystemAxis = osAxis) { + configureJavaDefaults(matrix, distributionAxis, versionAxis, operatingSystemAxis); } -function configureScalaDefaults(matrix) { - configureJavaDefaults(matrix); +function configureScalaDefaults(matrix, distributionAxis = javaDistributionAxis, versionAxis = javaVersionAxis, operatingSystemAxis = osAxis) { + configureJavaDefaults(matrix, distributionAxis, versionAxis, operatingSystemAxis); } // see https://github.com/actions/toolkit/issues/1218 diff --git a/.gt/remotes/tegonal-gh-commons/pulled.tsv b/.gt/remotes/tegonal-gh-commons/pulled.tsv index 3837847..5cf9cdf 100644 --- a/.gt/remotes/tegonal-gh-commons/pulled.tsv +++ b/.gt/remotes/tegonal-gh-commons/pulled.tsv @@ -1,11 +1,11 @@ #@ Version: 1.2.0 tag file relativeTarget tagFilter hasPlaceholder sha512 -v4.2.0 src/.github/workflows/matrix_commons.js ../.github/workflows/matrix_commons.js .* false d200a775c748e606a25615e59f721c171cec98b00a112ada8bda7b3a0cca34685fd92320c7f083eca1309932932f04b8a0f1e68e1608344b674df37e3261ecc1 -v4.2.0 src/.github/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md .* false 2ab05247219f9816a3be4d76144c647500f2d6044ce917615a726fbd7adcb4f4625772e4ece5bdeca7da9af4ae7d1b03ed96bde2a2a8134afeb1964f0fce3f00 -v4.2.0 src/gt/tegonal.data.source.sh ../lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh .* false f324a7f032432f3a465dcd7bb2f27fe1f208c0fedaa9269896a11d16fa1481064a62b9c752416c5fb9e6d0a45e39676e5e7d5398a0b0efb8678a354f2de832d1 -v4.2.0 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md .* false 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb -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/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt .* false 0b9a8a954edf302ca5fe0062b7e283d3da06a6bc0631a812663095a78b3a734cefb43b725ae342694d770be75206124c42a1150e168fac33f28aebea0bda35ec -v4.2.0 src/dotfiles/.editorconfig ../.editorconfig .* false de9f9dcd6ff43b0bf183ddb26cc9fae820eecc9ffbee1797e213e0216c42d73606a231613a7872486bb95413ca417255374b388b0e5118f3730e4689ba3d1502 -v4.2.0 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml .* true c01d45a29ce50be8851b6c372eda4b50bff77df8f7189c189bc2231ead89dd564eab211fa3bb6d7afbbfbec499fb7b514b30bb6efe4437a97e041836421cac14 -v4.2.0 src/dotfiles/.shellcheckrc ../.shellcheckrc .* false 70028305482349a30b61d8b8be828ae0a94b2647f13fc54bf339fa8cc37d6406ba551d4f657596c2820bd0ded81f7440ae1759214857a463fa9c71a897be3dfa +v5.0.0 src/.github/workflows/matrix_commons.js ../.github/workflows/matrix_commons.js .* false bf298f4ce304e75b9ff25b9fa03bff397ada707c764c1fa097c6c0ab544a0629ae31df99caaa482f3068df6bee3ba67229f5d42eb8da08586c77cbf653455aaf +v5.0.0 src/.github/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md .* false c7e479aa809ec55f4390d29863caef7e79679c0d6ad620562f5f660dcdca818045b267ed6907c4e80169c3f2c145806bda793e963cd1e8ae78603d2f9acc90df +v5.0.0 src/gt/tegonal.data.source.sh ../lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh .* false b0891d0f2534305ee270ed45a66f678f625aa06c49c512d8451f594621ee42f6beb500d25a0b069c258455132c388a9ebc9be3db09e2ff6bd66fa6faabb4f092 +v5.0.0 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md .* false 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb +v5.0.0 src/gt/pull-hook-functions.sh ../lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh .* false bf7676c3cdf9f94084145f510f68b62b2043957ba90136df7ba1ba9b4efd272d8f3da383da55c7bb44505e25ea3f3c3437e24e9830a63288c135e15f315f15ab +v5.0.0 src/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt .* false 0b9a8a954edf302ca5fe0062b7e283d3da06a6bc0631a812663095a78b3a734cefb43b725ae342694d770be75206124c42a1150e168fac33f28aebea0bda35ec +v5.0.0 src/dotfiles/.editorconfig ../.editorconfig .* false e0782d8f07757102722c4b2fd97f920f79c112cbd9be53716e2db8389bd31433f539f94ed8d806fed4f9cc43363d7caf586fef76ff925f24c1f9cae8e7b06213 +v5.0.0 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml .* true e14558b193f6b1ab5baf23364fce18a89d6133d9036103653a583cbc9c394aef0073fafb88b810fc6a2fe85cb5c59c61919b4159cea13d28108452531040004c +v5.0.0 src/dotfiles/.shellcheckrc ../.shellcheckrc .* false d7c68d7e7ebd43ac94b730cee15265f6bc1af0fceac5de09a3631af245e439cf6ee1972a4a8b405548c5fa93490774974f3113491217da01a36655c1e87ee075 diff --git a/.shellcheckrc b/.shellcheckrc index e083ae2..b99d4f8 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: v4.2.0 +# Version: v5.0.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 d2f26a9..088923d 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: v4.2.0 +# Version: v5.0.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 c0dd865..8fa2687 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: v4.2.0 +# Version: v5.0.0 ####### Description ############# # # constants intended to be sourced into a function.