File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ ## API
2+
3+ If you'd like to access tickgit information about public ` git ` repositories, you can use our API.
4+
5+ ### TODOs
6+
7+ ` GET ` requests to ` https://tickgit.augmentable.dev/todos ` with the ` repo ` query param populated with the URL of a git repo, like so:
8+
9+ ```
10+ https://tickgit.augmentable.dev/todos?repo=https://github.com/facebook/react
11+ ```
12+ Will return a simple JSON response:
13+
14+ ```
15+ {"todos":125}
16+ ```
17+
18+ Indicating the total count of TODOs found in the ` HEAD ` of that repository.
19+
20+ To indicate a branch, send a ` branch ` query param supplying the branch name.
21+
22+ _ more coming soon!_
23+
24+ ### TODOs Badge
25+
26+ Similarly, ` GET ` requests to ` https://tickgit.augmentable.dev/todos-badge ` with the same ` repo ` query param:
27+
28+ ```
29+ http://tickgit.augmentable.dev/todos-badge?repo=https://github.com/facebook/react
30+ ```
31+
32+ The ` branch ` query param will also work as above.
33+
34+ Will return JSON that can be fed into a shields.io badge: [ https://shields.io/endpoint ] ( https://shields.io/endpoint )
You can’t perform that action at this time.
0 commit comments