Skip to content

Commit

Permalink
limit push users [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Apon77 committed Sep 24, 2021
1 parent dc02136 commit e4669df
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,17 @@ if [[ $BRANCH == *pull/* ]]; then
cd /tmp/cirrus-ci-build
PR_NUM=$(echo $BRANCH|awk -F '/' '{print $2}')
AUTHOR=$(gh pr view $PR_NUM|grep author| awk '{print $2}')
for value in ajitlenka30 basic-general ZunayedDihan Badroel07 deadline646 STRK-ND ECr34T1v3 ASHISH11948 Ravithakral SumonSN
for value in ajitlenka30 basic-general ZunayedDihan Badroel07 Ravithakral SumonSN
do
if [[ $AUTHOR == $value ]]; then
echo Please check \#pr instruction in telegram group.; exit 1; fi
done
fi

if [[ $CIRRUS_USER_PERMISSION == write ]]; then
if [ -z "$CIRRUS_PR" ]; then echo fine; else
echo You are push user. Please follow pinned message in push group.; exit 1
fi
fi

echo Test passed

0 comments on commit e4669df

Please sign in to comment.