Mercurial > hg
changeset 46980:75351b8b2082
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
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 19 Apr 2021 11:10:16 +0200 |
parents | 66cc5f867ddc |
children | abd18d6306f1 |
files | contrib/heptapod-ci.yml |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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