Skip to content

Commit

Permalink
Add label if no jira link
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinMind committed May 3, 2024
1 parent ec33331 commit 31f243c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/transfer-issues.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ set -xue

# The label ID for https://github.com/mozilla/addons/labels/migration%3A2024
MIGRATION_LABEL_ID="LA_kwDOAn4H8M8AAAABmbq8hA"
MIGRATION_NO_JIRA_ID="LA_kwDOAPqAY88AAAABm5JiFA"

REPOSITORY_OWNER="mozilla"
TO_NAME="addons"
Expand Down Expand Up @@ -127,8 +128,10 @@ while IFS= read -r issue; do
if [ -n "$jira_link" ]; then
comment_body="Old Jira Ticket: $jira_link"
comment_mutation+=" t${comment_counter}: addComment(input: { subjectId: \"${issue_id}\", body: \"${comment_body}\" }) { __typename }"
comment_counter=$((comment_counter+1))
else
comment_mutation+=" t${comment_counter}: addLabelsToLabelable(input: {labelableId: \"$issue_id\", labelIds: [\"$MIGRATION_NO_JIRA_ID\"]}) { __typename }"
fi
comment_counter=$((comment_counter+1))

done <<< "$issues"

Expand Down

0 comments on commit 31f243c

Please sign in to comment.