Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circleci-notify: linkify PR number #3469

Merged
merged 5 commits into from
Nov 21, 2018
Merged

Circleci-notify: linkify PR number #3469

merged 5 commits into from
Nov 21, 2018

Conversation

fm3
Copy link
Member

@fm3 fm3 commented Nov 19, 2018

@fm3 fm3 requested a review from jstriebel November 19, 2018 22:49
@fm3 fm3 self-assigned this Nov 19, 2018
Copy link
Contributor

@jstriebel jstriebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -17,9 +17,13 @@ if [ "${CIRCLE_BRANCH}" == "master" ]; then
author=${author/valentin-pinkau/<@valentin>}
channel="webknossos-bots"
commitmsg=$(git log --format=%s -n 1)
pullregex="(.*)#([0-9]+)(.*)"
while [[ $commitmsg =~ $pullregex ]]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we have the while-loop? I would expect an if. Nothing important, just curious ;)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to replace all occurences of the pattern with the respective linkified version. There are probably nicer ways to do this, but this does the trick. if would only run at most one replacement.

@fm3 fm3 merged commit 3304891 into master Nov 21, 2018
@fm3 fm3 deleted the circleci-notify-linkify branch November 21, 2018 07:46
jfrohnhofen added a commit that referenced this pull request Nov 23, 2018
* origin/master:
  Optimize performance for the list request /api/datasets (#3441)
  add annotation dataset foreign key  (#3482)
  thumbnails: correctly use zoom value if specified (#3487)
  Store Meshes in Postgres (#3367)
  fix alpha return (#3483)
  Added script to apply all new evolutions (#3427)
  Simple fix to speed up dataset gallery (#3480)
  better errors for screenshot tests, fix imports, refresh screenshots (#3479)
  (Backend only) Add project priority to progress report json (#3476)
  Handle missing write access on datastore (#3411)
  Re-introduce "Flightmode improvements"" (#3473)
  Circleci-notify: linkify PR number (#3469)
  Revert "Flightmode improvements" (#3472)
  also flow-ignore binaryData when using symlinks (#3471)
  Flightmode improvements (#3392)
  Circleci custom notification (#3465)
  enable /api/switch cross-organization (#3464)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

circleci-notify: properly linkify pr numbers
2 participants