Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Asciidoc-Variables for branch names #1556

Open
bmarwell opened this issue Jun 12, 2022 · 3 comments
Open

Support Asciidoc-Variables for branch names #1556

bmarwell opened this issue Jun 12, 2022 · 3 comments

Comments

@bmarwell
Copy link

Hi,

you can create status badges like so:

[![Maven CI](https://github.com/bmarwell/cowsay-liberty-feature/actions/workflows/maven.yaml/badge.svg?branch=main)](https://github.com/bmarwell/cowsay-liberty-feature/actions/workflows/maven.yaml)

For asciidoc, a branch name variable seems feasible, but is undocumented.
Example: {github.branchname} or similar.

image:https://github.com/bmarwell/cowsay-liberty-feature/actions/workflows/maven.yaml/badge.svg?branch={github.branchname}[link="https://github.com/bmarwell/cowsay-liberty-feature/actions/workflows/maven.yaml",title="Maven CI"]
@gem-cp
Copy link

gem-cp commented Sep 12, 2023

I need the github branchname in asciidoc too. I woukd like to use it for dynamic badges from shields.io to set the right version of an openapi interface in develop, main and feature branches. Right now the badge is only working for one branch.

Example for branch develop:
image:https://img.shields.io/badge/dynamic/yaml?url=https%3A%2F%2Fraw.githubusercontent.com%2Fgematik%2Fapi-kim%2Fdevelop%2Fsrc%2Fopenapi%2FServiceInformation.yaml&query=%24.info.version&style=plastic&logo=openapiinitiative&logoColor=green&label=ServiceInformation&color=green[link="src/openapi/ServiceInformation.yaml"]

Copy link

Stale issue message

@bmarwell
Copy link
Author

Stale issue message (still requested)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants