Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/r7kamura/gh-diary
GitHub CLI extension to open today's issue.
https://github.com/r7kamura/gh-diary
gh-extension
Last synced: 19 days ago
JSON representation
GitHub CLI extension to open today's issue.
- Host: GitHub
- URL: https://github.com/r7kamura/gh-diary
- Owner: r7kamura
- Created: 2022-05-09T07:17:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-06-05T22:49:08.000Z (over 2 years ago)
- Last Synced: 2024-10-06T03:57:58.042Z (about 1 month ago)
- Topics: gh-extension
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# gh-diary
[GitHub CLI](https://github.com/cli/cli) extension to open today's issue.
## Install
```
gh extension install r7kamura/gh-diary
```## Usage
```bash
# Open the text editor to write comment to today's issue.
gh diary editor --repo foo/bar# Open today's issue in the web browser.
gh diary web --repo foo/bar
```Suppose today is May 9 2022, this command works as follows:
1. Create an issue titled "2022-05-09" if it doesn't exists on foo/bar repo
2. Open the text editor or the web broserIf you are working on foo/bar repo directory, you can omit `--repo foo/bar` option:
```bash
gh diary editor
```## Background
I created this extension to use GitHub Issues as my diary by using [r7kamura/gialog](https://github.com/r7kamura/gialog).
- https://r7kamura.github.io/diary/
To easily open today's issue from anywhere, I'm using `gh d` alias like this:
```console
$ gh alias set d "diary web --repo r7kamura/diary"
- Adding alias for d: diary web --repo r7kamura/diary
✓ Added alias.
$ gh d
Opening github.com/r7kamura/diary/issues/1 in your browser.
```