Placeholder for branch name in readme.md file
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.
I would like to be able to specify a placeholder of a branch name and it would be automatically replaced with the current branch.
I think your best option is to use a pre-commit hook to update the badges.
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 .
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 I agree with placeholders for user/organization name as well. It would be really great!
@borismod I guess we only need more people to support this issue and it will get implemented, right :)?
:+1:
:+1:
:+1:
π
π
π
:+1:
I support it!
Related: #472, #101, #84, this is a recurring request :)
I'd love it though!
Need that ! +1
+1
+1
π
Much needed feature for showing branch respective badges in Github Readme. Any update on this request?
+1