Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
github-pr-release
Advanced tools
Create a release pull request by using Github API. Inspired by git-pr-release.
Create a release pull request and return Promise.
You must pass a config as an argument.
var release = require('github-pr-release')
var config = {
token: 'your github token',
owner: 'uiureo',
repo: 'awesome-web-app',
head: 'master', // optional
base: 'production', // optional
template: '/path/to/template.mustache' // optional
}
release(config).then(function (pullRequest) {
// success
})
pullRequest
is an object that github api returns.
See: https://developer.github.com/v3/pulls/#get-a-single-pull-request
npm install github-pr-release
If one of pull requests of which consist a release pull request has a title like "Bump to v1.0", the title of the release pull request becomes "Release v1.0". Otherwise, it uses timestamps like "Release 2000-01-01 00:00:00" in local timezone.
You can specify a template to change the message format. Pass a template path to config.template
.
release({
token: 'token'
owner: 'uiureo',
repo: 'awesome-web-app',
template: './template.mustache'
})
The default template is below. The first line is treated as the title.
Release {{version}}
{{#prs}}
- [ ] #{{number}} {{title}} {{#assignee}}@{{login}}{{/assignee}}{{^assignee}}{{#user}}@{{login}}{{/user}}{{/assignee}}
{{/prs}}
release = require('github-pr-release')
module.exports = (robot) ->
robot.respond /release/i, (msg) ->
release(config).then((pullRequest) ->
msg.send pullRequest.html_url
)
.catch((err) ->
msg.send("Create release PR failed: " + err.message)
)
MIT
FAQs
Create a release pull request by Github API
The npm package github-pr-release receives a total of 3,163 weekly downloads. As such, github-pr-release popularity was classified as popular.
We found that github-pr-release demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.