{"id":25309334,"url":"https://github.com/rwaskiewicz/ticket-trailer-from-git-branch","last_synced_at":"2025-04-07T10:12:31.143Z","repository":{"id":275760364,"uuid":"925723734","full_name":"rwaskiewicz/ticket-trailer-from-git-branch","owner":"rwaskiewicz","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-04T20:52:18.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T14:41:05.438Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/rwaskiewicz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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-02-01T15:38:50.000Z","updated_at":"2025-02-04T12:12:17.000Z","dependencies_parsed_at":"2025-02-04T13:23:08.432Z","dependency_job_id":"39c3206f-b154-46ab-b97d-eb9c6ad7b7be","html_url":"https://github.com/rwaskiewicz/ticket-trailer-from-git-branch","commit_stats":null,"previous_names":["rwaskiewicz/ticket-trailer-from-git-branch"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwaskiewicz%2Fticket-trailer-from-git-branch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwaskiewicz%2Fticket-trailer-from-git-branch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwaskiewicz%2Fticket-trailer-from-git-branch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rwaskiewicz%2Fticket-trailer-from-git-branch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rwaskiewicz","download_url":"https://codeload.github.com/rwaskiewicz/ticket-trailer-from-git-branch/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247631832,"owners_count":20970069,"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-02-13T12:53:03.890Z","updated_at":"2025-04-07T10:12:31.121Z","avatar_url":"https://github.com/rwaskiewicz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tickety Cricket\n\nThis repo contains a `commit-msg` hook for finding a string at the beginning of a git branch name and placing it in a git trailer.\n\n## What It Does\n\nFor a git branch with the name `dx-1111/feat/add-cool-thing`, this hook parses the branch name, and adds the ticket value to the git message as a trailer.\n\n```bash\n$ git checkout -b dx-1111/feat/add-cool-thing\n$ echo \"Hello World\" \u003e README.md\n$ git add README.md\n$ git commit -m 'Add Hello World README'\n$ git log HEAD\n\n    Add Hello World README\n\n    Ticket: DX-1111\n```\n\n## Goals\n\n1. Adding ticketing info to commit messages with minimal friction\n2. This hook shall never stop a commit from occurring\n3. Minimal configuration. It's meant to be forked, checked into your repo, and modified to fit your needs.\n\n## Installation\n\nThis hook requires bash and Node to be installed locally.\n\n### MacOS, Linux\n\nCopy `commit-msg` and `commit-msg.mjs` to a git repository you wish to run these hooks in and give the executable permissions:\n```bash\n$ cp commit-msg commit-msg.mjs /path/to/repo/.git/hooks/\n$ chmod +x commit-msg commit-msg.mjs\n```\n\n## Limitations\n\nThis hook assumes that tickets are of the format PREFIX + NUMERICS - e.g. `RAD-1000`, `MT0001`, `DX-1`.\nThe default prefix is `DX-`.\nIf you wish for different behavior, fork and modify this script.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwaskiewicz%2Fticket-trailer-from-git-branch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frwaskiewicz%2Fticket-trailer-from-git-branch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frwaskiewicz%2Fticket-trailer-from-git-branch/lists"}