-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from augmentable-dev/only-todos
Refocuses this tool on TODO comments
- Loading branch information
Showing
13 changed files
with
46 additions
and
563 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,23 @@ | ||
## API | ||
|
||
If you'd like to access tickgit information about public `git` repositories, you can use our API. | ||
|
||
### TODOs | ||
### TODOs Badge | ||
|
||
`GET` requests to `https://tickgit.augmentable.dev/todos` with the `repo` query param populated with the URL of a git repo, like so: | ||
`GET` requests to `https://api.tickgit.com/badgen` with a `repo` path segment: | ||
|
||
``` | ||
https://tickgit.augmentable.dev/todos?repo=https://github.com/facebook/react | ||
https://api.tickgit.com/badgen/github.com/facebook/react | ||
``` | ||
Will return a simple JSON response: | ||
|
||
Supplying a `branch` segment will lookup a specific branch. `master` is the branch used if none is specified. | ||
|
||
``` | ||
{"todos":125} | ||
https://api.tickgit.com/badgen/github.com/facebook/react/branch-name | ||
``` | ||
|
||
Indicating the total count of TODOs found in the `HEAD` of that repository. | ||
|
||
To indicate a branch, send a `branch` query param supplying the branch name. | ||
|
||
_more coming soon!_ | ||
|
||
### TODOs Badge | ||
|
||
Similarly, `GET` requests to `https://tickgit.augmentable.dev/todos-badge` with the same `repo` query param: | ||
Will return JSON that can be fed into a badgen badge: [https://badgen.net/https](https://badgen.net/https) | ||
|
||
``` | ||
http://tickgit.augmentable.dev/todos-badge?repo=https://github.com/facebook/react | ||
[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/augmentable-dev/tickgit)](https://www.tickgit.com/browse?repo=github.com/augmentable-dev/tickgit) | ||
``` | ||
|
||
The `branch` query param will also work as above. | ||
|
||
Will return JSON that can be fed into a shields.io badge: [https://shields.io/endpoint](https://shields.io/endpoint) | ||
[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/augmentable-dev/tickgit)](https://www.tickgit.com/browse?repo=github.com/augmentable-dev/tickgit) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.