From 33822ff2a2a23d22a446d2fff3856fa1943aa47a Mon Sep 17 00:00:00 2001 From: Jonas Tobias Hopusch Date: Wed, 6 Jan 2021 15:27:30 +0100 Subject: [PATCH] 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. --- src/status_bar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/status_bar.js b/src/status_bar.js index c7f72d8..24e7e4a 100644 --- a/src/status_bar.js +++ b/src/status_bar.js @@ -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(); } }); -- GitLab