{"id":26294440,"url":"https://github.com/evref-bl/sonarqube-pharo-api","last_synced_at":"2026-01-02T22:10:19.713Z","repository":{"id":282243006,"uuid":"947784469","full_name":"Evref-BL/Sonarqube-Pharo-API","owner":"Evref-BL","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-13T13:59:01.000Z","size":14,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-13T14:38:10.663Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Smalltalk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Evref-BL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-13T08:45:45.000Z","updated_at":"2025-03-13T13:57:32.000Z","dependencies_parsed_at":"2025-03-13T14:48:14.171Z","dependency_job_id":null,"html_url":"https://github.com/Evref-BL/Sonarqube-Pharo-API","commit_stats":null,"previous_names":["evref-bl/sonarqube-pharo-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FSonarqube-Pharo-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FSonarqube-Pharo-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FSonarqube-Pharo-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FSonarqube-Pharo-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Evref-BL","download_url":"https://codeload.github.com/Evref-BL/Sonarqube-Pharo-API/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243677230,"owners_count":20329523,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-15T03:19:37.431Z","updated_at":"2026-01-02T22:10:19.693Z","avatar_url":"https://github.com/Evref-BL.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sonarqube-Pharo-API\n\n[![Continuous](https://github.com/Evref-BL/Gitlab-Pharo-API/actions/workflows/continuous.yml/badge.svg)](https://github.com/Evref-BL/Sonarqube-Pharo-API/actions/workflows/continuous.yml)\n[![Coverage Status](https://coveralls.io/repos/github/Evref-BL/Sonarqube-Pharo-API/badge.svg?branch=develop)](https://coveralls.io/github/Evref-BL/Sonarqube-Pharo-API?branch=develop)\n\nThis is a Pharo client for the [Sonarqube Web API](https://next.sonarqube.com/sonarqube/web_api)\n\n### Usage\n\n### Installation\n\n```st\nMetacello new\n  githubUser: 'Evref-BL' project: 'Sonarqube-Pharo-API' commitish: 'develop' path: 'src';\n  baseline: 'SonarqubePharoAPI';\n  onConflict: [ :ex | ex useIncoming ];\n  load\n```\n\n### Client\n\nTo start using the API, you need to create a client instance with your Sonarqube host and a pivate token for authentication. Here’s an example:\n\n```st\nsonarApi := SonarqubeApi new host: '\u003cyour sonarqube domain\u003e.com';\nprivateToken: '\u003ctoken\u003e'.\n```\n\nReplace `\u003cyour sonarqube domain\u003e` with your Sonarqube domain and `\u003ctoken\u003e` with your private token.\n\n### Ressources\n\nThe API is divided into several resources, each corresponding to a specific part of the Sonarqube API. Here are the current available resources:\n\n- projectAnalyses\n- issues\n\nEach resource provides methods for interacting with the corresponding Bitbucket resource. You can access them like this:\n\n```st\nsonarApi projectAnalyses \u003cmethod\u003e\n```\n\n### Examples\n\n#### Get all analyses of a project\n\n```st\nparams := {\n    'project' -\u003e '\u003cprojectKey\u003e'\n} asDictionary.\n\nsonarApi projectAnalyses searchWithParams: params.\n```\n\nReplace `\u003cprojectKey\u003e` with the key of the project you want to get the analyses of.\n\n### Utils\n\nDateAndTime's `printString` does not return the correct format required by the Sonarqube API. To convert a Pharo `DateAndTime` into the appropriate format for Sonarqube, use the method `formatDate: aDateAndTime`.\n\nFor exemple if you want to get all the analyses of a project durring the last 7 days you can use this code:\n\n```st\nparams := {\n    'project' -\u003e '\u003cproject key\u003e'.\n    'from' -\u003e (sonarApi formatDate: (DateAndTime now - 7 days))\n} asDictionary.\n\nsonarApi projectAnalyses searchWithParams: params.\n```\n\nreplace `\u003cproject key\u003e` with the key of the project you want to get the analyses of.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevref-bl%2Fsonarqube-pharo-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevref-bl%2Fsonarqube-pharo-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevref-bl%2Fsonarqube-pharo-api/lists"}