Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding auto Fastlane plugin #2196

Open
wants to merge 15 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion packages/core/src/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
}
},
/** wait after abuse */
onAbuseLimit: (retryAfter: number, opts: ThrottleOpts) => {
onSecondaryRateLimit: (retryAfter: number, opts: ThrottleOpts) => {
this.logger.log.error(
`Went over abuse rate limit ${opts.method} ${
opts.url
Expand Down Expand Up @@ -852,7 +852,7 @@
}

/** Create a release for the GitHub project */
async publish(

Check warning on line 855 in packages/core/src/git.ts

View workflow job for this annotation

GitHub Actions / lint

Async method 'publish' has too many parameters (5). Maximum allowed is 4
releaseNotes: string,
tag: string,
prerelease = false,
Expand Down
5 changes: 4 additions & 1 deletion packages/core/src/semver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,14 @@ export function calculateSemVerBump(
});

const lastMergedCommitLabels = prLabels[0] || [];
console.log("Last Merged Commit Labels: ", lastMergedCommitLabels)
const releaseLabels = labelMap.get("release") || [];
console.log("Release Labels: ", releaseLabels)
const skipRelease = onlyPublishWithReleaseLabel
? !lastMergedCommitLabels.some((label) => releaseLabels.includes(label))
: lastMergedCommitLabels.some((label) => skipReleaseLabels.includes(label));

console.log("skipRelease Value: ", skipRelease)

if (skipRelease) {
return SEMVER.noVersion;
}
Expand Down
Loading