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

semantic-release-github-pr

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

semantic-release-github-pr

A `semantic-release` plugin that creates a changelog comment on Github PRs.

  • 1.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
469
increased by154.89%
Maintainers
1
Weekly downloads
 
Created
Source

semantic-release-github-pr

Build Status npm semantic-release

Preview the semantic release notes that would result from merging a Github PR.

image

Instead of publishing a new release, this semantic-release plugin will post a comment to any open Github PRs with a preview of the generated release notes.

Install

npm install -D semantic-release-github-pr

Configuration

This plugin is a complement to semantic-release. It is assumed the user is already fully familiar with that package and its workflow.

Github

Github authentication must be configured for semantic-relase.

Usage

The easiest way to use the plugin is through the CLI. If more flexibility is needed, the plugin can also be set through the semantic-release config in package.json.

CLI

Post a comment to any open Github PRs with a matching base branch and git head (previous comments generated by this plugin will be removed).

npx semantic-release-github-pr

The semantic-release-github-pr command is provided as a convenience. Internally, it simply wraps the semantic-release command, applying the necessary publish plugin (see config below). Otherwise, it works just the same and accepts the same options .

package.json config

If more flexibility is needed, this package provides a publish plugin.

Default configuration (as encapsulated in the semantic-release-github-pr command):

{
  "release": {
    "publish": "semantic-release-github-pr",
    "verifyConditions": "@semantic-release/github"
  }
}

CI

This plugin is best used with a CI build process to fully automate the posting of comments in Github PRs. Ideally, it should run whenever a relevant PR is opened.

Travis

By default, Travis will trigger a build whenever a PR is opened (pr) or updated (push) in the corresponding Github repo.

after_success:
  - "npx semantic-release-github-pr"

CircleCI

Unfortunately, CircleCI only supports building on push, not when a PR is created. This limits the usefulness of the plugin somewhat, as a build will have to be triggered manually after a PR is opened.

test:
  post:
    - "npx semantic-release-github-pr"

FAQs

Package last updated on 05 Dec 2017

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