Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create GH Action to reliably determine mergeability #1847

Merged
merged 7 commits into from
Mar 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/actions/isPullRequestMergeable/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 'Check if PR is mergeable'
description: "Github uses a background job to determine the mergeability of a PR, so this PR polls the GH API until the mergeability of a PR is resolved."
inputs:
PULL_REQUEST_NUMBER:
description: PR number
required: true
GITHUB_TOKEN:
description: "Github token for authentication"
required: true
outputs:
IS_MERGEABLE:
description: Whether or not the PR is mergeable
runs:
using: 'node12'
main: './index.js'
Loading