Community
Participate
Working Groups
Build Identifier: it would be nice to have an after-commit-hook, to be able to update the task after it has been committed (e.g. attach a note, update the status etc.) Reproducible: Always
That makes sense. Unfortunately the platform does not provide that at the moment but we could consider it as part of the Mylyn SCM project.
Created attachment 187499 [details] Contribution I've developed this plugin for the CDO/Net4j project. It creates task comments like: Committed revision 6916: - trunk/org.eclipse.emf.cdo.ui - trunk/org.eclipse.emf.cdo - deprecated/develop Where the revision number is recognized as a hyperlink to the History view. Known issues: 1) There's not enough information in the hyperlink to open the History view on the right SVN repository. Hence org.eclipse.net4j.tools.svn.mylyn.RevisionHyperlink.URL is hardcoded. 2) The revision range is reflectively injected into the HistoryPage. Manual refresh is needed to make it effective. 3) There is no commit comment->task association. All commits add comments to the *active* task. 4) org.eclipse.net4j.tools.svn.mylyn.MylynCommitHandler.autoSubmit is always ON. In fact the task editor behaves strange if submit is not triggered. Submit seems to need internal Mylyn API. There are probably more but for us it seems to work. Feedback is welcome ;-) I'm the only author (exception in org.eclipse.net4j.tools.svn.mylyn.StringHyperlinkDetector explicitely mentioned) and I apply the EPL to this contribution.
Note that in terms of Git such a hook needs to be an "after-push-to-origin" hook. Maybe the Git integration needs to be really configurable. For example, when I push to my public GitHub fork, I may just want a comment on the bug. But when I push to the Eclipse.org Git repo then I may want to bug to be transition to a new state (eg. RESOLVED).
Mylyn has been restructured, and our issue tracking has moved to GitHub [1]. We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub. [1] https://github.com/orgs/eclipse-mylyn