提交 515c4b9d 编写于 作者: T Tomas Vik

Merge branch '291-create-new-mr-instead-of-complaining' into 'main'

Create merge request when none exists for current branch

See merge request gitlab-org/gitlab-vscode-extension!155
...@@ -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.
先完成此消息的编辑!
想要评论请 注册