Closed TimBarham closed 9 years ago
Ok, @stevengill, let me know what you think :smile:. In particular, do you think the update-release-notes
command will solve the issue you mentioned - picking the commits just for the desired module?
Wow! @TimBarham this looks great! I will keep testing and playing around with it. But I'd say merge it in. We can make fixes where needed as they come up.
Thanks @stevengill! Will merge.
This change includes logic to handle multiple modules within a single repo, and adds specific handling for the
cordova-serve
module in thecordova-lib
repo. It also generalizes some of the existing logic for modules within a repo (that formerly was specific tocordova-lib
). Specific changes:Cordova Serve
to the list of repos, it actually being a module within theCordova Lib
repo.computeReposFromFlag()
, the caller can request to just get repos (the default) or to get modules. If just repos, then where the list would include two entries that point to the same repo, only one is returned (the 'base' module is prioritized). When modules are requested, then all entries are returned. The idea here is that actions that work on repos only want unique repos. Actions that work on modules (like packaging, license checks etc) want modules.audit-license-headers
check-license
create-archive
last-week
print-tags
findMostRecentTag()
can now be provided a prefix, in which case it will find the most recent tag with that prefix. The prefix can be used by modules other than the primary module to differentiate their versions.update-release-notes
command that will update a module's release notes picking commits that are unique to the module's path (seerepoutil.getRepoIncludePath()
)repoutil.getRepoIncludePath()
method that determines a path to providegit log
so it only includes commits unique to a module. For the base module, this will include commits in the root directory and the base module's directory. For other modules, it will only include changes in the module's directory.