-
Notifications
You must be signed in to change notification settings - Fork 305
update: change double negative variable and remove unused variable #460
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
Conversation
|
src/index.ts
Outdated
@@ -37,8 +37,8 @@ const getOptionalInput = (name: string) => core.getInput(name) || undefined; | |||
|
|||
let publishScript = core.getInput("publish"); | |||
let hasChangesets = changesets.length !== 0; | |||
const hasNonEmptyChangesets = changesets.some( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this wasn't broken - so let's not touch it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay!
@@ -318,7 +318,6 @@ export async function runVersion({ | |||
}: VersionOptions): Promise<RunVersionResult> { | |||
const octokit = setupOctokit(githubToken); | |||
|
|||
let repo = `${github.context.repo.owner}/${github.context.repo.repo}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK with this change - but the rest should be reverted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've reverted rest of it f426667
This reverts commit 13cd17e.
* Remove unused variable (changesets#460) * unused variable * double negative var * Revert "double negative var" This reverts commit 13cd17e. * Introduce an option to use the GitHub API to commit changes, for GPG (changesets#391) * Create tags on GitHub using API To allow for signed tags to be created, rather than use the git CLI to push tags, manually push each tag using the GitHub API, which will sign the tag using the built-in GitHub GPG key. * Use ghcommit to push changes To allow for all commits to be signed, use the GitHub API to push changes. * Add changeset version * Allow tag publish to fail, assume it was manually published * Add to changeset * Update @s0/ghcommit * Update ghcommit to fix missing ref bug * Make using GitHub API Optional Change this to a minor version bump, with a new feature that allows for using the GitHub API to create tags and commits. * Use a strategy pattern for GitHub API vs CLI usage * refactor git interactions * fix mock thing * usechangesets pkg * switch to `commitMode` --------- Co-authored-by: Mateusz Burzyński <[email protected]> * Version Packages (changesets#463) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: Changwan <[email protected]> Co-authored-by: Sam Lanning <[email protected]> Co-authored-by: Mateusz Burzyński <[email protected]> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Update double negative variable for readability, and we don't use repo variable as we directly send
github.context.repo.repo
to octokit