1.14.0 • Published 20 days ago
@maggioli-rd/sr-codeowners-plugin v1.14.0
@maggioli-rd/sr-codeowners-plugin
Step | Description |
---|---|
verifyConditions | Execute a shell command to verify if the CODEOWNERS file can be created. |
verifyRelease | Execute a shell command to create the CODEOWNERS file. |
Configuration
Options | Description | Default |
---|---|---|
excludeRegex | RegEx to exclude authors when creating the CODEOWNERS file. | "" |
header | String inserted in the first line of the CODEOWNERS file as header. | Autogen comment (see code) |
codeownersPath | Path where to create the CODEOWNERS file. | .gitlab/CODEOWNERS |
limit | Number of authors obtained from the ranking of authors with the most commits. | 3 |
leaderboard | Generates the ranking of authors with the most commits and includes it as a comment in the CODEOWNERS file. | true |
Install
$ npm install @maggioli-rd/sr-codeowners-plugin -D
Usage
The plugin can be configured in the semantic-release configuration file:
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/git", {
"assets": [
"CHANGELOG.md",
"pubspec.yaml",
"CODEOWNERS"
],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
}],
["@maggioli-rd/sr-codeowners-plugin", {
"excludeRegex": "semantic-release-bot",
"codeownersPath": "CODEOWNERS",
"limit": 2
}]
]
}
Shareable-Configuration Extension Example (release.config.js)
var config = require('@maggioli-rd/semantic-release-flutter');
var gitPluginIndex = config.plugins.findIndex((plugin) => plugin.includes("@semantic-release/git"))
config.plugins[gitPluginIndex][1]["assets"].push(".gitlab/CODEOWNERS")
config.plugins.push(
["@maggioli-rd/sr-codeowners-plugin", {
"excludeRegex": "RenovateBot|semantic-release-bot",
"limit": 5,
"header": "My personal header"
}]
)
module.exports = config
Resources
1.14.0
20 days ago
1.13.0
20 days ago
1.12.7
21 days ago
1.12.6
22 days ago
1.12.5
27 days ago
1.12.4
28 days ago
1.12.3
1 month ago
1.12.2
1 month ago
1.12.1
1 month ago
1.12.0
2 months ago
1.11.1
2 months ago
1.11.0
2 months ago
1.10.0
2 months ago
1.9.1
2 months ago
1.9.0
2 months ago
1.8.2
3 months ago
1.8.1
3 months ago
1.8.0
3 months ago
1.6.2
3 months ago
1.7.0
3 months ago
1.6.1
3 months ago
1.6.0
3 months ago
1.5.1
4 months ago
1.5.0
4 months ago
1.4.0
4 months ago
1.2.0
4 months ago
1.1.1
4 months ago
1.2.2
4 months ago
1.3.0
4 months ago
1.2.1
4 months ago
1.1.0
4 months ago
1.0.5
4 months ago
1.0.4
4 months ago
1.0.3
4 months ago
1.0.1
4 months ago
1.0.0
4 months ago
0.0.1
4 months ago