Closed scriptnull closed 7 years ago
if .travis.yml is present && can fetch github repo url of the current git repo, the following details can be generated from the repo information.
Use https://github.com/scriptnull/badgeit/blob/master/contracts/contract_github.go#L23 to get the github repo information and generate the below badges.
It would be good to have a cache implemented in common.GetGithubRepos. So that, the .git parsing is done only once and all the contracts can get data from the cache in subsequent accesses.
common.GetGithubRepos
Basic travis badge is done and cache is not yet implemented. will implement it afterwards.
Deployed 🎉
if .travis.yml is present && can fetch github repo url of the current git repo, the following details can be generated from the repo information.
Use https://github.com/scriptnull/badgeit/blob/master/contracts/contract_github.go#L23 to get the github repo information and generate the below badges.
It would be good to have a cache implemented in
common.GetGithubRepos
. So that, the .git parsing is done only once and all the contracts can get data from the cache in subsequent accesses.