Expand description
§Changes
This module is responsible for managing the changes in the monorepo.
The changes are stored in a .changes.json
file in the root of the project.
§Example
{
"message": "chore(release): release new version",
"gitUserName": "Git Bot",
"gitUserEmail": "git.bot@domain.com",
"changes": {
"BRANCH-NAME": [{
"package": "xxx",
"releaseAs": "patch",
"deploy": ["int"]
}],
}
}
Structs§
- Change
- Data structure to store a change
- Changes
- Data structure to store changes
- Changes
File Data - Data structure to store changes file
- Changes
Options - Options to initialize the changes file
Functions§
- add_
change - Add a change to the changes file in the root of the project.
- change_
exist - Check if a change exists in the changes file in the root of the project.
- changes_
file_ exist - Check if a changes file exists in the root of the project.
- get_
change - Get all changes for a specific branch from the changes file in the root of the project.
- get_
changes - Get all changes from the changes file in the root of the project.
- get_
package_ change - Get a change for a specific package from the changes file in the root of the project.
- init_
changes - Initialize the changes file. If the file does not exist, it will create it with the default message. If the file exists, it will return the content of the file.
- remove_
change - Remove a change from the changes file in the root of the project.