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) { ...@@ -140,7 +140,7 @@ async function fetchMRIssues(workspaceFolder) {
} }
async function fetchBranchMR() { async function fetchBranchMR() {
let text = '$(git-pull-request) GitLab: No MR.'; let text = '$(git-pull-request) GitLab: Create MR.';
let workspaceFolder = null; let workspaceFolder = null;
let project = null; let project = null;
...@@ -178,7 +178,7 @@ const initMrStatus = async () => { ...@@ -178,7 +178,7 @@ const initMrStatus = async () => {
if (mr) { if (mr) {
openers.openUrl(mr.web_url); openers.openUrl(mr.web_url);
} else { } 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.
先完成此消息的编辑!
想要评论请 注册