Skip to content

Commit 2089a5c

Browse files
committed
docs: add comments
1 parent 02c4234 commit 2089a5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/scripts/generate_pr_commit_message

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,12 @@ main() {
227227
keywords_pattern=$(IFS='|'; echo "${closing_keywords[*]}")
228228

229229
for issue in $issue_numbers; do
230+
# Fetch issue details:
230231
issue_details=$(github_api "GET" "/repos/$REPO_OWNER/$REPO_NAME/issues/$issue")
231232
issue_title=$(echo "$issue_details" | jq -r '.title')
232233
issue_labels=$(echo "$issue_details" | jq -r '.labels[].name')
233234

235+
# Check if the issue is a tracking issue:
234236
if echo "$issue_title" | grep -q "(tracking issue)" || echo "$issue_labels" | grep -q "Tracking Issue"; then
235237
ref_issues+="Ref: https://github.com/$REPO_OWNER/$REPO_NAME/issues/$issue\n"
236238
elif echo "$pr_body" | grep -Eiq "(${keywords_pattern})([[:space:]]+|:)[[:space:]]*#${issue}\b"; then

0 commit comments

Comments
 (0)