Skip to content

Commit 7471f28

Browse files
tegonal-botrobstoll
authored andcommitted
update files of remote tegonal-gh-commons to version v5.0.0 via gt
1 parent d47e444 commit 7471f28

File tree

8 files changed

+46
-34
lines changed

8 files changed

+46
-34
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal
66
# /___/ Please report bugs and contribute back your improvements
77
#
8-
# Version: v4.2.0
8+
# Version: v5.0.0
99
###################################
1010

1111
# https://editorconfig.org

.github/CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal
77
# /___/ Please report bugs and contribute back your improvements
88
#
9-
# Version: v4.2.0
9+
# Version: v5.0.0
1010
###################################
1111
-->
1212
# Contributor Covenant Code of Conduct

.github/workflows/cleanup.yml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal
66
# /___/ Please report bugs and contribute back your improvements
77
#
8-
# Version: v4.2.0
8+
# Version: v5.0.0
99
###################################
1010
name: Cleanup
1111

@@ -27,7 +27,9 @@ jobs:
2727
runs-on: ubuntu-latest
2828
#gt-placeholder-runs-on-end
2929
steps:
30+
#gt-placeholder-gh-action-checkout-start
3031
- uses: actions/checkout@v6
32+
#gt-placeholder-gh-action-checkout-end
3133

3234
#gt-placeholder-install-dependencies-start
3335
#gt-placeholder-install-dependencies-end
@@ -49,21 +51,23 @@ jobs:
4951
run: |
5052
user="${{ github.actor }}"
5153
repo="${{ github.repository }}"
52-
status=$(curl -s -o /dev/null -w '%{http_code}' \
53-
-H "Authorization: Bearer $GITHUB_TOKEN" \
54+
status=$(curl -L -s -o /dev/null -w '%{http_code}' \
55+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
5456
-H "Accept: application/vnd.github+json" \
55-
"https://api.github.com/repos/$repo/collaborators/$user")
57+
"https://api.github.com/repos/$repo/collaborators/$user"
58+
)
5659
echo "status $status for user $user"
5760
if [ "$status" = "204" ]; then
5861
echo "reviewer=$user" >> $GITHUB_OUTPUT
5962
else
6063
echo "reviewer=" >> $GITHUB_OUTPUT
6164
fi
62-
env:
63-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6465
6566
- name: Create Pull Request if necessary
67+
id: create-pr
68+
#gt-placeholder-gh-action-create-pull-request-start
6669
uses: peter-evans/create-pull-request@v7
70+
#gt-placeholder-gh-action-create-pull-request-end
6771
with:
6872
branch: auto-cleanup
6973
title: Auto Cleanup
@@ -72,4 +76,19 @@ jobs:
7276
delete-branch: true
7377
token: ${{ secrets.AUTO_PR_TOKEN }}
7478
push-to-fork: ${{ vars.AUTO_PR_FORK_NAME != '' && vars.AUTO_PR_FORK_NAME || secrets.AUTO_PR_FORK_NAME }}
75-
reviewers: ${{ steps.check-collaborator.outputs.reviewer }}
79+
80+
81+
- name: set reviewer
82+
if: ${{ steps.check-collaborator.outputs.reviewer != '' && steps.check-collaborator.outputs.reviewer != null && steps.create-pr.outputs.pull-request-operation == 'created' }}
83+
run: |
84+
repo="${{ github.repository }}"
85+
status=$(curl -L -s -o /dev/null -w '%{http_code}' \
86+
-X POST \
87+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
88+
-H "Accept: application/vnd.github+json" \
89+
-H "X-GitHub-Api-Version: 2022-11-28" \
90+
https://api.github.com/repos/$repo/pulls/${{steps.create-pr.outputs.pull-request-number}}/requested_reviewers \
91+
-d '{"reviewers":["${{ steps.check-collaborator.outputs.reviewer }}"]}'
92+
)
93+
echo "status $status"
94+
[ "$status" = "201" ]

.github/workflows/matrix_commons.js

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Apache License 2.0
66
// /___/ Please report bugs and contribute back your improvements
77
//
8-
// Version: v4.2.0
8+
// Version: v5.0.0
99
//##################################
1010
// adapted version of https://github.com/vlsi/github-actions-random-matrix/blob/main/examples/matrix.js
1111
// licensed under Apache License 2.0
@@ -32,7 +32,7 @@ const javaDistributionAxis = {
3232
]
3333
};
3434

35-
const javaVersionAxis = javaVersionAxisBuilder(['11', '17', '21']);
35+
const javaVersionAxis = javaVersionAxisBuilder(['11', '17', '21', '25']);
3636

3737
function javaVersionAxisBuilder(values){
3838
return {
@@ -83,19 +83,12 @@ function configureJavaDefaults(matrix, distributionAxis = javaDistributionAxis,
8383
generateUbuntuWindowsRows(matrix);
8484
}
8585

86-
function configureKotlinDefaults(matrix) {
87-
const kotlinJavaDistributionAxis = {
88-
...javaDistributionAxis,
89-
values: javaDistributionAxis.values.filter ( x =>
90-
// seems to have problems with kotlin https://youtrack.jetbrains.com/issue/KT-61836
91-
x != 'semeru'
92-
)
93-
};
94-
configureJavaDefaults(matrix, kotlinJavaDistributionAxis);
86+
function configureKotlinDefaults(matrix, distributionAxis = javaDistributionAxis, versionAxis = javaVersionAxis, operatingSystemAxis = osAxis) {
87+
configureJavaDefaults(matrix, distributionAxis, versionAxis, operatingSystemAxis);
9588
}
9689

97-
function configureScalaDefaults(matrix) {
98-
configureJavaDefaults(matrix);
90+
function configureScalaDefaults(matrix, distributionAxis = javaDistributionAxis, versionAxis = javaVersionAxis, operatingSystemAxis = osAxis) {
91+
configureJavaDefaults(matrix, distributionAxis, versionAxis, operatingSystemAxis);
9992
}
10093

10194
// see https://github.com/actions/toolkit/issues/1218
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#@ Version: 1.2.0
22
tag file relativeTarget tagFilter hasPlaceholder sha512
3-
v4.2.0 src/.github/workflows/matrix_commons.js ../.github/workflows/matrix_commons.js .* false d200a775c748e606a25615e59f721c171cec98b00a112ada8bda7b3a0cca34685fd92320c7f083eca1309932932f04b8a0f1e68e1608344b674df37e3261ecc1
4-
v4.2.0 src/.github/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md .* false 2ab05247219f9816a3be4d76144c647500f2d6044ce917615a726fbd7adcb4f4625772e4ece5bdeca7da9af4ae7d1b03ed96bde2a2a8134afeb1964f0fce3f00
5-
v4.2.0 src/gt/tegonal.data.source.sh ../lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh .* false f324a7f032432f3a465dcd7bb2f27fe1f208c0fedaa9269896a11d16fa1481064a62b9c752416c5fb9e6d0a45e39676e5e7d5398a0b0efb8678a354f2de832d1
6-
v4.2.0 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md .* false 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb
7-
v4.2.0 src/gt/pull-hook-functions.sh ../lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh .* false e89726c87fead32d990867ceece823e0cbab8fc8a73236b45efb2a7b48472569f1ced18c4829135b2fa14f4197a940eaa6e3ece47e6f4b1f40c0ea29f913fed8
8-
v4.2.0 src/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt .* false 0b9a8a954edf302ca5fe0062b7e283d3da06a6bc0631a812663095a78b3a734cefb43b725ae342694d770be75206124c42a1150e168fac33f28aebea0bda35ec
9-
v4.2.0 src/dotfiles/.editorconfig ../.editorconfig .* false de9f9dcd6ff43b0bf183ddb26cc9fae820eecc9ffbee1797e213e0216c42d73606a231613a7872486bb95413ca417255374b388b0e5118f3730e4689ba3d1502
10-
v4.2.0 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml .* true c01d45a29ce50be8851b6c372eda4b50bff77df8f7189c189bc2231ead89dd564eab211fa3bb6d7afbbfbec499fb7b514b30bb6efe4437a97e041836421cac14
11-
v4.2.0 src/dotfiles/.shellcheckrc ../.shellcheckrc .* false 70028305482349a30b61d8b8be828ae0a94b2647f13fc54bf339fa8cc37d6406ba551d4f657596c2820bd0ded81f7440ae1759214857a463fa9c71a897be3dfa
3+
v5.0.0 src/.github/workflows/matrix_commons.js ../.github/workflows/matrix_commons.js .* false bf298f4ce304e75b9ff25b9fa03bff397ada707c764c1fa097c6c0ab544a0629ae31df99caaa482f3068df6bee3ba67229f5d42eb8da08586c77cbf653455aaf
4+
v5.0.0 src/.github/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md .* false c7e479aa809ec55f4390d29863caef7e79679c0d6ad620562f5f660dcdca818045b267ed6907c4e80169c3f2c145806bda793e963cd1e8ae78603d2f9acc90df
5+
v5.0.0 src/gt/tegonal.data.source.sh ../lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh .* false b0891d0f2534305ee270ed45a66f678f625aa06c49c512d8451f594621ee42f6beb500d25a0b069c258455132c388a9ebc9be3db09e2ff6bd66fa6faabb4f092
6+
v5.0.0 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md .* false 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb
7+
v5.0.0 src/gt/pull-hook-functions.sh ../lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh .* false bf7676c3cdf9f94084145f510f68b62b2043957ba90136df7ba1ba9b4efd272d8f3da383da55c7bb44505e25ea3f3c3437e24e9830a63288c135e15f315f15ab
8+
v5.0.0 src/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt .* false 0b9a8a954edf302ca5fe0062b7e283d3da06a6bc0631a812663095a78b3a734cefb43b725ae342694d770be75206124c42a1150e168fac33f28aebea0bda35ec
9+
v5.0.0 src/dotfiles/.editorconfig ../.editorconfig .* false e0782d8f07757102722c4b2fd97f920f79c112cbd9be53716e2db8389bd31433f539f94ed8d806fed4f9cc43363d7caf586fef76ff925f24c1f9cae8e7b06213
10+
v5.0.0 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml .* true e14558b193f6b1ab5baf23364fce18a89d6133d9036103653a583cbc9c394aef0073fafb88b810fc6a2fe85cb5c59c61919b4159cea13d28108452531040004c
11+
v5.0.0 src/dotfiles/.shellcheckrc ../.shellcheckrc .* false d7c68d7e7ebd43ac94b730cee15265f6bc1af0fceac5de09a3631af245e439cf6ee1972a4a8b405548c5fa93490774974f3113491217da01a36655c1e87ee075

.shellcheckrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal
66
# /___/ Please report bugs and contribute back your improvements
77
#
8-
# Version: v4.2.0
8+
# Version: v5.0.0
99
###################################
1010

1111
# SC2250 = Prefer putting braces around variable references even when not strictly required.

lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under Creative Commons Zero v1.0 Universal
77
# /___/ Please report bugs and contribute back your improvements
88
#
9-
# Version: v4.2.0
9+
# Version: v5.0.0
1010
####### Description #############
1111
#
1212
# functions which can be used to update the placeholders in the templates in a gt pull-hook.sh

lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# \__/\__/\_, /\___/_//_/\_,_/_/ It is licensed under European Union Public License 1.2
88
# /___/ Please report bugs and contribute back your improvements
99
#
10-
# Version: v4.2.0
10+
# Version: v5.0.0
1111
####### Description #############
1212
#
1313
# constants intended to be sourced into a function.

0 commit comments

Comments
 (0)