Skip to content

Commit

Permalink
Display + link to default banch in GH badge (#321)
Browse files Browse the repository at this point in the history
* Display + link to default banch in GH badge

* More consistent setup + tests

* Use destination of workflow

* Update Project.toml
  • Loading branch information
devmotion authored Oct 27, 2021
1 parent b5ed7c0 commit 336ac2f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "PkgTemplates"
uuid = "14b8a8f1-9102-5b29-a752-f990bacb7fe1"
authors = ["Chris de Graaf", "Invenia Technical Computing Corporation"]
version = "0.7.21"
version = "0.7.22"

[deps]
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/ci.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ source(p::GitHubActions) = p.file
destination(p::GitHubActions) = joinpath(".github", "workflows", p.destination)
tags(::GitHubActions) = "<<", ">>"

badges(::GitHubActions) = Badge(
badges(p::GitHubActions) = Badge(
"Build Status",
"https://github.com/{{{USER}}}/{{{PKG}}}.jl/workflows/CI/badge.svg",
"https://github.com/{{{USER}}}/{{{PKG}}}.jl/actions",
"https://github.com/{{{USER}}}/{{{PKG}}}.jl/actions/workflows/$(p.destination)/badge.svg?branch={{{BRANCH}}}",
"https://github.com/{{{USER}}}/{{{PKG}}}.jl/actions/workflows/$(p.destination)?query=branch%3A{{{BRANCH}}}",
)

function view(p::GitHubActions, t::Template, pkg::AbstractString)
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/AllPlugins/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AllPlugins

[![Build Status](https://github.com/tester/AllPlugins.jl/workflows/CI/badge.svg)](https://github.com/tester/AllPlugins.jl/actions)
[![Build Status](https://github.com/tester/AllPlugins.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/tester/AllPlugins.jl/actions/workflows/CI.yml?query=branch%3Amain)
[![Build Status](https://github.com/tester/AllPlugins.jl/badges/main/pipeline.svg)](https://github.com/tester/AllPlugins.jl/pipelines)
[![Coverage](https://github.com/tester/AllPlugins.jl/badges/main/coverage.svg)](https://github.com/tester/AllPlugins.jl/commits/main)
[![Build Status](https://travis-ci.com/tester/AllPlugins.jl.svg?branch=main)](https://travis-ci.com/tester/AllPlugins.jl)
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/DocumenterGitHubActions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://tester.github.io/DocumenterGitHubActions.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://tester.github.io/DocumenterGitHubActions.jl/dev)
[![Build Status](https://github.com/tester/DocumenterGitHubActions.jl/workflows/CI/badge.svg)](https://github.com/tester/DocumenterGitHubActions.jl/actions)
[![Build Status](https://github.com/tester/DocumenterGitHubActions.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/tester/DocumenterGitHubActions.jl/actions/workflows/CI.yml?query=branch%3Amain)
2 changes: 1 addition & 1 deletion test/fixtures/WackyOptions/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WackyOptions [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://tester.github.io/WackyOptions.jl/stable) [![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://tester.github.io/WackyOptions.jl/dev) [![Build Status](https://github.com/tester/WackyOptions.jl/workflows/CI/badge.svg)](https://github.com/tester/WackyOptions.jl/actions) [![Build Status](https://x.com/tester/WackyOptions.jl/badges/whackybranch/pipeline.svg)](https://x.com/tester/WackyOptions.jl/pipelines) [![Build Status](https://travis-ci.com/tester/WackyOptions.jl.svg?branch=whackybranch)](https://travis-ci.com/tester/WackyOptions.jl) [![Build Status](https://ci.appveyor.com/api/projects/status/github/tester/WackyOptions.jl?svg=true)](https://ci.appveyor.com/project/tester/WackyOptions-jl) [![Build Status](https://cloud.drone.io/api/badges/tester/WackyOptions.jl/status.svg)](https://cloud.drone.io/tester/WackyOptions.jl) [![Build Status](https://api.cirrus-ci.com/github/tester/WackyOptions.jl.svg)](https://cirrus-ci.com/github/tester/WackyOptions.jl) [![Coverage](https://coveralls.io/repos/github/tester/WackyOptions.jl/badge.svg?branch=whackybranch)](https://coveralls.io/github/tester/WackyOptions.jl?branch=whackybranch)
# WackyOptions [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://tester.github.io/WackyOptions.jl/stable) [![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://tester.github.io/WackyOptions.jl/dev) [![Build Status](https://github.com/tester/WackyOptions.jl/actions/workflows/CI.yml/badge.svg?branch=whackybranch)](https://github.com/tester/WackyOptions.jl/actions/workflows/CI.yml?query=branch%3Awhackybranch) [![Build Status](https://x.com/tester/WackyOptions.jl/badges/whackybranch/pipeline.svg)](https://x.com/tester/WackyOptions.jl/pipelines) [![Build Status](https://travis-ci.com/tester/WackyOptions.jl.svg?branch=whackybranch)](https://travis-ci.com/tester/WackyOptions.jl) [![Build Status](https://ci.appveyor.com/api/projects/status/github/tester/WackyOptions.jl?svg=true)](https://ci.appveyor.com/project/tester/WackyOptions-jl) [![Build Status](https://cloud.drone.io/api/badges/tester/WackyOptions.jl/status.svg)](https://cloud.drone.io/tester/WackyOptions.jl) [![Build Status](https://api.cirrus-ci.com/github/tester/WackyOptions.jl.svg)](https://cirrus-ci.com/github/tester/WackyOptions.jl) [![Coverage](https://coveralls.io/repos/github/tester/WackyOptions.jl/badge.svg?branch=whackybranch)](https://coveralls.io/github/tester/WackyOptions.jl?branch=whackybranch)

## Citing

Expand Down

2 comments on commit 336ac2f

@nickrobinson251
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/47587

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.22 -m "<description of version>" 336ac2f141d549d03c073c3f5e06a0dbb3b0589f
git push origin v0.7.22

Please sign in to comment.