-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new
npm run pr
task, used for automating the creation of PRs (i…
…ncluding uplifts) Accompanies brave/brave-core#1632 Helps to fix brave/devops#672
- Loading branch information
Showing
4 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const config = require('../lib/config') | ||
const util = require('../lib/util') | ||
|
||
const pr = (options) => { | ||
config.update(options) | ||
|
||
const cmdOptions = config.defaultOptions | ||
cmdOptions.cwd = config.projects['brave-core'].dir | ||
// use system python because depot tools fails on upload with TLS error | ||
cmdOptions.env = config.addPathToEnv(cmdOptions.env, process.env.PATH, true) | ||
util.run('python', ['script/pr.py', '-v'], cmdOptions) | ||
} | ||
|
||
module.exports = pr | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule depot_tools
updated
from eb2767 to a1fbdf