{"id":22724447,"url":"https://github.com/fadyat/hooks","last_synced_at":"2026-04-28T11:33:37.402Z","repository":{"id":60602416,"uuid":"543212538","full_name":"fadyat/hooks","owner":"fadyat","description":"Track commit history inside your task 🕵️‍♀️","archived":false,"fork":false,"pushed_at":"2024-06-29T11:05:06.000Z","size":182,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-29T23:18:00.146Z","etag":null,"topics":["asana","commit-hooks","gitlab"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fadyat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-29T16:12:56.000Z","updated_at":"2024-06-29T11:02:36.000Z","dependencies_parsed_at":"2023-02-18T20:15:39.527Z","dependency_job_id":"22a794a9-ba32-47b9-87b9-4f03d62823ce","html_url":"https://github.com/fadyat/hooks","commit_stats":null,"previous_names":["fadyat/gitlab-hooks"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/fadyat/hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadyat%2Fhooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadyat%2Fhooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadyat%2Fhooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadyat%2Fhooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fadyat","download_url":"https://codeload.github.com/fadyat/hooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fadyat%2Fhooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32379293,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["asana","commit-hooks","gitlab"],"created_at":"2024-12-10T15:06:34.157Z","updated_at":"2026-04-28T11:33:37.381Z","avatar_url":"https://github.com/fadyat.png","language":"Go","readme":"## Hooks\n\nThis project is dedicated to boosting your development workflow by seamlessly integrating GitLab with Asana.\n\nSay goodbye to manual task tracking and commit updates – this tool automates it all!\n\n### Distinguishing Features\n\n- Focused Task Management\n  \u003e Our integration is all about making Asana task management incredibly smooth.\n  \u003e \n  \u003e It's designed to effortlessly connect Git commits with Asana tasks.\n\n- Track History\n  \u003e Keep tabs on all commits and merges, providing a clear history of task-related changes.\n\n- Connect Multiple Tasks\n  \u003e Link multiple tasks to a single commit or merge request, ensuring comprehensive tracking.\n\n- Customization\n  \u003e Tailor commit messages and merge request descriptions to suit your needs.\n\nReady to supercharge your workflow? Explore our integration today!\n\n### Workflow\n\nPass a task to a `commit message` with the following syntax or `name a branch` with the following syntax:\n\nAs a separator can be used one of the following characters: `|`, `:`, `-`, `_`, `=`.\n\n```text\nPattern:\n- asana|\u003ctask_id\u003e\n- ref|\u003ctask_id\u003e\n\nNot abstract examples:\n- asana|123456789\n- asana_123456789\n- ref=123456789\n```\n\nWorks for multiple passed tasks.\n\n### Some interesting cases:\n\n- If task passed in branch and in commit message, all tasks will be updated.\n- When merging a branch with following pattern, message will be created in the task.\n\n### Gitlab integration\n\n#### How to use:\n\n```text\n- Set up a service (configuration section)\n- Launch service (could use ngrok for local testing)\n- Set up a webhook in Gitlab\n    * URL: \u003cendpoint\u003e\n    * Secret Token: \u003cyour-secret-token\u003e\n    * Trigger: Push events / Merge request events\n```\n\n#### Endpoints:\n\n| Endpoint                          | Trigger                | Description                                                     |\n|-----------------------------------|------------------------|-----------------------------------------------------------------|\n| `/api/v1/asana/push`              | `push events`          | Notify asana about the last commit in the branch                |\n| `/api/v1/gitlab/sync_description` | `merge request events` | Binding a short link of the asana task to the description of MR |\n| `/api/v1/asana/merge`             | `merge request events` | Notify asana about the merge of the branch                      |\n\n### Configuration\n\n- Put in `.env` file in the root of the project, or set up environment variables.\n\n```dotenv\n# asana access token for editing tasks custom fields\nASANA_API_KEY=\u003cyour api key\u003e\n\n# secret tokens that will be used to verify the webhook\nGITLAB_SECRET_TOKENS=\u003clist of tokens\u003e \n\n# gitlab api key for updating the merge request description\n# make sure, that generated token has access to the project!\n#\n# minimal required permissions:\n# - role: developer\n# - scopes: api\n# \nGITLAB_API_KEY=\u003cyour api key\u003e\n\n# if you using a self-hosted gitlab, you can specify the url\n# default: https://gitlab.com/api/v4\nGITLAB_DOMAIN=\u003cyour gitlab domain\u003e\n```\n\n### Feature flags:\n\n```dotenv\n# getting task mentions from commit message\nIS_COMMIT_MENTIONS_ENABLED=\u003ctrue|false\u003e # default: false\n\n# make some blured logs when server is started\nIS_REPRESENT_SECRETS_ENABLED=\u003ctrue|false\u003e # default: false\n```\n\n### Documentation\n\n- `/swagger/index.html` for swagger docs\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadyat%2Fhooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffadyat%2Fhooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffadyat%2Fhooks/lists"}