GH-2243 - Add ticket backport script.
This commit is contained in:
13
etc/copy-ticket.sh
Executable file
13
etc/copy-ticket.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
sourceGh="GH-$1"
|
||||
json=$(gh issue view $1 --json=title,labels)
|
||||
|
||||
title=$(echo $json | jq -r '.title')
|
||||
labels=$(echo $json | jq -r '.labels[].name' | paste -sd ',' -)
|
||||
|
||||
gh issue create --title "$title" \
|
||||
--body "Back-port of $sourceGh." \
|
||||
--label "$labels" \
|
||||
--assignee "@me" \
|
||||
--milestone "$2"
|
||||
Reference in New Issue
Block a user