Skip to content

Commit fa95c43

Browse files
committed
wrong formatting on purpose to see cleanup.yml in action
1 parent 8519068 commit fa95c43

2 files changed

Lines changed: 5 additions & 19 deletions

File tree

.github/workflows/cleanup.yml

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,6 @@ jobs:
7575
commit-message: auto cleanup sources
7676
body: Looks like someone forgot to run ./scripts/cleanup-on-push-to-main.sh before committing. I did it for them :)
7777
delete-branch: true
78-
token: ${{ secrets.AUTO_PR_TOKEN }}
78+
branch-token: ${{ secrets.AUTO_PR_TOKEN }}
7979
push-to-fork: ${{ vars.AUTO_PR_FORK_NAME != '' && vars.AUTO_PR_FORK_NAME || secrets.AUTO_PR_FORK_NAME }}
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" ]
80+
reviewers: ${{ steps.check-collaborator.outputs.reviewer }}

scripts/run-shellcheck.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ function customRunShellcheck() {
2727
declare srcDir="$scriptsDir/../src"
2828

2929
# shellcheck disable=SC2034 # is passed by name to runShellcheck
30-
declare -a dirs=("$scriptsDir")
31-
declare sourcePath="$srcDir:$scriptsDir:$dir_of_tegonal_scripts"
32-
runShellcheck dirs "$sourcePath"
30+
declare -a dirs=("$scriptsDir")
31+
declare sourcePath="$srcDir:$scriptsDir:$dir_of_tegonal_scripts"
32+
runShellcheck dirs "$sourcePath"
3333

3434
local -r gh_commons_dir="$scriptsDir/../.gt/remotes/tegonal-gh-commons"
3535
logInfo "analysing $gh_commons_dir/pull-hook.sh"

0 commit comments

Comments
 (0)