mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-04 13:26:30 +00:00
[issue-2108] - Fix PR base and add repo slug (#2109)
* Fix PR base and add repo slug * Add SCM revision
This commit is contained in:
parent
74e9038b92
commit
9194b8e4ba
4
.github/workflows/maven-build.yml
vendored
4
.github/workflows/maven-build.yml
vendored
@ -60,7 +60,9 @@ jobs:
|
||||
mvn -Dsonar.login=${{ secrets.SONAR_TOKEN }} \
|
||||
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }} \
|
||||
-Dsonar.pullrequest.branch=${{ github.head_ref }} \
|
||||
-Dsonar.pullrequest.base=origin/main \
|
||||
-Dsonar.pullrequest.base=main \
|
||||
-Dsonar.pullrequest.github.repository=OpenMetadata \
|
||||
-Dsonar.scm.revision=${{ github.event.pull_request.head.sha }} \
|
||||
-Dsonar.pullrequest.provider=github clean install
|
||||
|
||||
- name: Build with Maven
|
||||
|
4
.github/workflows/py-tests.yml
vendored
4
.github/workflows/py-tests.yml
vendored
@ -69,7 +69,9 @@ jobs:
|
||||
# Add PR analysis information
|
||||
echo "\nsonar.pullrequest.key=${{ github.event.pull_request.number }}" >> ingestion/sonar-project.properties
|
||||
echo "sonar.pullrequest.branch=${{ github.head_ref }}" >> ingestion/sonar-project.properties
|
||||
echo "sonar.pullrequest.base=origin/main" >> ingestion/sonar-project.properties
|
||||
echo "sonar.pullrequest.base=main" >> ingestion/sonar-project.properties
|
||||
echo "sonar.pullrequest.github.repository=OpenMetadata" >> ingestion/sonar-project.properties
|
||||
echo "sonar.scm.revision=${{ github.event.pull_request.head.sha }}" >> ingestion/sonar-project.properties
|
||||
echo "sonar.pullrequest.provider=github" >> ingestion/sonar-project.properties
|
||||
|
||||
# Validate new properties
|
||||
|
Loading…
x
Reference in New Issue
Block a user