Tweaking PR ref.
This commit is contained in:
@@ -117,19 +117,19 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
json: ${{ steps.json-cleanup.outputs.conditions }}
|
json: ${{ steps.json-cleanup.outputs.conditions }}
|
||||||
|
|
||||||
- name: Post SonarQube Results as Comment
|
# - name: Post SonarQube Results as Comment
|
||||||
run: |
|
# run: |
|
||||||
curl ${{ vars.RINOA_GITEA_URL }}/api/v1/repos/${{ github.repository }}/pulls/${{ github.pull_request.number }}/reviews \
|
# curl ${{ vars.RINOA_GITEA_URL }}/api/v1/repos/${{ github.repository }}/pulls/${{ github.pull_request.number }}/reviews \
|
||||||
-X POST \
|
# -X POST \
|
||||||
-H 'Accept: application/json' \
|
# -H 'Accept: application/json' \
|
||||||
-H 'Authorization: token ${{ secrets.BOT_GITEA_TOKEN }}' \
|
# -H 'Authorization: token ${{ secrets.BOT_GITEA_TOKEN }}' \
|
||||||
-H 'Content-Type: application/json' \
|
# -H 'Content-Type: application/json' \
|
||||||
-d '{
|
# -d '{
|
||||||
"body": "SonarQube analysis results:\n\n- Bugs: ${{ env.SONAR_BUGS }}\n- Vulnerabilities: ${{ env.SONAR_VULNERABILITIES }}\n- Code Smells: ${{ env.SONAR_CODE_SMELLS }}\n- Coverage: ${{ env.SONAR_COVERAGE }}%\n- Duplications: ${{ env.SONAR_DUPLICATIONS }}%\n- Quality Gate Status: ${{ env.SONAR_QUALITY_GATE_STATUS }}"
|
# "body": "SonarQube analysis results:\n\n- Bugs: ${{ env.SONAR_BUGS }}\n- Vulnerabilities: ${{ env.SONAR_VULNERABILITIES }}\n- Code Smells: ${{ env.SONAR_CODE_SMELLS }}\n- Coverage: ${{ env.SONAR_COVERAGE }}%\n- Duplications: ${{ env.SONAR_DUPLICATIONS }}%\n- Quality Gate Status: ${{ env.SONAR_QUALITY_GATE_STATUS }}"
|
||||||
}'
|
}'
|
||||||
- name: Verify PR number
|
- name: Verify PR number
|
||||||
run: |
|
run: |
|
||||||
echo "PR number: ${{ github.event.number }}"
|
echo "PR number: ${{ gitea.event.pull_request.number }}"
|
||||||
|
|
||||||
# - name: Post SonarQube Results as Comment
|
# - name: Post SonarQube Results as Comment
|
||||||
# run: |
|
# run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user