Skip to content

Commit 66acdda

Browse files
[fix] Remove unnecessary branch name when from gating script invocation
1 parent e1c7099 commit 66acdda

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/codechecker_pr_analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
PR_NUMBER: ${{ github.event.number }}
3333
run: |
3434
echo "{\"client_autologin\" : true,\"credentials\": {\"https://codechecker-demo.eastus.cloudapp.azure.com\": \"demo:demo\"}}" > ~/.codechecker.passwords.json
35-
bash ./ci/github_analysis/codechecker_gate_pr.sh $GITHUB_REF
35+
bash ./ci/github_analysis/codechecker_gate_pr.sh

ci/github_analysis/codechecker_gate_pr.sh

100644100755
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22

33
CC_URL="https://codechecker-demo.eastus.cloudapp.azure.com/codechecker"
44

5-
if [ "$#" -ne 1 ]; then
6-
echo "<PR_NAME> is missing"
7-
fi
8-
95
./ci/github_analysis/pylint_analyze.sh
106
report-converter -c -t pylint -o ./reports-pylint ./pylint-reports.json
117
CodeChecker cmd diff --url "$CC_URL" -b master -n ./reports-pylint --new
128
if [ "$?" -ne 0 ]; then
13-
echo "ERROR. YOUR PR FAILED GATING! Please check new reports at $CC_URL/reports?run=master&newcheck=$1"
9+
echo "ERROR. YOUR PR FAILED GATING!"
1410
exit 1
1511
else
1612
echo "Gating successful. No new report found. Your PR is ready to be merged."

0 commit comments

Comments
 (0)