Skip to content

No check suite event for foreign pull reuqests #24622

Discussion options

You must be logged in to vote

For those like me who might find this and wonder how the suggested workaround affects the tutorial.

In Step 1.1 Updating app permissions, perform the following additional steps:

  • In the “Permissions” section, find “Pull requests”, and select  Read-only  in the Access dropdown next to it.
  • In the “Subscribe to events” section, select  Pull Request  to subscribe to that event.

In Step 1.2 Add Event Handling, paste this modified version of the check_suite route so that it can also handle a pull_request event.

case request.env['HTTP_X_GITHUB_EVENT']
when 'check_suite'
  # A new check_suite has been created. Create a new check run with status queued
  if @payload['action'] == 'requested' || @p…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants