diff options
author | Teddy Wing | 2018-04-18 22:37:42 +0200 |
---|---|---|
committer | Teddy Wing | 2018-04-18 22:37:42 +0200 |
commit | f62b3a760b2d7ed3001c43f3c00ae9efcb08bec9 (patch) | |
tree | a147696a5c039364519a103adb814a4cc5101834 | |
parent | 5df815b1a3156e817e31833bb71447c24280159b (diff) | |
download | redprine-f62b3a760b2d7ed3001c43f3c00ae9efcb08bec9.tar.bz2 |
Remove `extract_redmine_issue_numbers_from_pull_request()`
This function is no longer used and has been superseded by
`issue_numbers_and_pull_request_urls()` so that pull request URLs can be
sent to Redmine.
-rwxr-xr-x | redprine | 17 |
1 files changed, 0 insertions, 17 deletions
@@ -88,23 +88,6 @@ function extract_data_from_pull_request_json () { )' } -function extract_redmine_issue_numbers_from_pull_request () { - local pull_requests="$1" - - local branch_names=$( - printf "%s\n" "$pull_requests" | - jq --raw-output 'map(.ref) | .[] | @text' - ) - - # Issue IDs are 4-digit prefixes to branch names. - local issue_ids=$( - echo "$branch_names" | - perl -ne '/^(\d{4})-/ && print "$1\n"' - ) - - echo "$issue_ids" -} - # Produces a tab-separated list of branch names and pull request URLs from our # extracted JSON. function branches_and_pull_request_urls () { |