Skip to content

Remove usage of process.chdir() #475

@s0

Description

@s0

See: #473 (comment)

As of #473, we now explicitly set the cwd argument for all subprocess calls. As such, it shouldn't be necessary to change the working directory of the current process.

We need to ensure that usage of commitChangesFromRepo (which makes a call to process.cwd()) also works correctly for our use-cases before we can remove this process call.

Namely, we need a way for running this action to work when:

  • a repository is checked-out into a sub-directory.
  • cwd is set to a subdirectory of that subdirectory

In particular, we should:

  • Update commitChangesFromRepo so that repoDirectory can be used to recursively start a search for the root of a repository.
  • Specify repoDirectory to be explicit cwd, as with addFromDirectory.

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions