{"id":26711571,"url":"https://github.com/trac-hacks/githubservicehook","last_synced_at":"2025-06-12T19:34:20.743Z","repository":{"id":3538296,"uuid":"4598189","full_name":"trac-hacks/githubservicehook","owner":"trac-hacks","description":"Trac plugin for GitHub's post-receive service hook","archived":false,"fork":false,"pushed_at":"2012-06-08T16:21:05.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":13,"default_branch":"master","last_synced_at":"2023-04-11T08:46:52.690Z","etag":null,"topics":["trac-plugin"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/trac-hacks.png","metadata":{"files":{"readme":"README.markdown","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}},"created_at":"2012-06-08T14:32:11.000Z","updated_at":"2015-03-03T23:45:44.000Z","dependencies_parsed_at":"2022-09-06T04:40:24.575Z","dependency_job_id":null,"html_url":"https://github.com/trac-hacks/githubservicehook","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trac-hacks%2Fgithubservicehook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trac-hacks%2Fgithubservicehook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trac-hacks%2Fgithubservicehook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trac-hacks%2Fgithubservicehook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trac-hacks","download_url":"https://codeload.github.com/trac-hacks/githubservicehook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245826120,"owners_count":20678719,"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":["trac-plugin"],"created_at":"2025-03-27T10:28:56.117Z","updated_at":"2025-03-27T10:29:01.024Z","avatar_url":"https://github.com/trac-hacks.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"GitHub Service Hook Plugin for Trac\n===================================\n\nAdds your git commit messages as comments to your trac tickets.\nIf a commit pushed to your github project contains a trac ticket number like\n`#123` anywhere in the commit message, this trac plugin will add your commit\nmessage as a comment to your trac ticket, like this:\n\n    Sean Hammond c814c9f5c9b94389bbc169d305f58f779f232d52\n\n    Lorem Ipsum, see ticket #123\n\n    Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor\n    incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis\n    nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.\n    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu\n    fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in\n    culpa qui officia deserunt mollit anim id est laborum.\n\nThe SHA-1 of the commit message will be hyperlinked to the commit's page on\ngithub.\n\nThe commit messages are escaped so they don't accidentally trigger any trac\nwiki formatting (they're placed inside `{{{ ... }}}`'s so trac treats them as\npre-formatted text).\n\nThe code is based on\n[github-trac](https://github.com/davglass/github-trac), but:\n\n- It will find any use of `#123` in a commit message, not just commands like `see\n  #123`, `closes #123`, etc. It will even find things like `(#123)` or `[#123]`.\n- It doesn't automatically close trac tickets if you say `closes #123` etc. in\n  your git commits, we didn't want that (this could be added as an optional\n  behaviour).\n- It doesn't do trac source code browser redirects.\n- It's much simpler than github-trac.\n\n## Install\n\nInstall the plugin into your trac project's plugins dir:\n\n    cd /path/to/your/trac/project/plugins\n    git clone git://github.com/seanh/githubservicehook.git\n    cd githubservicehook\n    python setup.py install\n\nEnable the github service hook. Go to the admin panel of your project on github\nand enable the trac service hook. Set URL to your trac instance's URL, and set\nToken to whatever you like.\n\nEnable the plugin. Add this to the bottom of your trac.ini file:\n\n    [components]\n    githubservicehook.* = enabled\n    \n    [githubservicehook]\n    token = YOUR_TOKEN\n\nwhere YOUR_TOKEN is the same token that you set in your github project.\n\nFinally, restart the web server that hosts your trac instance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrac-hacks%2Fgithubservicehook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrac-hacks%2Fgithubservicehook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrac-hacks%2Fgithubservicehook/lists"}