diff --git a/README.md b/README.md index f92a85f..8bf8c7a 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ See [action.yml](action.yml) and [Sample Repo](https://github.com/NazmiAltun/dot **sonar-host-url**: URL of the sonar instance .Default is *https://sonarcloud.io* **dotnet-build-command**: To build the solution. Default is *dotnet build -v q -nologo --configuration Release* **project-key**: Sonar project key. Default is *{context.repo.owner}_{context.repo.name}* if not set. -**project-name**: Sonar project name. Default is *context.repo.repo.toLowerCase()* if not set. -**organization**: Sonar organization name. Default is *context.repo.owner* if not set. +**project-name**: Sonar project name. Default is *context.repo.repo* if not set. +**organization**: Sonar organization name. Default is *context.repo.owner.toLowerCase()* if not set. **test-result-artifacts**: Artifact names of test results that are going to be downloaded. Multiple artifact names should be separated with a comma(,). ## TODO diff --git a/action.yml b/action.yml index 29dc3e1..1a12fe1 100644 --- a/action.yml +++ b/action.yml @@ -31,7 +31,7 @@ inputs: description: 'Sonarcloud/Sonarqube organization name.Default is {context.repo.owner} if not set' required: false project-name: - description: 'Sonarcloud/Sonarqube project name.Default is {context.repo.repo.toLowerCase()} if not set' + description: 'Sonarcloud/Sonarqube project name.Default is {context.repo.repo)} if not set' required: false test-result-artifacts: description: 'Artifact names of test results that are going to be downloaded. Multiple artifact names should be separated with a comma' diff --git a/src/getScanParameters.ts b/src/getScanParameters.ts index 6eace2d..fdd7ca1 100644 --- a/src/getScanParameters.ts +++ b/src/getScanParameters.ts @@ -8,7 +8,7 @@ const getScanParameters = (): ScanParameters => { let projectName = getInput('project-name'); if (projectKey === '') { - projectKey = `${context.repo.owner}_${context.repo.repo.toLowerCase()}`; + projectKey = `${context.repo.owner}_${context.repo.repo}`; } if (organization === '') { @@ -16,7 +16,7 @@ const getScanParameters = (): ScanParameters => { } if (projectName === '') { - projectName = context.repo.repo.toLowerCase(); + projectName = context.repo.repo; } return {