Skip to content

Conversation

s0
Copy link
Member

@s0 s0 commented May 9, 2025

This PR addresses #39 by ntroducing breaking changes to how we require directories to be specified in the arguments to 2 key functions.

Full information in the .changesets folder, but TL;DR:

  • cwd is now used as the directory name in both files (brings consistency with https://github.com/changesets/action)
  • cwd is required (no default use of process.cwd())
  • commitChangesFromRepo args have been simplified to only require 1 directory

fixes #39

s0 added 2 commits May 10, 2025 00:43
- Use `cwd` consistently across functions
- Remove unnecessary extra directory args for `commitChangesFromRepo`
- Introduce `recursivelyFindRoot` argument
@s0 s0 enabled auto-merge (squash) May 9, 2025 23:51
- For `commitFilesFromDirectory`:
- Rename `workingDirectory` to `cwd` for consistency across repos,
and utils like `exec`
- Make `cwd` a required argument
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be OK to make this optional and just default to process.cwd(). In changesets/action we'd still provide it explicitly though.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, decided being explicit was probably better anyway, given how easy it is to use process.cwd() if that's what people wanted. 😄

Copy link
Member

@Andarist Andarist left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the changes!

@s0 s0 merged commit 4117e39 into main May 10, 2025
4 checks passed
@s0 s0 deleted the repo-args-cleanup branch May 10, 2025 08:51
@github-actions github-actions bot mentioned this pull request May 10, 2025
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.

Allow for recursive directory search from specific folder
2 participants