markup icon indicating copy to clipboard operation
markup copied to clipboard

Placeholder for branch name in readme.md file

Open borismod opened this issue 10 years ago β€’ 42 comments

Readme.md file usually contains badges of external tools, like CI, code coverage etc. These badges consist of an image and a link. Both the image and the link contain a branch in order to represent the current status of the branch.

An example of such badge: Coverage Status

I would like to be able to specify a placeholder of a branch name and it would be automatically replaced with the current branch.

borismod avatar Jul 12 '16 12:07 borismod

I think your best option is to use a pre-commit hook to update the badges.

0xced avatar Jul 12 '16 20:07 0xced

Thank you for your reply. It seems like a good workaround. I manage many repositories and handle these hooks would be tedious. I would prefer a placeholder for the current branch. On Jul 12, 2016 11:34 PM, "CΓ©dric Luthi" [email protected] wrote:

I think your best option is to use a pre-commit hook http://stackoverflow.com/questions/18673694/referencing-current-branch-in-github-readme-md/35368808#35368808 to update the badges.

β€” You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/github/markup/issues/913#issuecomment-232171704, or mute the thread https://github.com/notifications/unsubscribe/AAM0M8GoYcKiN5b_85HJEaFZQu0YWuFpks5qU_pMgaJpZM4JKU-D .

borismod avatar Jul 13 '16 05:07 borismod

This is finally a good idea to solve this problem, I think everybody who has more than one branch is dealing with this issue and precommit hooks are not the solution. To be honest I would like to see more placeholders so I can add there organization and repository as well, so when somebody forks the repo he wouldn't see "green".

From the development perspective I really don't see any obstacles here, it's a very noninvasive addition to the markdown.

kobalicek avatar Aug 22 '16 16:08 kobalicek

@kobalicek I agree with placeholders for user/organization name as well. It would be really great!

borismod avatar Aug 23 '16 05:08 borismod

@borismod I guess we only need more people to support this issue and it will get implemented, right :)?

kobalicek avatar Aug 23 '16 12:08 kobalicek

:+1:

wakatta avatar Sep 09 '16 08:09 wakatta

:+1:

mrexodia avatar Sep 13 '16 18:09 mrexodia

:+1:

refi64 avatar Sep 13 '16 20:09 refi64

πŸ‘

1forh avatar Sep 15 '16 15:09 1forh

πŸ‘

andreassiegel avatar Sep 27 '16 09:09 andreassiegel

πŸ‘

Miljar avatar Oct 07 '16 17:10 Miljar

:+1:

gaborbernat avatar Nov 01 '16 09:11 gaborbernat

I support it!

carlosds730 avatar Nov 21 '16 15:11 carlosds730

Related: #472, #101, #84, this is a recurring request :)

I'd love it though!

sc0ttkclark avatar Jan 03 '17 03:01 sc0ttkclark

Need that ! +1

nicolargo avatar Jan 07 '17 09:01 nicolargo

+1

gborri avatar Jan 09 '17 08:01 gborri

+1

jkribeiro avatar Feb 27 '17 12:02 jkribeiro

πŸ‘

csoltenborn avatar Mar 05 '17 16:03 csoltenborn

Much needed feature for showing branch respective badges in Github Readme. Any update on this request?

Headcult avatar Mar 08 '17 10:03 Headcult

+1

mmitche avatar Mar 08 '17 15:03 mmitche