SonarSource / sonar-loc-count

GNU Lesser General Public License v3.0
37 stars 27 forks source link

Update bitbucket_org.sh repo slug instead of name #22

Closed Cobaltikus closed 1 year ago

Cobaltikus commented 1 year ago

The value of "name" in the return json from the bitbucket api is like "My Name", but the value needed in the script later on is actually in "slug", which is like "my-name". Otherwise $BaseAPI/repositories/$wks/$Name/refs/branches produces a bad value and we get the error jq: error (at <stdin>:0): Cannot iterate over null (null).

emmanuel-colussi-sonarsource commented 1 year ago

Thank you @Cobaltikus for spotting this problem, and fixing it! 👍