{"id":23531064,"url":"https://github.com/evref-bl/gitlab-pharo-api","last_synced_at":"2026-02-14T04:03:53.416Z","repository":{"id":268369977,"uuid":"901313062","full_name":"Evref-BL/Gitlab-Pharo-API","owner":"Evref-BL","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-19T16:01:07.000Z","size":122,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-06-19T16:43:52.287Z","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,"zenodo":null}},"created_at":"2024-12-10T12:35:51.000Z","updated_at":"2025-06-19T15:59:45.000Z","dependencies_parsed_at":"2024-12-16T11:20:53.183Z","dependency_job_id":"60300c98-bc72-4684-9a14-82c45a6f9d0c","html_url":"https://github.com/Evref-BL/Gitlab-Pharo-API","commit_stats":null,"previous_names":["evref-bl/gitlab-pharo-api"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Evref-BL/Gitlab-Pharo-API","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FGitlab-Pharo-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FGitlab-Pharo-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FGitlab-Pharo-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FGitlab-Pharo-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Evref-BL","download_url":"https://codeload.github.com/Evref-BL/Gitlab-Pharo-API/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Evref-BL%2FGitlab-Pharo-API/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273640609,"owners_count":25142228,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-12-25T22:12:31.726Z","updated_at":"2026-02-14T04:03:48.395Z","avatar_url":"https://github.com/Evref-BL.png","language":"Smalltalk","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gitlab-Pharo-API\n\n[![Continuous](https://github.com/Evref-BL/Gitlab-Pharo-API/actions/workflows/continuous.yml/badge.svg)](https://github.com/Evref-BL/Gitlab-Pharo-API/actions/workflows/continuous.yml)\n[![Coverage Status](https://coveralls.io/repos/github/Evref-BL/Gitlab-Pharo-API/badge.svg?branch=develop)](https://coveralls.io/github/Evref-BL/Gitlab-Pharo-API?branch=develop)\n\nThis is a Pharo client for the [Gitlab REST API](https://docs.gitlab.com/ee/api/rest/)\n\n## Usage\n\n### Installation\n\n#### From playground\n\n```st\nMetacello new\n  githubUser: 'Evref-BL' project: 'Gitlab-Pharo-API' commitish: 'main' path: 'src';\n  baseline: 'GitlabAPI';\n  onConflict: [ :ex | ex useIncoming ];\n  load\n```\n\n#### Baseline dependency\n\n```st\nspec baseline: 'GitlabAPI' with: [\n\tspec repository: 'github://Evref-BL/Gitlab-Pharo-API:main' ];\n```\n\n### Client\n\nTo start using the API, you need to create a client instance with your GitLab host URL and a private token for authentication. Here’s an example:\n\n```st\ngitlabApi := GitlabApi new\n\tprivateToken: '\u003cyour token\u003e';\n\thostUrl: 'https://\u003cyour gitlab domain\u003e.com/api/v4';\n\tyourself.\n```\n\nReplace `\u003cyour token\u003e` with your actual GitLab private token and replace `\u003cyour gitlab domain\u003e` with the appropriate domain.\n\n### Ressources\n\nThe API provides different resource classes to interact with various GitLab entities. These resources include:\n\n- branches\n- commits\n- discussions\n- groups\n- jobs\n- mergeRequests\n- notes\n- pipelines\n- projects\n- repositories\n- users\n\nEach resource provides methods for interacting with the corresponding GitLab resource. You can access them like this:\n\n```st\ngitlabApi projects \u003cmethod\u003e\n```\n\n### Example\n\nHere are a few examples of how to interact with the API:\n\n#### Fetch All Projects\n\nThis example retrieves all projects from GitLab:\n\n```st\n| projects |\nprojects := gitlabApi projects all\n```\n\n#### Fetch All Projects Sorted in Ascending Order\n\nThis example demonstrates how to fetch all projects sorted in ascending order, using parameters:\n\n```st\n| projects params |\nparams := {\n  #sort -\u003e 'asc'\n} asDictionary.\n\nprojects := gitlabApi projects allWithParams: params.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevref-bl%2Fgitlab-pharo-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevref-bl%2Fgitlab-pharo-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevref-bl%2Fgitlab-pharo-api/lists"}