File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,11 @@ jobs:
110
110
# Process each namespace:
111
111
while IFS= read -r namespace; do
112
112
if [ -n "$namespace" ] && [[ $namespace != *"_tools"* ]]; then
113
- branch_name="update-$(echo "$namespace" | sed 's/@stdlib\///' | sed 's/\//-/g')-declarations"
113
+ # Namespace without the '@stdlib/' scope for display in commit messages and PR titles:
114
+ display_namespace="${namespace#@stdlib/}"
115
+
116
+ # Branch name slug with slashes replaced by dashes:
117
+ branch_name="update-${display_namespace//\//-}-declarations"
114
118
git checkout -b "$branch_name"
115
119
116
120
# Generate declarations for this namespace:
@@ -122,13 +126,13 @@ jobs:
122
126
git add lib/node_modules/@stdlib
123
127
124
128
# Commit changes:
125
- git commit -m "feat: update \`${namespace }\` TypeScript declarations" --signoff
129
+ git commit -m "feat: update \`${display_namespace }\` TypeScript declarations" --signoff
126
130
127
131
# Push branch and create PR:
128
132
git push origin "$branch_name"
129
133
130
134
gh pr create \
131
- --title "feat: update \`${namespace }\` TypeScript declarations" \
135
+ --title "feat: update \`${display_namespace }\` TypeScript declarations" \
132
136
--body "This PR updates TypeScript declarations for the \`${namespace}\` namespace.
133
137
134
138
## Reviewer Checklist
You can’t perform that action at this time.
0 commit comments