{"action":"created","issue":{"url":"https://api.github.com/repos/aaugustin/trac-github/issues/75","labels_url":"https://api.github.com/repos/aaugustin/trac-github/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/aaugustin/trac-github/issues/75/comments","events_url":"https://api.github.com/repos/aaugustin/trac-github/issues/75/events","html_url":"https://github.com/aaugustin/trac-github/issues/75","id":65628828,"number":75,"title":"New Feature: Issue Sync","user":{"login":"tierra","id":106098,"avatar_url":"https://avatars.githubusercontent.com/u/106098?v=3","gravatar_id":"","url":"https://api.github.com/users/tierra","html_url":"https://github.com/tierra","followers_url":"https://api.github.com/users/tierra/followers","following_url":"https://api.github.com/users/tierra/following{/other_user}","gists_url":"https://api.github.com/users/tierra/gists{/gist_id}","starred_url":"https://api.github.com/users/tierra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tierra/subscriptions","organizations_url":"https://api.github.com/users/tierra/orgs","repos_url":"https://api.github.com/users/tierra/repos","events_url":"https://api.github.com/users/tierra/events{/privacy}","received_events_url":"https://api.github.com/users/tierra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-01T08:10:09Z","updated_at":"2015-04-01T17:16:03Z","closed_at":null,"body":"I've only just barely started work on this, but thought I'd drop a note in case anyone was interested in helping out with it or has some early feedback, ideas, suggestions, or recommendations...\r\n\r\nI'm already using this plugin to keep git mirrors on Trac in sync with our authoritative repos on GitHub, but have found the lack of any Trac plugins with the ability to sync GitHub pull requests over to Trac, or sync activity on Trac back over to the appropriate GitHub pull requests to be painful. I'm sure others like us find GitHub issues severely lacking where Trac excels, or have just been using Trac issues for so long that it wouldn't be cost effective to switch have also wished for this kind of functionality. Everyone wants an official repository on GitHub for visibility and collaboration, but finds it annoying that pull requests can't be disabled when you still want patches submitted to Trac.\r\n\r\nI've decided to extend this plugin with the ability to sync issue activity between Trac and GitHub. At least initially, I'm aiming mostly just for creating new Trac tickets for every new pull request, and automatically attaching patches generated from those pull requests to them, along with any updates to those pull requests. That's my primary priority.\r\n\r\nAfter that, I'm planning to look into syncing ticket updates to those issues back to their original GitHub pull requests (which will likely require a GitHub account to post on behalf of, involving API keys), so developers only need to update the ticket on Trac, and the original contributor will still be notified on GitHub, and can still leave comments and updates there.\r\n\r\nOthers might be interested in turning on GitHub issues, and also syncing new Trac tickets over to GitHub if the plan is to eventually just switch to GitHub issues, but I'm not planning on doing that at all myself for now. Also, that workflow can mostly be avoided by just removing the `TICKET_CREATE` permission from Trac users, and directing them to GitHub.\r\n\r\nI'll be working on this within my `issue-sync` branch here:\r\nhttps://github.com/aaugustin/trac-github/compare/master...tierra:issue-sync"},"comment":{"url":"https://api.github.com/repos/aaugustin/trac-github/issues/comments/88561443","html_url":"https://github.com/aaugustin/trac-github/issues/75#issuecomment-88561443","issue_url":"https://api.github.com/repos/aaugustin/trac-github/issues/75","id":88561443,"user":{"login":"aaugustin","id":788910,"avatar_url":"https://avatars.githubusercontent.com/u/788910?v=3","gravatar_id":"","url":"https://api.github.com/users/aaugustin","html_url":"https://github.com/aaugustin","followers_url":"https://api.github.com/users/aaugustin/followers","following_url":"https://api.github.com/users/aaugustin/following{/other_user}","gists_url":"https://api.github.com/users/aaugustin/gists{/gist_id}","starred_url":"https://api.github.com/users/aaugustin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaugustin/subscriptions","organizations_url":"https://api.github.com/users/aaugustin/orgs","repos_url":"https://api.github.com/users/aaugustin/repos","events_url":"https://api.github.com/users/aaugustin/events{/privacy}","received_events_url":"https://api.github.com/users/aaugustin/received_events","type":"User","site_admin":false},"created_at":"2015-04-01T17:16:03Z","updated_at":"2015-04-01T17:16:03Z","body":"Thanks for letting me know!\r\n\r\nSome preliminary advice:\r\n\r\n- Keep features optional so users can mix and match according to their use case.\r\n- Check out the \"test framework\". It's ad-hoc, but it works. Currently the plugin has almost 100% test coverage. Try to write tests for the new features.\r\n- Don't forget to update the documentation in the README.\r\n\r\nSince this is a significant extension in the scope of trac-github, and not one I'm likely to use, perhaps I'll end up merging it and give you commit access to this repo :-)\r\n\r\nIf that doesn't work for whatever reason, and you don't want to fork, you could write a plugin that depends on this one and extends its classes. I'm willing to shuffle code around to make this easier."}}