Skip to content

Commit

Permalink
fix: used forked repo as default, not upstream
Browse files Browse the repository at this point in the history
Tested with `node ./bin/gh.mjs template-oss-fix --install --filter 'name:json-parse-even-better-errors'` after removing `~/projects/npm/json-parse-even-better-errors`
  • Loading branch information
hashtagchris committed Jul 23, 2024
1 parent 4d1e886 commit 45e469c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/gh/workers/_common.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ export const clone = ({ argv, item }) => [
status === 1 && output.includes('already exists') && 0,
},
],
// choose the forked repo as the default, for operations like template-oss-fix
// See https://github.com/cli/cli/issues/9261#issuecomment-2193936803
[ 'gh',

Check failure on line 20 in lib/gh/workers/_common.mjs

View workflow job for this annotation

GitHub Actions / Lint

There should be no space after '['
['repo', 'set-default', `${item.owner}/${item.name}`],
]

Check failure on line 22 in lib/gh/workers/_common.mjs

View workflow job for this annotation

GitHub Actions / Lint

Missing trailing comma
]

export const checkout = ({ argv }) => [
Expand Down

0 comments on commit 45e469c

Please sign in to comment.