Skip to content

How to link back to the PR (GitHub commit status / Check API) #22

@elliot-nelson

Description

@elliot-nelson

If you define a normal Azure pipeline (triggering on trigger: or pr:), as it finishes it automatically adds the link to the finished build under the checks/statuses section of the PR.

However, if I use Azure/pipelines@v1 to trigger an Azure pipeline from a GitHub Action, it does not push back any kind of commit status on completion. Is there a way to pass either the relevant commit ref or PR number to the Azure build, so that when it finishes it can post back a Check?

That would be ideal; if it's not possible, I guess I can do it myself, but I still need to then somehow pass the PR number as a "parameter" to the Azure build, and then use that PR number to write something in my own pipeline yaml to call back to GitHub (maybe using the GitHub REST API). I'd be interested in any examples of something like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions