Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 306790 - [workflow][api][team] provide a hook for changeset commits
Summary: [workflow][api][team] provide a hook for changeset commits
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 26634
Blocks: 218476 357472
  Show dependency tree
 
Reported: 2010-03-23 03:02 EDT by gerhard presser CLA
Modified: 2011-09-13 08:23 EDT (History)
1 user (show)

See Also:


Attachments
Contribution (18.61 KB, application/zip)
2011-01-25 04:37 EST, Eike Stepper CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description gerhard presser CLA 2010-03-23 03:02:44 EDT
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
Comment 1 Steffen Pingel CLA 2010-07-09 00:37:13 EDT
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.
Comment 2 Eike Stepper CLA 2011-01-25 04:37:27 EST
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.
Comment 3 Gunnar Wagenknecht CLA 2011-09-13 08:23:19 EDT
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).
Comment 4 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
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