From db875662766249c049b2dcd85293892d61cb0b51 Mon Sep 17 00:00:00 2001 From: Julian Gruber Date: Mon, 29 Mar 2021 10:45:30 +0200 Subject: [PATCH] 1.5.0 --- dist/index.js | 11 ++++++++++- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 52006b2..80523aa 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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 = @@ -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) diff --git a/package-lock.json b/package-lock.json index f6f6275..473af4c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "find-pull-request-action", - "version": "1.4.0", + "version": "1.5.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 02639fc..4b13500 100644 --- a/package.json +++ b/package.json @@ -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",