Skip to content

Commit

Permalink
Merge pull request #1847 from Expensify/Rory-ReliableMergeability
Browse files Browse the repository at this point in the history
Create GH Action to reliably determine mergeability
  • Loading branch information
roryabraham authored Mar 17, 2021
2 parents b015f33 + 17ddb4e commit 13fb5fd
Show file tree
Hide file tree
Showing 8 changed files with 14,081 additions and 11 deletions.
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

0 comments on commit 13fb5fd

Please sign in to comment.