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 baa6021
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',
['repo', 'set-default', `${item.owner}/${item.name}`],
],
]

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

0 comments on commit baa6021

Please sign in to comment.