Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maggioli-rd/sr-codeowners-plugin

Package Overview
Dependencies
Maintainers
0
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maggioli-rd/sr-codeowners-plugin

Maggioli Semantic Release Plugin: Codeowners

  • 1.30.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@maggioli-rd/sr-codeowners-plugin

npm next version

StepDescription
verifyConditionsExecute a shell command to verify if the CODEOWNERS file can be created.
verifyReleaseExecute a shell command to create the CODEOWNERS file.

Configuration

OptionsDescriptionDefault
excludeRegexRegEx to exclude authors when creating the CODEOWNERS file.""
headerString inserted in the first line of the CODEOWNERS file as header.Autogen comment (see code)
codeownersPathPath where to create the CODEOWNERS file..gitlab/CODEOWNERS
limitNumber of authors obtained from the ranking of authors with the most commits.3
leaderboardGenerates 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

Keywords

FAQs

Package last updated on 09 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc