Skip to content

Commit e504758

Browse files
committed
update files of remote tegonal-gh-commons to version v5.0.2 via gt
1 parent 9b11464 commit e504758

7 files changed

Lines changed: 48 additions & 35 deletions

File tree

.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.2
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.2
1010
###################################
1111
-->
1212
# Contributor Covenant Code of Conduct

.github/workflows/cleanup.yml

Lines changed: 29 additions & 9 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.2
99
###################################
1010
name: Cleanup
1111

@@ -16,18 +16,21 @@ on:
1616
- main
1717
#gt-placeholder-trigger-end
1818

19-
#gt-placeholder-permissions-start
19+
#gt-placeholder-permissions.v2-start
2020
permissions:
2121
contents: read
22-
#gt-placeholder-permissions-end
22+
pull-requests: write
23+
#gt-placeholder-permissions.v2-end
2324

2425
jobs:
2526
build:
2627
#gt-placeholder-runs-on-start
2728
runs-on: ubuntu-latest
2829
#gt-placeholder-runs-on-end
2930
steps:
31+
#gt-placeholder-gh-action-checkout-start
3032
- uses: actions/checkout@v6
33+
#gt-placeholder-gh-action-checkout-end
3134

3235
#gt-placeholder-install-dependencies-start
3336
#gt-placeholder-install-dependencies-end
@@ -40,21 +43,23 @@ jobs:
4043
run: |
4144
user="${{ github.actor }}"
4245
repo="${{ github.repository }}"
43-
status=$(curl -s -o /dev/null -w '%{http_code}' \
44-
-H "Authorization: Bearer $GITHUB_TOKEN" \
46+
status=$(curl -L -s -o /dev/null -w '%{http_code}' \
47+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
4548
-H "Accept: application/vnd.github+json" \
46-
"https://api.github.com/repos/$repo/collaborators/$user")
49+
"https://api.github.com/repos/$repo/collaborators/$user"
50+
)
4751
echo "status $status for user $user"
4852
if [ "$status" = "204" ]; then
4953
echo "reviewer=$user" >> $GITHUB_OUTPUT
5054
else
5155
echo "reviewer=" >> $GITHUB_OUTPUT
5256
fi
53-
env:
54-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5557
5658
- name: Create Pull Request if necessary
59+
id: create-pr
60+
#gt-placeholder-gh-action-create-pull-request-start
5761
uses: peter-evans/create-pull-request@v7
62+
#gt-placeholder-gh-action-create-pull-request-end
5863
with:
5964
branch: auto-cleanup
6065
title: Auto Cleanup
@@ -63,4 +68,19 @@ jobs:
6368
delete-branch: true
6469
token: ${{ secrets.AUTO_PR_TOKEN }}
6570
push-to-fork: ${{ vars.AUTO_PR_FORK_NAME != '' && vars.AUTO_PR_FORK_NAME || secrets.AUTO_PR_FORK_NAME }}
66-
reviewers: ${{ steps.check-collaborator.outputs.reviewer }}
71+
72+
73+
- name: set reviewer
74+
if: ${{ steps.check-collaborator.outputs.reviewer != '' && steps.check-collaborator.outputs.reviewer != null && steps.create-pr.outputs.pull-request-operation == 'created' }}
75+
run: |
76+
repo="${{ github.repository }}"
77+
status=$(curl -L -s -o /dev/null -w '%{http_code}' \
78+
-X POST \
79+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
80+
-H "Accept: application/vnd.github+json" \
81+
-H "X-GitHub-Api-Version: 2022-11-28" \
82+
https://api.github.com/repos/$repo/pulls/${{steps.create-pr.outputs.pull-request-number}}/requested_reviewers \
83+
-d '{"reviewers":["${{ steps.check-collaborator.outputs.reviewer }}"]}'
84+
)
85+
echo "status $status"
86+
[ "$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.2
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

.gt/remotes/tegonal-gh-commons/lib/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.2
1010
####### Description #############
1111
#
1212
# functions which can be used to update the placeholders in the templates in a gt pull-hook.sh
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/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md .* false 2ab05247219f9816a3be4d76144c647500f2d6044ce917615a726fbd7adcb4f4625772e4ece5bdeca7da9af4ae7d1b03ed96bde2a2a8134afeb1964f0fce3f00
4-
v4.2.0 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md .* false 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb
5-
v4.2.0 src/gt/pull-hook-functions.sh remotes/tegonal-gh-commons/lib/src/gt/pull-hook-functions.sh .* false e89726c87fead32d990867ceece823e0cbab8fc8a73236b45efb2a7b48472569f1ced18c4829135b2fa14f4197a940eaa6e3ece47e6f4b1f40c0ea29f913fed8
6-
v4.2.0 src/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt .* false 0b9a8a954edf302ca5fe0062b7e283d3da06a6bc0631a812663095a78b3a734cefb43b725ae342694d770be75206124c42a1150e168fac33f28aebea0bda35ec
7-
v4.2.0 src/dotfiles/.editorconfig ../.editorconfig .* false de9f9dcd6ff43b0bf183ddb26cc9fae820eecc9ffbee1797e213e0216c42d73606a231613a7872486bb95413ca417255374b388b0e5118f3730e4689ba3d1502
8-
v4.2.0 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml .* true c01d45a29ce50be8851b6c372eda4b50bff77df8f7189c189bc2231ead89dd564eab211fa3bb6d7afbbfbec499fb7b514b30bb6efe4437a97e041836421cac14
9-
v4.2.0 src/dotfiles/.shellcheckrc ../.shellcheckrc .* false 70028305482349a30b61d8b8be828ae0a94b2647f13fc54bf339fa8cc37d6406ba551d4f657596c2820bd0ded81f7440ae1759214857a463fa9c71a897be3dfa
10-
v4.2.0 src/.github/workflows/matrix_commons.js ../.github/workflows/matrix_commons.js .* false d200a775c748e606a25615e59f721c171cec98b00a112ada8bda7b3a0cca34685fd92320c7f083eca1309932932f04b8a0f1e68e1608344b674df37e3261ecc1
11-
v4.2.0 src/.github/workflows/matrix_builder.js ../.github/workflows/matrix_builder.js .* false b727314caf39cd5509a82d4083c35f68b5278220e704655f58bca3e9f987726ca345ff8544e1b4eedc77a1040622e9edd296145a9d9a27cc628d84768699b4ba
3+
v5.0.2 src/.github/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md .* false 1b1ff080951248ae58c8eadb6ebcc87527d9cdeaefc3ac23362ca791f95d814d55de0abedf8989c646a298e40143e6afb0a43156684c4a37158aeaae0ddb2b05
4+
v5.0.2 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md .* false 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb
5+
v5.0.2 src/gt/pull-hook-functions.sh remotes/tegonal-gh-commons/lib/src/gt/pull-hook-functions.sh .* false fe3912e4fd610d1b677022f00d72d2df65fe5fd6a56889e09ced3158dbbadff0b89cd5e1593300860abd17d159236feffa2de8e2e251c6abd806b9d72c174d75
6+
v5.0.2 src/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt .* false 0b9a8a954edf302ca5fe0062b7e283d3da06a6bc0631a812663095a78b3a734cefb43b725ae342694d770be75206124c42a1150e168fac33f28aebea0bda35ec
7+
v5.0.2 src/dotfiles/.editorconfig ../.editorconfig .* false 826d4ef330e06f5062713317b4ac4c22b30d13a2a16dbd8979fc4459436000466f40bae642866acf63f741dc67daa54dfca7d14e166b08f55f27f6169e8c1227
8+
v5.0.2 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml .* true 340568d8e0fb5e8040aa621af0e9a8752bd160a5a4c4d5a948a92ece5f0630912957952ca3e341096616d4ed3276eb3f18f2f859fb4472c790d8186d20b7e155
9+
v5.0.2 src/dotfiles/.shellcheckrc ../.shellcheckrc .* false 90fce3260027c5368006339165017b80801970288cfe7786c79b98f7d400bed2c8c64c5983ecb94b1d3d91a312867c13eb4d50393296fed242d10d7465181b64
10+
v5.0.2 src/.github/workflows/matrix_commons.js ../.github/workflows/matrix_commons.js .* false f5ae025db5ff8e359f758fb825b4743480568301b3d7dc45a0c3c2ab5442d3b5d3de2756534a61f3741d1a6e17fe85183128b571b98acf1145f5465d48c0192d
11+
v5.0.2 src/.github/workflows/matrix_builder.js ../.github/workflows/matrix_builder.js .* false b727314caf39cd5509a82d4083c35f68b5278220e704655f58bca3e9f987726ca345ff8544e1b4eedc77a1040622e9edd296145a9d9a27cc628d84768699b4ba

.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.2
99
###################################
1010

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

0 commit comments

Comments
 (0)