UNPKG

is-fork-pr

Version:

Returns true if CI is building a pull request from a remote fork

13 lines (10 loc) 229 B
#!/usr/bin/env node const { getCiName, isForkPr } = require('..') if (getCiName()) { console.log('detected CI', getCiName()) } if (isForkPr()) { console.log('forked PR detected') } else { console.log('NOT a forked PR') }