git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* email sender plugin in stash
@ 2015-09-22  5:35 Ankit Jain
  2015-09-22  5:53 ` Andrew Ardill
  0 siblings, 1 reply; 2+ messages in thread
From: Ankit Jain @ 2015-09-22  5:35 UTC (permalink / raw)
  To: git

HI

I need to modify the notifyemail.vm plugin to show only those changes in the 
email which i committed as a part of pull request. I do not want to see all the 
commits which happen  again and again during the review process.

We actually squash all the commits and the reviewer always see the diff with 
respect to the master branch,.. but when the mail is send it shows the actual 
merge commit and also the parent commits. 

We do not want to show the parent commit only show the merge commit.

What changes we need to do in "notifyemail.vm" to achieve the same

https://bitbucket.org/slyoldfox/notifier/src/b160edc865961baed7861b1b7dc5b1bfe1
587fb5/src/main/resources/templates/notifyemail.vm?fileviewer=file-view-default

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: email sender plugin in stash
  2015-09-22  5:35 email sender plugin in stash Ankit Jain
@ 2015-09-22  5:53 ` Andrew Ardill
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ardill @ 2015-09-22  5:53 UTC (permalink / raw)
  To: Ankit Jain; +Cc: git@vger.kernel.org

Hi Ankit,

On 22 September 2015 at 15:35, Ankit Jain <ankitgr8@gmail.com> wrote:
> HI
>
> I need to modify the notifyemail.vm plugin to show only those changes in the
> email which i committed as a part of pull request. I do not want to see all the
> commits which happen  again and again during the review process.

As this is the git developer mailing list, you'll probably get better
assistance over at the Atlassian Answers website
https://answers.atlassian.com/

Essentially what you need to do is adjust the list of changesets to
display. In the given template, the changesets are grabbed using the
function
    smtpNotificationRenderer.getChangesetPage(repository, refChange)

You need to either filter that list, or alternatively write your own
helper to get only the changesets you care about.

Filtering would be relatively straight forward, using either
changeset.author.name or changeset.author.emailAddress if you want to
filter on whose commits are included, or changeset.parents if you only
want to include merge commits.
There are plenty of options for more complex filtering, but that might
be able to help

Regards,

Andrew Ardill

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-09-22  5:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-22  5:35 email sender plugin in stash Ankit Jain
2015-09-22  5:53 ` Andrew Ardill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).