Skip to content

Commit 44354c2

Browse files
committed
update files of remote tegonal-gh-commons to version v5.0.0 via gt
1 parent 906e068 commit 44354c2

File tree

7 files changed

+70
-17
lines changed

7 files changed

+70
-17
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: v3.1.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: v3.1.0
9+
# Version: v5.0.0
1010
###################################
1111
-->
1212
# Contributor Covenant Code of Conduct

.github/workflows/cleanup.yml

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

12+
#gt-placeholder-trigger-start
1213
on:
1314
push:
1415
branches:
1516
- main
17+
#gt-placeholder-trigger-end
18+
19+
#gt-placeholder-permissions-start
20+
permissions:
21+
contents: read
22+
pull-requests: write
23+
#gt-placeholder-permissions-end
1624

1725
jobs:
1826
build:
27+
#gt-placeholder-runs-on-start
1928
runs-on: ubuntu-latest
29+
#gt-placeholder-runs-on-end
2030
steps:
21-
- uses: actions/checkout@v4
31+
#gt-placeholder-gh-action-checkout-start
32+
- uses: actions/checkout@v6
33+
#gt-placeholder-gh-action-checkout-end
34+
35+
#gt-placeholder-install-dependencies-start
36+
#gt-placeholder-install-dependencies-end
37+
2238
- name: Cleanup Sources
2339
run: ./scripts/cleanup-on-push-to-main.sh
40+
41+
- name: Check if actor is collaborator
42+
id: check-collaborator
43+
run: |
44+
user="${{ github.actor }}"
45+
repo="${{ github.repository }}"
46+
status=$(curl -L -s -o /dev/null -w '%{http_code}' \
47+
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
48+
-H "Accept: application/vnd.github+json" \
49+
"https://api.github.com/repos/$repo/collaborators/$user"
50+
)
51+
echo "status $status for user $user"
52+
if [ "$status" = "204" ]; then
53+
echo "reviewer=$user" >> $GITHUB_OUTPUT
54+
else
55+
echo "reviewer=" >> $GITHUB_OUTPUT
56+
fi
57+
2458
- name: Create Pull Request if necessary
59+
id: create-pr
60+
#gt-placeholder-gh-action-create-pull-request-start
2561
uses: peter-evans/create-pull-request@v7
62+
#gt-placeholder-gh-action-create-pull-request-end
2663
with:
2764
branch: auto-cleanup
2865
title: Auto Cleanup
@@ -31,3 +68,19 @@ jobs:
3168
delete-branch: true
3269
token: ${{ secrets.AUTO_PR_TOKEN }}
3370
push-to-fork: ${{ vars.AUTO_PR_FORK_NAME != '' && vars.AUTO_PR_FORK_NAME || secrets.AUTO_PR_FORK_NAME }}
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" ]
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#@ Version: 1.1.0
2-
tag file relativeTarget tagFilter sha512
3-
v3.1.0 src/.github/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md .* fab8a286b8a62ce9e2567b6f224bc0236db0e827996f5175c541fe137dfbd4b5659085c59b50a259d0daa8f9c3a12fe6f5568b61fc44a51f224c5710779dc332
4-
v3.1.0 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md .* 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb
5-
v3.1.0 src/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt .* 0b9a8a954edf302ca5fe0062b7e283d3da06a6bc0631a812663095a78b3a734cefb43b725ae342694d770be75206124c42a1150e168fac33f28aebea0bda35ec
6-
v3.1.0 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml .* dede0d9d3b5ca662578cb9ccb004c10504da50bca2fb8785618ebfd129a8850625f5dcd265c326a201e760180fb8d20ce71812cc7fcbbc415555c10e69870f66
7-
v3.1.0 src/dotfiles/.editorconfig ../.editorconfig .* 7e25835577cdc5bb812b04ef8bcfc3937129bb1078c90772884ef24433797ce22f7d429f129dc93e8983fcf4cb4b2fd81f4fb917322c8942c0b8bc76cd3781fa
8-
v3.1.0 src/dotfiles/.shellcheckrc ../.shellcheckrc .* 06b373f5f2610677ea71a015c0a1057936d3c8339d535eb4bad6daedc9294b14325ea34f3e36f5f9ca947807823356ea41a749764692f34ccfe34a4c46d662fb
9-
v3.1.0 src/gt/pull-hook-functions.sh ../lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh .* 91c008ad7dc031aef14c20e44040039fe3c43c1d211149458b724216185e7c216a53e5c133aee949517d8097568e27e7236631045d152cb1cb3fbc7f3f1da1fa
10-
v3.1.0 src/gt/tegonal.data.source.sh ../lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh .* 3fd2975d13a55491079ce2d706454943d22ae0f10f041851ef4f4bca1914754fcbf5aa5e2d469c4dcb3769b903a7853d43f5c25230cf64731a22429bfd968346
1+
#@ Version: 1.2.0
2+
tag file relativeTarget tagFilter hasPlaceholder sha512
3+
v5.0.0 src/.github/CODE_OF_CONDUCT.md ../.github/CODE_OF_CONDUCT.md .* false c7e479aa809ec55f4390d29863caef7e79679c0d6ad620562f5f660dcdca818045b267ed6907c4e80169c3f2c145806bda793e963cd1e8ae78603d2f9acc90df
4+
v5.0.0 src/.github/PULL_REQUEST_TEMPLATE.md ../.github/PULL_REQUEST_TEMPLATE.md .* false 9112d1ea1f72ea250cdfe686fc152e63f2e0cdcea9c46935289471d7a3f54c35af8a3f283570f5d863e936c7782939c7b1548cb7d4ccda712bbf9314926f58cb
5+
v5.0.0 src/.github/Contributor Agreement.txt ../.github/Contributor Agreement.txt .* false 0b9a8a954edf302ca5fe0062b7e283d3da06a6bc0631a812663095a78b3a734cefb43b725ae342694d770be75206124c42a1150e168fac33f28aebea0bda35ec
6+
v5.0.0 src/.github/workflows/cleanup.yml ../.github/workflows/cleanup.yml .* true e14558b193f6b1ab5baf23364fce18a89d6133d9036103653a583cbc9c394aef0073fafb88b810fc6a2fe85cb5c59c61919b4159cea13d28108452531040004c
7+
v5.0.0 src/dotfiles/.editorconfig ../.editorconfig .* false e0782d8f07757102722c4b2fd97f920f79c112cbd9be53716e2db8389bd31433f539f94ed8d806fed4f9cc43363d7caf586fef76ff925f24c1f9cae8e7b06213
8+
v5.0.0 src/dotfiles/.shellcheckrc ../.shellcheckrc .* false d7c68d7e7ebd43ac94b730cee15265f6bc1af0fceac5de09a3631af245e439cf6ee1972a4a8b405548c5fa93490774974f3113491217da01a36655c1e87ee075
9+
v5.0.0 src/gt/pull-hook-functions.sh ../lib/tegonal-gh-commons/src/gt/pull-hook-functions.sh .* false bf7676c3cdf9f94084145f510f68b62b2043957ba90136df7ba1ba9b4efd272d8f3da383da55c7bb44505e25ea3f3c3437e24e9830a63288c135e15f315f15ab
10+
v5.0.0 src/gt/tegonal.data.source.sh ../lib/tegonal-gh-commons/src/gt/tegonal.data.source.sh .* false b0891d0f2534305ee270ed45a66f678f625aa06c49c512d8451f594621ee42f6beb500d25a0b069c258455132c388a9ebc9be3db09e2ff6bd66fa6faabb4f092

.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: v3.1.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: v3.1.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: v3.1.0
10+
# Version: v5.0.0
1111
####### Description #############
1212
#
1313
# constants intended to be sourced into a function.

0 commit comments

Comments
 (0)