Skip to content

github.com is hardcoded in CI badge template even with alternate host #518

@alametti

Description

@alametti

First-time user so I apologize if I am missing something.

I interactively created a new project with:

julia> using PkgTemplates

julia> Template(interactive=true)("JuliaActionsTest")
Template keywords to customize:
[press: Enter=toggle, a=all, n=none, d=done, q=abort]
[...]
   [X] host ("github.com")
[...]        
Select Git repository hosting service:
   github.com
   gitlab.com
   bitbucket.org
 > Other
Enter value for 'host' (default: github.com): git.mydomain.tld

However, this was the default README.md:

# JuliaActionsTest

[![Build Status](https://github.com/myusername/JuliaActionsTest.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/myusername/JuliaActionsTest.jl/actions/workflows/CI.yml?query=branch%3Amain)

I assume that this is because github.com is hardcoded in the template instead of using the user-defined host:

"https://github.com/{{{USER}}}/{{{PKG}}}.jl/actions/workflows/$(p.destination)/badge.svg?branch={{{BRANCH}}}",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions