@maggioli-rd/sr-codeowners-plugin
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -0,1 +1,8 @@ | ||
# [1.2.0](https://gitlab.com/maggiolispa/ricerca-sviluppo/semantic-release-shareable-configurations/sr-codeowners-plugin/compare/v1.1.1...v1.2.0) (2024-1-9) | ||
### Features | ||
* add codeownersPath config ([01e7c4f](https://gitlab.com/maggiolispa/ricerca-sviluppo/semantic-release-shareable-configurations/sr-codeowners-plugin/commit/01e7c4f2ff32e44fca777ce32a568aa56c470adf)) | ||
## [1.1.1](https://gitlab.com/maggiolispa/ricerca-sviluppo/semantic-release-shareable-configurations/sr-codeowners-plugin/compare/v1.1.0...v1.1.1) (2024-01-09) | ||
@@ -2,0 +9,0 @@ |
export type PluginConfig = { | ||
excludeRegex: string; | ||
codeownersPath: string; | ||
limit: number; | ||
leaderboard: boolean; | ||
}; |
const DEFAULT_CONFIG = { | ||
excludeRegex: "", | ||
codeownersPath: ".gitlab/CODEOWNERS", | ||
limit: 3, | ||
leaderboard: true, | ||
leaderboard: true | ||
}; | ||
@@ -6,0 +7,0 @@ export const getConfig = (config) => { |
@@ -5,6 +5,9 @@ import SemanticReleaseError from "@semantic-release/error"; | ||
export const verifyConditions = async (pluginConfig, { logger }) => { | ||
const { excludeRegex, limit, leaderboard } = getConfig(pluginConfig); | ||
const { excludeRegex, codeownersPath, limit, leaderboard } = getConfig(pluginConfig); | ||
if (limit < 0) { | ||
throw new SemanticReleaseError("limit plugin config must be a positive integer"); | ||
} | ||
if (codeownersPath.length == 0 || codeownersPath == "") { | ||
throw new SemanticReleaseError("codeownersPath plugin config must be a non-empty string"); | ||
} | ||
await verifyCommand("which", ["git", "touch", "sed", "grep", "head"]); | ||
@@ -11,0 +14,0 @@ }; |
{ | ||
"name": "@maggioli-rd/sr-codeowners-plugin", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"description": "Maggioli Semantic Release Plugin: Codeowners", | ||
@@ -5,0 +5,0 @@ "files": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10324
85