Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
[#20][TECH] JV un commentaire Github après un deploy (US-1224). (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
mackwic committed Apr 12, 2018
1 parent 4893f08 commit 05b71aa
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ jobs:
- run: sudo apt-get install -y jq
- run: ~/pix/scripts/trello/comment_with_review_app_url.sh

signal_pr_deployment_to_github:
<<: *common_properties
steps:
- run: echo $CIRCLE_SHA1 > .circle-sha
- restore_cache:
keys:
- v1-pix-{{ checksum ".circle-sha" }}
- run: ~/pix/live/scripts/signal_deploy_to_pr.sh

# Server side

install_server_dependencies:
Expand Down Expand Up @@ -307,3 +316,18 @@ workflows:
- preview
- maths
- /release-.*/

- signal_pr_deployment_to_github:
requires:
- deploy_client
- deploy_server
filters:
branches:
ignore:
- master
- dev
- gh-pages
- ghp
- preview
- maths
- /release-.*/
4 changes: 2 additions & 2 deletions live/scripts/signal_deploy_to_pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

PR_NUMBER=`echo $CI_PULL_REQUEST | grep -Po '(?<=pix/pull/)(\d+)'`

curl -u twickham:$GITHUB_TOKEN --verbose \
curl -u mackwic:$GITHUB_TOKEN --verbose \
-X POST "https://api.github.com/repos/1024pix/pix/issues/${PR_NUMBER}/comments" \
--data "{\"body\":\"I've deployed this PR to http://${CIRCLE_BRANCH}.pix.beta.gouv.fr. Please check it out\"}"
--data "{\"body\":\"I've deployed this PR to http://${CIRCLE_BRANCH}.pix-dev.ovh . Please check it out\"}"


0 comments on commit 05b71aa

Please sign in to comment.