phab-refresh: use a special comment on the stable branch
Phabricator make it hard to spot the branch information. As a result patch
intended for stable are consistently queued for default.
We add a special command and flashy GIF to try to attract reviewer attention on
the fact patch are intended for stable.
Differential Revision: https://phab.mercurial-scm.org/D10464
--- a/contrib/heptapod-ci.yml Mon Apr 19 11:04:11 2021 +0200
+++ b/contrib/heptapod-ci.yml Mon Apr 19 11:10:16 2021 +0200
@@ -53,8 +53,14 @@
stage: phabricator
variables:
DEFAULT_COMMENT: ":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)"
+ STABLE_COMMENT: ":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)\n⚠ This patch is intended for stable ⚠\n{image https://media.giphy.com/media/nYI8SmmChYXK0/source.gif}"
script:
- - "./contrib/phab-refresh-stack.sh --comment \"$DEFAULT_COMMENT\""
+ - |
+ if [ `hg branch` == "stable" ]; then
+ ./contrib/phab-refresh-stack.sh --comment "$STABLE_COMMENT";
+ else
+ ./contrib/phab-refresh-stack.sh --comment "$DEFAULT_COMMENT";
+ fi
test-py2:
<<: *runtests