Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/philip-gai/gh-scheduler

An interactive gh-cli command scheduler ๐Ÿค–๐Ÿช„
https://github.com/philip-gai/gh-scheduler

gh-cli gh-extension github-cli

Last synced: about 2 months ago
JSON representation

An interactive gh-cli command scheduler ๐Ÿค–๐Ÿช„

Awesome Lists containing this project

README

        

# gh-scheduler

A GitHub (`gh`) CLI extension to schedule gh CLI commands to run sometime in the future.

- โฐ Avoid setting reminders for yourself to merge a PR at the end of the day if no one else comments on it
- โฒ๏ธ Automatically close an issue after a few hours of inactivity
- ๐Ÿ˜ช Create a pull request automatically during normal business hours that you worked on in the middle of the night (๐Ÿ˜…)

gh-scheduler

## Installation

1. Install the `gh` CLI - see the [installation guide](https://github.com/cli/cli#installation)

_Installation requires a minimum version (2.0.0) of the the GitHub CLI that supports extensions._

2. Install this extension:

```sh
gh extension install philip-gai/gh-scheduler
```

## Usage

Run:

```sh
gh scheduler
```

Schedule something:

```sh
in
```

- ``: This can be any gh cli command, such as `gh pr merge --auto --squash` or `gh issue close `, or _anything else you might want to schedule_.
- ``: A duration string is a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "1.5h" or "2h45m". Valid time units are "ns", "us" (or "ยตs"), "ms", "s", "m", "h". If you leave of the duration, the job will run immediately.

Note that exiting out of the scheduler or killing the terminal session will kill the scheduler and all of its jobs. You must keep the session open for jobs to get processed.