Skip to content

Commit f86c783

Browse files
Update issue-template-number.yml
make issue length in 4 length 000x will change to 0090 or 0009
1 parent 263d5b9 commit f86c783

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/issue-template-number.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ jobs:
1818
OLD_TITLE="${{ github.event.issue.title }}"
1919
2020
# Replace 'X' with the actual issue number in the title
21-
NEW_TITLE=$(echo "$OLD_TITLE" | sed "s/X/$ISSUE_NUMBER/g")
21+
PADDED_NUM=$(printf \"%04d\" \"$ISSUE_NUMBER\")
22+
NEW_TITLE=$(echo \"$OLD_TITLE\" | sed \"s/000X/$PADDED_NUM/g\")
2223
2324
# Update issue title using GitHub API
2425
gh issue edit "$ISSUE_NUMBER" --title "$NEW_TITLE" --repo "${{ github.repository }}"

0 commit comments

Comments
 (0)