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

@auto-it/pr-body-labels

Package Overview
Dependencies
Maintainers
0
Versions
177
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@auto-it/pr-body-labels

Allow outside contributors to indicate what semver label should be applied to the Pull Request

  • 11.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
239
decreased by-58.58%
Maintainers
0
Weekly downloads
 
Created
Source

Pr-Body-Labels Plugin

Allow outside contributors to indicate what semver label should be applied to the Pull Request. If you run auto pr-check from your CI this plugin will look at the PR body to find what label to apply.

Installation

This plugin is not included with the auto CLI installed via NPM. To install:

npm i --save-dev @auto-it/pr-body-labels
# or
yarn add -D @auto-it/pr-body-labels

Usage

{
  "plugins": [
    ["pr-body-labels"]
    // other plugins
  ]
}

Then something like the following to your .github/PULL_REQUEST_TEMPLATE.md. The only part of this that really matters is a markdown checkbox + one of your labels. You control what labels an outside contributor can apply through the PR body. This example only exposes the semantic versioning labels but you can include any label in your project.

## Change Type

Indicate the type of change your pull request is:

- [ ] `patch`
- [ ] `minor`
- [ ] `major`

Options

disabledLabels

Labels the user cannot apply through the PR.

{
  "plugins": [["pr-body-labels", { "disabledLabels": ["release"] }]]
}

removeStaleLabels

When using the plugin it will use the checklist in your PR body as the source of truth. This means that manually added label that are present in the pr-body will be removed when pr-check runs again. To disable this behavior use the removeStaleLabels option.

{
  "plugins": [["pr-body-labels", { "removeStaleLabels": false }]]
}

Keywords

FAQs

Package last updated on 25 Oct 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