Skip to content

Commit

Permalink
Added required parameter for schedule event
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-charousset committed Mar 18, 2022
1 parent 301a01e commit a34c6f8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@ inputs:
repo-token:
description: 'Must be able to read all members of organization'
required: true
base:
repo:
description: 'owner/repo-name'
required: true
destination:
description: 'Name of the destination branch'
required: true
branch:
source:
description: 'Name of the source branch'
required: true
title:
Expand Down
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8621,8 +8621,9 @@ async function createPullRequest(repoId, base, branch, title, reviewers, labels)

async function run() {
const context = await github.context;
let owner = context.payload.repository.full_name.split('/')[0];
let repo = context.payload.repository.full_name.split('/')[1];
let repoInfo = core.getInput('repo');
let owner = repoInfo.split('/')[0];
let repo = repoInfo.split('/')[1];
let title = core.getInput('title');
let teamReviewers = core.getInput('team-reviewers').split(',');
let userReviewers = core.getInput('user-reviewers').split(',');
Expand Down
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,9 @@ async function createPullRequest(repoId, base, branch, title, reviewers, labels)

async function run() {
const context = await github.context;
let owner = context.payload.repository.full_name.split('/')[0];
let repo = context.payload.repository.full_name.split('/')[1];
let repoInfo = core.getInput('repo');
let owner = repoInfo.split('/')[0];
let repo = repoInfo.split('/')[1];
let title = core.getInput('title');
let teamReviewers = core.getInput('team-reviewers').split(',');
let userReviewers = core.getInput('user-reviewers').split(',');
Expand Down

0 comments on commit a34c6f8

Please sign in to comment.