Skip to content

Fix an issue with getting latest status of master #63

Description

@haroon-sheikh

We currently get the commit status by hitting this endpoint https://api.github.com/repos/cucumber/cucumber-jvm/commits/master/status

But REF master does not always return the status and errors in 404.

Tasks

Change the api call to fetch status using the commit ref instead of master

  • Get the latest commit ref from master
  • Use the latest commit ref to fetch the commit status

E.g.

https://api.github.com/repos/cucumber/cucumber-jvm/commits/master/status returns ❌
https://api.github.com/repos/cucumber/cucumber-jvm/commits/bb97c6943659018e5e8496aff6a18d73eec06f26/status 🆗

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions