Patchwork D10463: phab-refresh: extract the comment in a variable

login
register
mail settings
Submitter phabricator
Date April 19, 2021, 9:25 a.m.
Message ID <differential-rev-PHID-DREV-sxz6mqqove5o6cs6hdqq-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48780/
State Superseded
Headers show

Comments

phabricator - April 19, 2021, 9:25 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This make the script more readable and it is about to become more complex.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D10463

AFFECTED FILES
  contrib/heptapod-ci.yml

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/contrib/heptapod-ci.yml b/contrib/heptapod-ci.yml
--- a/contrib/heptapod-ci.yml
+++ b/contrib/heptapod-ci.yml
@@ -51,8 +51,10 @@ 
 
 phabricator-refresh:
     stage: phabricator
+    variables:
+      DEFAULT_COMMENT: ":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)"
     script:
-      - "./contrib/phab-refresh-stack.sh --comment \":white_check_mark: refresh by Heptapod after a successful CI run (:octopus: :green_heart:)\""
+      - "./contrib/phab-refresh-stack.sh --comment \"$DEFAULT_COMMENT\""
 
 test-py2:
     <<: *runtests