From 4fe3da2f09204fc3c6d167930f9b89d470ac2740 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Wed, 5 Mar 2025 15:24:30 +0100 Subject: [PATCH] [FIX] runbot_merge: show fw commands on forward ports Since 94cf3e96478004a4cb51e153a2f5b2e4d46c4839, FW is not limited to reviewers. And it's been possible to set the fw policy on any forward port pretty much since it was created (during commands rework / formalisation). However the help for the fw subcommands would only be shown on the source PR, unnecessarily. --- runbot_merge/models/pull_requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot_merge/models/pull_requests.py b/runbot_merge/models/pull_requests.py index 37f552da..2340f33a 100644 --- a/runbot_merge/models/pull_requests.py +++ b/runbot_merge/models/pull_requests.py @@ -775,7 +775,7 @@ class PullRequests(models.Model): (is_author or source_author) and self.reviewed_by and commands.Reject, (is_author or source_author) and self.error and commands.Retry, - is_author and not self.source_id and commands.FW, + (is_author or source_author) and commands.FW, is_author and commands.Limit, source_author and self.source_id and commands.Close,