Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
"githubIssues.workingIssueBranch": {
"type": "string",
"default": "${user}/issue${issueNumber}",
"description": "Advanced settings for the name of the branch that is created when you start working on an issue. ${user} will be replace with the currently logged in username and ${issueNumber} will be replaced with the current issue number."
"description": "Advanced settings for the name of the branch that is created when you start working on an issue. ${user} will be replace with the currently logged in username and ${issueNumber} will be replaced with the current issue number. You can also use ${issueTitleNoSpaces}."
},
"githubIssues.useBranchForIssues": {
"type": "string",
Expand Down
1 change: 1 addition & 0 deletions src/issues/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ export async function variableSubstitution(value: string, issueModel?: IssueMode
case 'issueTitle': return issueModel ? issueModel.title : match;
case 'repository': return defaults ? defaults.repo : match;
case 'owner': return defaults ? defaults.owner : match;
case 'issueTitleNoSpaces': return issueModel ? issueModel.title.replace(/[~^:?*[\]@\\{}]|\/\//g, '').trim().replace(/\s+/g, '-') : match; // check what characters are permitted
default: return match;
}
});
Expand Down