We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 263d5b9 commit f86c783Copy full SHA for f86c783
.github/workflows/issue-template-number.yml
@@ -18,7 +18,8 @@ jobs:
18
OLD_TITLE="${{ github.event.issue.title }}"
19
20
# Replace 'X' with the actual issue number in the title
21
- NEW_TITLE=$(echo "$OLD_TITLE" | sed "s/X/$ISSUE_NUMBER/g")
+ PADDED_NUM=$(printf \"%04d\" \"$ISSUE_NUMBER\")
22
+ NEW_TITLE=$(echo \"$OLD_TITLE\" | sed \"s/000X/$PADDED_NUM/g\")
23
24
# Update issue title using GitHub API
25
gh issue edit "$ISSUE_NUMBER" --title "$NEW_TITLE" --repo "${{ github.repository }}"
0 commit comments