mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
fix: add check for missing token input (#1324)
This commit is contained in:
parent
331d02c7e2
commit
2b011faafd
2 changed files with 7 additions and 0 deletions
|
@ -35,6 +35,10 @@ export interface Inputs {
|
|||
export async function createPullRequest(inputs: Inputs): Promise<void> {
|
||||
let gitAuthHelper
|
||||
try {
|
||||
if (!inputs.token) {
|
||||
throw new Error(`Input 'token' not supplied. Unable to continue.`)
|
||||
}
|
||||
|
||||
// Get the repository path
|
||||
const repoPath = utils.getRepoPath(inputs.path)
|
||||
// Create a git command manager
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue