We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b39f03 commit 7c99fb5Copy full SHA for 7c99fb5
server.py
@@ -161,6 +161,14 @@ def user_noping(user: str) -> str:
161
if user in ["yunohost-bot", "github-actions[bot]"]:
162
return empty()
163
164
+ # If the last commit is "Merge pull request #id from Org/Repo",
165
+ # then it's most likely a PR that just got merged, and it's kind of
166
+ # redundant with the "user merged pull requested #id" notification
167
+ # So skip this to prevent unecessary noise, people can just look at
168
+ # the PR to see the commits that got merged
169
+ if commits and commits[-1]["message"].startswith("Merge pull request #")
170
+ return empty()
171
+
172
user = user_noping(user)
173
174
branch = request.json["ref"].split("/", 2)[2]
0 commit comments