feat(gh75): extract target branched from pr labels

This commit is contained in:
Andrea Lamparelli 2024-03-30 19:02:40 +01:00
parent b2e2e271b9
commit 2a162acb68
20 changed files with 523 additions and 83 deletions

View file

@ -408,7 +408,7 @@ describe("cli runner", () => {
body: expect.stringContaining("**Backport:** https://my.gitlab.host.com/superuser/backporting-example/-/merge_requests/1"),
reviewers: ["superuser"],
assignees: [],
labels: ["cherry-pick :cherries:", "another-label", "gitlab-original-label"],
labels: ["cherry-pick :cherries:", "another-label", "backport-prod"],
comments: [],
}
);
@ -502,7 +502,7 @@ describe("cli runner", () => {
body: expect.stringContaining("**This is a backport:** https://my.gitlab.host.com/superuser/backporting-example/-/merge_requests/1"),
reviewers: [],
assignees: ["user3", "user4"],
labels: ["cli gitlab cherry pick :cherries:", "gitlab-original-label"],
labels: ["cli gitlab cherry pick :cherries:", "backport-prod"],
comments: [],
}
);