
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
danger-plugin-pull-request
Advanced tools
A Danger plugin to verify the completion of a pull request. Currently support GitHub and GitLab.
Install:
yarn add danger-plugin-pull-request --dev
At a glance:
dangerfile.js
import * as pullRequest from 'danger-plugin-pull-request'
pullRequest.checkAssignees();
pullRequest.checkDescription(1000);
pullRequest.checkTitle(/^\[[A-Za-z]+-\d+\]/);
pullRequest.checkPRSize(50);
pullRequest.checkMergeSquashChecked(); // GitLab only
pullRequest.checkDeleteSourceBranchChecked(); // GitLab only
Checks is the current pull request has any assignees.
Arguments:
reporter] (Function): The reporter (message, warn or fail) to call if the pull request has no assignees.
failChecks if the description of the pull request is long enough.
Arguments:
minimumLength (Number): The minimum length for a description to be valid.reporter] (Function): The reporter (message, warn or fail) to call if the pull request's description is too short.
failChecks if the title of the pull request matches a given pattern.
Arguments:
pattern (RegExp): The pattern to test the title with.patternMessage (String): Readable pattern message for reporter message.reporter] (Function): The reporter (message, warn or fail) to call if the pull request's title is invalid.
failChecks if a pull request is too big.
Arguments:
maxSize (Number): The maximum changed files count to be valid.reporter] (Function): The reporter (message, warn or fail) to call if the pull request's description is too short.
failChecks if merge squash checked. (GitLab only)
Arguments:
reporter] (Function): The reporter (message, warn or fail) to call if the pull request's description is too short.
failChecks if delete source branch checked. (GitLab only)
Arguments:
reporter] (Function): The reporter (message, warn or fail) to call if the pull request's description is too short.
failSee the GitHub release history.
See CONTRIBUTING.md.
FAQs
A Danger plugin to verify the completion of a pull request
We found that danger-plugin-pull-request 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.