{"id":20405607,"url":"https://github.com/nitrictech/gl-webhooks","last_synced_at":"2025-06-22T00:07:24.617Z","repository":{"id":262756833,"uuid":"888257018","full_name":"nitrictech/gl-webhooks","owner":"nitrictech","description":"Gitlab webhooks with nitric","archived":false,"fork":false,"pushed_at":"2024-11-14T05:38:59.000Z","size":197,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-18T23:52:47.756Z","etag":null,"topics":["nitric"],"latest_commit_sha":null,"homepage":"","language":"Go","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/nitrictech.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},"funding":{"github":"nitrictech"}},"created_at":"2024-11-14T04:42:54.000Z","updated_at":"2024-11-14T06:57:10.000Z","dependencies_parsed_at":"2024-11-20T10:16:04.268Z","dependency_job_id":null,"html_url":"https://github.com/nitrictech/gl-webhooks","commit_stats":null,"previous_names":["nitrictech/gl-webhooks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nitrictech/gl-webhooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2Fgl-webhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2Fgl-webhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2Fgl-webhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2Fgl-webhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitrictech","download_url":"https://codeload.github.com/nitrictech/gl-webhooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2Fgl-webhooks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261212503,"owners_count":23125584,"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":["nitric"],"created_at":"2024-11-15T05:12:06.978Z","updated_at":"2025-06-22T00:07:19.596Z","avatar_url":"https://github.com/nitrictech.png","language":"Go","funding_links":["https://github.com/sponsors/nitrictech"],"categories":[],"sub_categories":[],"readme":"## Gitlab hooks with Nitric\n\nThis project demonstrates spinning up a local gitlab server to test against a nitric service that will accept webhooks from gitlab.\n\n## Running the project\n\nTo run this project you'll need:\n\n- Docker \u0026 Docker Compose\n- Nitric CLI\n\nStart by running the gitlab server:\n\n```bash\ndocker compose up\n```\n\nGive it some time, it takes a while to start the first time due to db migrations etc.\n\nOnce you've confirmed that you can access the [login page](http://localhost:8080)\n\nYou can login with the following:\n\nUsername: root\nPassword: ThisIsNotDefault!\n\nOnce you've logged in start the nitric service:\n\n```\nnitric start\n```\n\n## Testing the webhooks\n\nGo to the [system webhooks page](http://localhost:8080/admin/hooks) of your locally running gitlab instance: \n\nAdd a system webhook that will call the nitric service:\n\n\u003e Because the gitlab service is running in a container you will need to refer to the docker host rather than localhost\n\u003e `host.docker.internal` on Windows and Macos or `172.17.0.1` in Linux.\n\nCheck the output of `nitric start` to ensure that you configure the correct port.\nAlso make sure you disable SSL verification for local testing.\n\n![create webhook image](images/create-webhook.png)\n\nOnce you've configured the webhook you can run a test against the nitric service:\n\n![test webhook image](images/test-webhook.png)\n\n\u003e Note that Merge request hook tests will not work unless you have a project that exists with merge requests\n\nOnce you've run a test you should see output like the following in your locally running nitric service:\n![output result image](images/test-output.png)\n\nYou can also test against a nitric service running in the cloud by deploying your service and updating the webhook address to the address of the deployed API Gateway.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrictech%2Fgl-webhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitrictech%2Fgl-webhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrictech%2Fgl-webhooks/lists"}