mirror of
https://github.com/peter-evans/create-pull-request.git
synced 2026-12-05 05:02:57 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b011faafd |
No files matched your search
Vendored
+3
@@ -311,6 +311,9 @@ function createPullRequest(inputs) {
|
|||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
let gitAuthHelper;
|
let gitAuthHelper;
|
||||||
try {
|
try {
|
||||||
|
if (!inputs.token) {
|
||||||
|
throw new Error(`Input 'token' not supplied. Unable to continue.`);
|
||||||
|
}
|
||||||
// Get the repository path
|
// Get the repository path
|
||||||
const repoPath = utils.getRepoPath(inputs.path);
|
const repoPath = utils.getRepoPath(inputs.path);
|
||||||
// Create a git command manager
|
// Create a git command manager
|
||||||
|
|||||||
@@ -35,6 +35,10 @@ export interface Inputs {
|
|||||||
export async function createPullRequest(inputs: Inputs): Promise<void> {
|
export async function createPullRequest(inputs: Inputs): Promise<void> {
|
||||||
let gitAuthHelper
|
let gitAuthHelper
|
||||||
try {
|
try {
|
||||||
|
if (!inputs.token) {
|
||||||
|
throw new Error(`Input 'token' not supplied. Unable to continue.`)
|
||||||
|
}
|
||||||
|
|
||||||
// Get the repository path
|
// Get the repository path
|
||||||
const repoPath = utils.getRepoPath(inputs.path)
|
const repoPath = utils.getRepoPath(inputs.path)
|
||||||
// Create a git command manager
|
// Create a git command manager
|
||||||
|
|||||||
Reference in new issue
Block a user