Skip to content

Commit

Permalink
mark where 'Component' commit footer logic takes place
Browse files Browse the repository at this point in the history
  • Loading branch information
axieum committed Jul 30, 2023
1 parent 8eb2495 commit 5e67d02
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util/commit-split.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ export class CommitSplit {
* with a set of tracked package paths, then only consider paths for
* configured components. If `includeEmpty` is configured, then a commit
* that does not touch any files will be applied to all components'
* commits.
* commits. If a commit contains `Component: ...` footer(s), it will be
* included in those components as well any package paths it touches.
*
* @param {Commit[]} commits The commits to split
* @returns {Record<string, Commit[]>} Commits indexed by component path
*/
Expand Down Expand Up @@ -106,6 +108,7 @@ export class CommitSplit {
if (!splitCommits[pkgName]) splitCommits[pkgName] = [];
splitCommits[pkgName].push(commit);
}
// todo: handle 'Component: ...' commit footers
if (commit.files.length === 0 && this.includeEmpty) {
if (this.packagePaths) {
for (const pkgName of this.packagePaths) {
Expand Down

0 comments on commit 5e67d02

Please sign in to comment.