microsoft / microsoft/beachball

Change command fetches twice

Open
#565 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
815
Forks
93
Avg merge
2d 13h
Merged PRs (30d)
12

Description

The change command runs git fetch at least twice. Example from the beachball repo:

$ yarn change
yarn run v1.22.10
$ node ./lib/cli.js change
Checking for changes against "origin/master"
fetching latest from remotes "origin/master"
Found changes in the following packages: 
  beachball
fetching latest from remotes "origin/master"

Please describe the changes for: beachball

Ideally it should only fetch once.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at lib/cli.js and run yarn change using the example output to trace where the command invokes git fetch. Done means the change command fetches the latest origin/master only once while preserving the package-detection and prompt behavior shown.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, typescript
Domain
cli, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.