Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
33 changes: 26 additions & 7 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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" ]
19 changes: 6 additions & 13 deletions .github/workflows/matrix_commons.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -32,7 +32,7 @@ const javaDistributionAxis = {
]
};

const javaVersionAxis = javaVersionAxisBuilder(['11', '17', '21']);
const javaVersionAxis = javaVersionAxisBuilder(['11', '17', '21', '25']);

function javaVersionAxisBuilder(values){
return {
Expand Down Expand Up @@ -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
Expand Down
18 changes: 9 additions & 9 deletions .gt/remotes/tegonal-gh-commons/pulled.tsv
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion .shellcheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down