-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(manifest): package paths sharing same prefix being shadowed in commit-split #848
Conversation
Codecov Report
@@ Coverage Diff @@
## master #848 +/- ##
=======================================
Coverage 93.77% 93.77%
=======================================
Files 64 64
Lines 9203 9203
Branches 988 988
=======================================
Hits 8630 8630
Misses 570 570
Partials 3 3
Continue to review full report at Codecov.
|
src/commit-split.ts
Outdated
@@ -96,7 +96,7 @@ export class CommitSplit { | |||
let pkgName; | |||
if (this.packagePaths) { | |||
// only track paths under this.packagePaths | |||
pkgName = this.packagePaths.find(p => file.indexOf(p) === 0); | |||
pkgName = this.packagePaths.find(p => file.indexOf(p + '/') === 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit, would you mind making this: `${p}/`
const fooBarCommit = buildMockCommit('fix(foobar): fix foobar', [ | ||
fooBarPath + '/foobar.ts', | ||
]); | ||
const foobarCommit = buildMockCommit('fix(foo+bar): fix foo+bar', [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here, would you mind making these backticks?
017fb8e
to
2c5da6d
Compare
Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, one of your required reviews was not approved, or there is a do not merge label. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot. |
No description provided.