feat(statusbar): create merge request when none exist for current branch

Also changes button from "No MR" to "Create MR"
See issue #291 for more information.
上级 e67acf88
......@@ -140,7 +140,7 @@ async function fetchMRIssues(workspaceFolder) {
}
async function fetchBranchMR() {
let text = '$(git-pull-request) GitLab: No MR.';
let text = '$(git-pull-request) GitLab: Create MR.';
let workspaceFolder = null;
let project = null;
......@@ -178,7 +178,7 @@ const initMrStatus = async () => {
if (mr) {
openers.openUrl(mr.web_url);
} else {
vscode.window.showInformationMessage('GitLab Workflow: No MR found for this branch.');
openers.openCreateNewMr();
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册