Skip to content

Commit

Permalink
Update report message format
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Nov 14, 2022
1 parent 7c852f9 commit 54b48b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ commands:
name: Listing merge commits from the past 24 hours
when: on_fail
command: |
git log --merges --oneline --since="24 hours ago" --pretty=format:"%h %<(12)%ar | %s [%an]" | grep "Merge pull request"
git log --merges --since="124 hours ago" --pretty=format:"\`%h\` %<(12)%ar | %s [%an]" | grep "Merge pull request" | sed "s/Merge pull request #/https:\/\/github.com\/storybookjs\/storybook\/pull\//g"
report-workflow-on-failure:
description: 'Reports failures to discord'
parameters:
Expand All @@ -199,7 +199,7 @@ commands:
- discord/status:
only_for_branches: chore/failure-reports
fail_only: true
failure_message: 'Oh no! The **$CIRCLE_JOB** job has failed for **<< parameters.template >>**.\n\nRelevant PRs:\n$(git log --merges --oneline --since="24 hours ago" --pretty=format:"%h %<(12)%ar | %s" | grep "Merge pull request" | sed "s/Merge pull request #/https:\/\/github.com\/storybookjs\/storybook\/pull\//g")'
failure_message: 'Oh no! The **$CIRCLE_JOB** job has failed for **<< parameters.template >>**.\n\n**Relevant PRs of the last 24h:**\n$(git log --merges --since="124 hours ago" --pretty=format:"\`%h\` %<(12)%ar | %s [%an]" | grep "Merge pull request" | sed "s/Merge pull request #/https:\/\/github.com\/storybookjs\/storybook\/pull\//g")'
jobs:
build:
executor:
Expand Down

0 comments on commit 54b48b9

Please sign in to comment.