From e1bdf1bedf694c58ebcd630212f44e1c4fbf0981 Mon Sep 17 00:00:00 2001 From: Austin Smith Date: Thu, 24 Aug 2023 17:10:40 -0500 Subject: [PATCH 1/2] test pr decoration --- .github/workflows/sonar.yml | 9 +++++++++ src/python/badfortune.py | 3 +++ 2 files changed, 12 insertions(+) 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..6ffbb88 100644 --- a/src/python/badfortune.py +++ b/src/python/badfortune.py @@ -84,6 +84,9 @@ def get(filename): L=L[:-1] return string.join(L, '\n') +def pull_request_decoration_test(): + print 'pr decoration test' + if __name__ == '__main__': import sys if len(sys.argv) == 1: From 2aaf85918c28f2114add7ae8f4e260e5dbb2641e Mon Sep 17 00:00:00 2001 From: Austin Smith Date: Thu, 24 Aug 2023 17:16:31 -0500 Subject: [PATCH 2/2] pr decoration test --- src/python/badfortune.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/python/badfortune.py b/src/python/badfortune.py index 6ffbb88..4b38fcd 100644 --- a/src/python/badfortune.py +++ b/src/python/badfortune.py @@ -87,6 +87,9 @@ def get(filename): def pull_request_decoration_test(): print 'pr decoration test' +def pull_request_decoration_test2(): + print 'pr decoration test' + if __name__ == '__main__': import sys if len(sys.argv) == 1: