Skip to content

Github CI build badge is broken on default v1.x branch #5461

@EFord36

Description

@EFord36

Section/Content To Improve

In the README.md, on the default branch v1.x, in the badges, the 'CI' badge shows with a link to a shields issue rather than an actual CI status.

Suggested Improvement

Hi,

I saw that the 'CI' badge was broken for axios on the 'default' v1.x branch - it looks like it's #5046 that breaks it on v1.x - v1 and main are both fine.

Update the url to remove the shields issue link and link to the actual CI status.

Currently badge looks like:

Screenshot 2023-01-11 at 11 27 33

The shields link explains the issue, but in summary, these badges were changed in a breaking fashion that means they need a url update, so the badges were changed to just link to the github issue rather than showing the data.

Updating the url from:

https://img.shields.io/github/workflow/status/axios/axios/ci?label=CI&logo=github&style=flat-square

to

https://img.shields.io/github/actions/workflow/status/axios/axios/ci.yml?branch=v1.x&label=CI&logo=github&style=flat-square

solves this (although note that I've specified the branch as v1.x - unclear to me if this is correct, or if it should be main, or something else.

Relevant File(s)

README.md

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