Skip to content

Commit

Permalink
Don't include pr/* labels when creating backports (#117)
Browse files Browse the repository at this point in the history
To avoid creating a PR with `pr/last-call`.

Signed-off-by: Yarden Shoham <[email protected]>
  • Loading branch information
yardenshoham authored Jan 30, 2024
1 parent 1580e25 commit 9efd33b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,15 +362,16 @@ export const createBackportPr = async (
});
const json = await response.json();

// filter lgtm/*, backport/*, reviewed/*, and size/* labels
// filter lgtm/*, backport/*, reviewed/*, size/*, and pr/* labels
const labels = originalPr.labels
.map((label) => label.name)
.filter((label) => {
return (
!label.startsWith("lgtm/") &&
!label.startsWith("backport/") &&
!label.startsWith("reviewed/") &&
!label.startsWith("size/")
!label.startsWith("size/") &&
!label.startsWith("pr/")
);
});

Expand Down

0 comments on commit 9efd33b

Please sign in to comment.