Skip to content

getLabels() call for a pull request results in downstream 404s #319

@benpatterson

Description

@benpatterson

When calling .getLabels() with a pull request object, the pull request object's url is overridden to include /issues/ in the path, rather than /pulls/. This can cause subsequent 404s when attempting to access pull request-specific API endpoints, like getCommits(), which require a pull request url.

See jenkinsci/ghprb-plugin#441 for some backstory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions