Skip to content

Commit

Permalink
refactor: update slug for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
alicelovescake authored and codebytere committed Apr 8, 2024
1 parent 9cfc30f commit 9e4abd7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,10 @@ export const tagBackportReviewers = async ({
if (DEFAULT_BACKPORT_REVIEW_TEAM) {
// Optionally request a default review team for backports.
// Use team slug value. i.e electron/wg-releases => wg-releases
const slug = DEFAULT_BACKPORT_REVIEW_TEAM.split('/')[1];
teamReviewers.push(slug ? slug : DEFAULT_BACKPORT_REVIEW_TEAM);
const slug =
DEFAULT_BACKPORT_REVIEW_TEAM.split('/')[1] ||
DEFAULT_BACKPORT_REVIEW_TEAM;
teamReviewers.push(slug);
}

if (user) {
Expand Down

0 comments on commit 9e4abd7

Please sign in to comment.