Skip to content

Commit

Permalink
update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pngwn committed Jan 30, 2024
1 parent 18187f7 commit 41ab81d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/find-pr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ interface PullRequestResponse {
type PullRequests = PullRequestResponse["repository"]["pullRequests"]["edges"];

async function run() {
console.log(JSON.stringify(context, null, 2));
const octokit = getOctokit(getInput("github_token"));
const { repo, owner } = context.repo;

Expand Down Expand Up @@ -95,6 +94,16 @@ async function run() {
) {
const [source_repo, source_branch, pr_number, sha, mergeable, merge_sha] =
get_pr_details_from_refs(open_pull_requests);
console.log({
source_repo,
source_branch,
pr_number,
sha,
mergeable,
merge_sha,
});

console.log(JSON.stringify(open_pull_requests, null, 2));

if (mergeable === "CONFLICTING" || mergeable === "UNKNOWN") {
setOutput("mergeable", false);
Expand Down

0 comments on commit 41ab81d

Please sign in to comment.