<div dir="ltr"><div>MRs always appear to have the MR label. Even if some comments don't have it, the whole thread has the MR label if at least 1 message has the label and that's enough.</div><div><br></div><div>Marek</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 14, 2022 at 7:03 AM Timur Kristóf <<a href="mailto:timur.kristof@gmail.com">timur.kristof@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">How do you separate gitlab comments on merge requests and issues?<br>
<br>
Timur<br>
<br>
On Thu, 2022-07-14 at 05:28 -0400, Marek Olšák wrote:<br>
> Hi,<br>
> <br>
> Gitlab emails are difficult to filter because issues and MRs are not<br>
> easy to distinguish. I know that Matt has a script which does this,<br>
> but since that was kind of difficult for me to set up, I resorted to<br>
> these filters instead and they work pretty well.<br>
> <br>
> Matches: from:gitlab ("created a merge request" OR "pushed new<br>
> commits to merge request" OR ("Merge request" AROUND 1 "was"))<br>
> Do this: Apply label "MR"<br>
> <br>
> Matches: from:gitlab "Issue was closed by"<br>
> Do this: Apply label "Issue Closed"<br>
> <br>
> Matches: from:gitlab "Merge request" AROUND 1 "was merged"<br>
> Do this: Apply label "Merged"<br>
> <br>
> Matches: from:gitlab "Merge request" AROUND 1 "was closed"<br>
> Do this: Apply label "MR Closed"<br>
> <br>
> <br>
> Issues are not labeled and it doesn't seem possible, but anything<br>
> that is not a MR should be a Gitlab issue.<br>
> <br>
> Marek<br>
<br>
</blockquote></div>