git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: email sender plugin in stash

From
Andrew Ardill <andrew.ardill@gmail.com>
Date
Sep 22, 2015, 05:53 UTC
Message-ID
<CAH5451=6P7bS3LvBgocna9e8xT2uy=8gn2TVfU7VmtOBVvzkcQ@mail.gmail.com>
In-Reply-To
<loom.20150922T073021-705@post.gmane.org>
Hi Ankit,
On 22 September 2015 at 15:35, Ankit Jain <ankitgr8@gmail.com> wrote:
Show 5 quoted lines
> 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
Previous: Ankit Jain
Message 2 of 2 in “email sender plugin in stash”
  1. Ankit JainSep 22, 2015
  2. Andrew ArdillSep 22, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.