Skip to content

Cannot reproduce behavior documented in pull_request.synchronize #23051

Closed
@christianbundy

Description

@christianbundy

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/developers/webhooks-and-events/webhooks/webhook-events-and-payloads?actionType=synchronize#pull_request

What part(s) of the article would you like to see updated?

Unfortunately, I don't think the documentation is correct -- can someone double-check me here?

A pull request's head branch was updated. For example, the head branch was updated from the base branch, new commits were pushed to the head branch, or the base branch was changed.

Specifically, I cannot reproduce the "or the base branch was changed" logic.

Steps:

  1. Open PR with action on pull_request
  2. Workflow runs because of the opened event
  3. Edit PR to change base branch from main to some_other_ref (different SHA)

Expected: CI should run because the base branch has changed.

Actual: CI does not run.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamdevelopersContent related to developerswaiting for reviewIssue/PR is waiting for a writer's reviewwebhooksContent related to webhooks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions