{"thread":{"id":"40400","subject":"email sender plugin in stash","startedAt":"2015-09-22T05:35:07Z","lastAt":"2015-09-22T05:53:38Z","messageCount":2,"participants":["Ankit Jain","Andrew Ardill"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"270469","messageId":"loom.20150922T073021-705@post.gmane.org","threadId":"40400","inReplyTo":null,"subject":"email sender plugin in stash","fromName":"Ankit Jain","fromEmail":"ankitgr8@gmail.com","sentAt":"2015-09-22T05:35:07Z","receivedAt":"2015-09-22T05:35:07Z","isPatch":false,"sender":{"key":"ankitgr8@gmail.com","avatar":null},"body":"HI\n\nI need to modify the notifyemail.vm plugin to show only those changes in the \nemail which i committed as a part of pull request. I do not want to see all the \ncommits which happen  again and again during the review process.\n\nWe actually squash all the commits and the reviewer always see the diff with \nrespect to the master branch,.. but when the mail is send it shows the actual \nmerge commit and also the parent commits. \n\nWe do not want to show the parent commit only show the merge commit.\n\nWhat changes we need to do in \"notifyemail.vm\" to achieve the same\n\nhttps://bitbucket.org/slyoldfox/notifier/src/b160edc865961baed7861b1b7dc5b1bfe1\n587fb5/src/main/resources/templates/notifyemail.vm?fileviewer=file-view-default\n"},{"id":"270470","messageId":"CAH5451=6P7bS3LvBgocna9e8xT2uy=8gn2TVfU7VmtOBVvzkcQ@mail.gmail.com","threadId":"40400","inReplyTo":"loom.20150922T073021-705@post.gmane.org","subject":"Re: email sender plugin in stash","fromName":"Andrew Ardill","fromEmail":"andrew.ardill@gmail.com","sentAt":"2015-09-22T05:53:38Z","receivedAt":"2015-09-22T05:53:38Z","isPatch":false,"sender":{"key":"andrew.ardill@gmail.com","avatar":"https://gravatar.com/avatar/da14cb7c091dd44dc6c63a4d3361b149acaf25226dc78eb4131a17b93d9b0993?d=mp&s=160"},"body":"Hi Ankit,\n\nOn 22 September 2015 at 15:35, Ankit Jain <ankitgr8@gmail.com> wrote:\n> HI\n>\n> I need to modify the notifyemail.vm plugin to show only those changes in the\n> email which i committed as a part of pull request. I do not want to see all the\n> commits which happen  again and again during the review process.\n\nAs this is the git developer mailing list, you'll probably get better\nassistance over at the Atlassian Answers website\nhttps://answers.atlassian.com/\n\nEssentially what you need to do is adjust the list of changesets to\ndisplay. In the given template, the changesets are grabbed using the\nfunction\n    smtpNotificationRenderer.getChangesetPage(repository, refChange)\n\nYou need to either filter that list, or alternatively write your own\nhelper to get only the changesets you care about.\n\nFiltering would be relatively straight forward, using either\nchangeset.author.name or changeset.author.emailAddress if you want to\nfilter on whose commits are included, or changeset.parents if you only\nwant to include merge commits.\nThere are plenty of options for more complex filtering, but that might\nbe able to help\n\nRegards,\n\nAndrew Ardill\n"}]}