Skip to content

Commit

Permalink
Switch to gh-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
adinhodovic committed May 23, 2021
1 parent 53311a5 commit f5e2f56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions github/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Github

Shows Github notifications and adds a shortcut to access your notifications. It uses [Hub](https://github.com/github/hub) for api interactions and for an API oauth token.
Shows Github notifications and adds a shortcut to access your notifications. It uses [Github's CLI](https://github.com/cli/cli) for api interactions and for an API access.

# Dependencies

- [Hub](https://github.com/github/hub)
- [gh-cli](https://github.com/cli/cli)
- [Font Awesome](https://fontawesome.com) for the Github icon.

# Usage
Expand Down
2 changes: 1 addition & 1 deletion github/github
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import webbrowser


def get_notifications():
notifications = len(json.loads(os.popen("hub api notifications").read()))
notifications = len(json.loads(os.popen("gh api notifications").read()))

if notifications > 0:
return {
Expand Down

0 comments on commit f5e2f56

Please sign in to comment.