diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index e98fd7a..fef64a0 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -22,3 +22,12 @@ jobs: env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} + - name: SonarQube Quality Gate check + id: sonarqube-quality-gate-check + uses: sonarsource/sonarqube-quality-gate-action@master + timeout-minutes: 5 + env: + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }} #OPTIONAL + - name: "Example show SonarQube Quality Gate Status value" + run: echo "The Quality Gate status is ${{ steps.sonarqube-quality-gate-check.outputs.quality-gate-status }}" \ No newline at end of file diff --git a/src/python/badfortune.py b/src/python/badfortune.py index b0900dc..104a00a 100644 --- a/src/python/badfortune.py +++ b/src/python/badfortune.py @@ -84,6 +84,12 @@ def get(filename): L=L[:-1] return string.join(L, '\n') +def pull_request_decoration_test(): + print 'pr decoration test' + +def pull_request_decoration_test_2(): + print 'pr decoration test' + if __name__ == '__main__': import sys if len(sys.argv) == 1: