Skip to content

Commit

Permalink
1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Mar 29, 2021
1 parent 5dea519 commit db87566
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2084,10 +2084,13 @@ const main = async () => {
const branch = core.getInput('branch')
const base = core.getInput('base')
const author = core.getInput('author')
const state = core.getInput('state')
const sort = core.getInput('sort')
const direction = core.getInput('direction')

const query = {
...context.repo,
state: 'open'
state
}
if (branch) {
query.head =
Expand All @@ -2096,6 +2099,12 @@ const main = async () => {
if (base) {
query.base = base
}
if (sort) {
query.sort = sort
}
if (direction) {
query.direction = direction
}

const octokit = new GitHub(token)

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "find-pull-request-action",
"private": true,
"version": "1.4.0",
"version": "1.5.0",
"license": "MIT",
"description": "GitHub Action for finding pull requests",
"repository": "juliangruber/find-pull-request-action",
Expand Down

0 comments on commit db87566

Please sign in to comment.