Closed jdhoffa closed 4 months ago
As usual, I don't quite understand why this README needs to be dynamic, e.g.
Repo | Lifecycle | Status | Test_Coverage | Latest_SHA | Maintainer |
---|---|---|---|---|---|
pacta.portfolio.utils | @cjyetman |
Repo would never need to be updated. R CMD check status and Test coverage badges also don't need to be updated as they would never need to point anywhere else.
But Lifecycle and Maintainer need to be dynamic. If either of those values changed in the repo, it wouldn't automatically get picked up in the sit rep.
Not the biggest deal, but I want this repo to be as hands off as possible, and not require me to remember to change things when they change in real life
Cool tip with the latest commit SHA badge though! Gonna consider adding that
If there's a way to automatically update those values in a standard README.md then I'm all for it, but this was the simplest way I could think of. ¯_(ツ)_/¯
That's awesome!!
So the lifecycle badge is the only straggler now XD
So the lifecycle badge is the only straggler now XD
yeah, that one is tough because they're so standard way of defining it that GitHub's API understands 🤷🏻
https://api.github.com/repos/rmi-pacta/pacta.portfolio.utils/contents/README.md
{
"name": "README.md",
"path": "README.md",
"sha": "509c2e2a4aba215c8294e3579e7fdcfad0a85158",
"size": 1622,
"url": "https://api.github.com/repos/RMI-PACTA/pacta.portfolio.utils/contents/README.md?ref=main",
"html_url": "https://github.com/RMI-PACTA/pacta.portfolio.utils/blob/main/README.md",
"git_url": "https://api.github.com/repos/RMI-PACTA/pacta.portfolio.utils/git/blobs/509c2e2a4aba215c8294e3579e7fdcfad0a85158",
"download_url": "https://raw.githubusercontent.com/RMI-PACTA/pacta.portfolio.utils/main/README.md",
"type": "file",
"content": "IyBwYWN0YS5wb3J0Zm9saW8udXRpbHMgPGltZyBzcmM9Im1hbi9maWd1cmVz\nL2xvZ28ucG5nIiBhbGlnbj0icmlnaHQiIHdpZHRoPSIxMjAiIC8+Cgo8IS0t\nIGJhZGdlczogc3RhcnQgLS0+ClshW0xpZmVjeWNsZTogc3RhYmxlXShodHRw\nczovL2ltZy5zaGllbGRzLmlvL2JhZGdlL2xpZmVjeWNsZS1zdGFibGUtYnJp\nZ2h0Z3JlZW4uc3ZnKV0oaHR0cHM6Ly9saWZlY3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zIGZvciB0\naGUgUEFDVEEgZm9yIEludmVzdG9ycyB0b29scyBhbmQgZWNvc3lzdGVtLgoK\nIyMgSW5zdGFsbGF0aW9uCgo8IS0tCllvdSBjYW4gaW5zdGFsbCB0aGUgcmVs\nZWFzZWQgdmVyc2lvbiBvZiBwYWN0YS5wb3J0Zm9saW8udXRpbHMgZnJvbSBb\nQ1JBTl0oaHR0cHM6Ly9DUkFOLlItcHJvamVjdC5vcmcpIHdpdGg6CgpgYGAg\ncgppbnN0YWxsLnBhY2thZ2VzKCJwYWN0YS5wb3J0Zm9saW8udXRpbHMiKQpg\nYGAKLS0+CgpZb3UgY2FuIGluc3RhbGwgdGhlIGRldmVsb3BtZW50IHZlcnNp\nb24gb2YgcGFjdGEucG9ydGZvbGlvLnV0aWxzIGZyb20gW1ItdW5pdmVyc2Vd\nKGh0dHBzOi8vcm1pLXBhY3RhLnItdW5pdmVyc2UuZGV2L3BhY3RhLnBvcnRm\nb2xpby51dGlscykgd2l0aDoKCmBgYCByCmluc3RhbGwucGFja2FnZXMoInBh\nY3RhLnBvcnRmb2xpby51dGlscyIsIHJlcG9zID0gImh0dHBzOi8vcm1pLXBh\nY3RhLnItdW5pdmVyc2UuZGV2IikKYGBgCgpvciBmcm9tIFtHaXRIdWJdKGh0\ndHBzOi8vZ2l0aHViLmNvbS9STUktUEFDVEEvcGFjdGEucG9ydGZvbGlvLnV0\naWxzKSB3aXRoOgoKYGBgIHIKIyBpbnN0YWxsLnBhY2thZ2VzKCJwYWsiKQpw\nYWs6OnBhaygiUk1JLVBBQ1RBL3BhY3RhLnBvcnRmb2xpby51dGlscyIpCmBg\nYAo=\n",
"encoding": "base64",
"_links": {
"self": "https://api.github.com/repos/RMI-PACTA/pacta.portfolio.utils/contents/README.md?ref=main",
"git": "https://api.github.com/repos/RMI-PACTA/pacta.portfolio.utils/git/blobs/509c2e2a4aba215c8294e3579e7fdcfad0a85158",
"html": "https://github.com/RMI-PACTA/pacta.portfolio.utils/blob/main/README.md"
}
}
and the content is base64 encoded
Use GH action to build
README.Rmd
and commit it to a new PR (as opposed to pushing directly tomain
).Sorry @cjyetman for the back-to-back GH action PRs here. It's difficult to test these without merging them in.
Maybe closes #28