Skip to content

Print correct URL for pull requests in an other GitHub organization #63

@pothos

Description

@pothos

For pull requests that were done in upstream repositories, the wrong PR link is printed because the flatcar-linux organization is used by default:
https://github.com/kinvolk/flatcar-build-scripts/blob/1adc2ce106c34465e14d9600f2295e151bca292d/coreos-overlay-diff.py#L81
Through some heuristic based on the merge commit we can try to resolve https://github.com/coreos/systemd/pull/XY or https://github.com/systemd-stable/systemd/pull/XY instead of https://github.com/flatcar-linux/systemd/pull/XY

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