Skip to content

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

Merged
merged 3 commits into from
Apr 22, 2025

Conversation

WooWan
Copy link
Contributor

@WooWan WooWan commented Apr 21, 2025

Update double negative variable for readability, and we don't use repo variable as we directly send github.context.repo.repo to octokit

Copy link

changeset-bot bot commented Apr 21, 2025

⚠️ No Changeset found

Latest commit: f426667

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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(
Copy link
Member

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

Copy link
Contributor Author

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}`;
Copy link
Member

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

Copy link
Contributor Author

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

@WooWan WooWan requested a review from Andarist April 22, 2025 05:03
@Andarist Andarist merged commit bd5d1d2 into changesets:main Apr 22, 2025
NotAwar added a commit to Bane-NOR/changesets-action that referenced this pull request May 5, 2025
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants