Thanks to visit codestin.com
Credit goes to github.com

Skip to content

use_codecov_badge() URL seems incorrect now #1991

@DavisVaughan

Description

@DavisVaughan

i.e. here

url <- glue("https://app.codecov.io/gh/{repo_spec}?branch={default_branch}")

It generates a link like this:

https://app.codecov.io/gh/tidyverse/tidyr?branch=main

but if you go to that, it will still show master. It does not seem to know how to handle ?branch=main and just ignores it, and then shows what it thinks is the default branch, which is master unless you've changed it in the codecov settings.

It seems like this might be a more correct link?

https://app.codecov.io/gh/tidyverse/tidyr/tree/main

That shows main for me

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