|
43 | 43 | "cell_type": "markdown", |
44 | 44 | "metadata": {}, |
45 | 45 | "source": [ |
46 | | - "Run `ghtop -h` to view the help. There are 4 views you can choose:\n", |
| 46 | + "Run `ghtop -h` to view the help:\n", |
47 | 47 | "\n", |
48 | | - "### `ghtop simple`\n", |
| 48 | + "```bash\n", |
| 49 | + "$ ghtop -h\n", |
| 50 | + "usage: ghtop [-h] [--include_bots] [--types TYPES] [--filt {user,repo,org}] [--filtval FILTVAL]\n", |
| 51 | + " {tail,quad,users,simple}\n", |
49 | 52 | "\n", |
| 53 | + "positional arguments:\n", |
| 54 | + " {tail,quad,users,simple} Operation mode to run\n", |
| 55 | + "\n", |
| 56 | + "optional arguments:\n", |
| 57 | + " -h, --help show this help message and exit\n", |
| 58 | + " --include_bots Include bots (there is a lot of them!) (default: False)\n", |
| 59 | + " --types TYPES Comma-separated types of event to include (e.g PushEvent)\n", |
| 60 | + " --filt {user,repo,org} Filtering method\n", |
| 61 | + " --filtval FILTVAL Value to filter by (for `repo` use format `owner/repo`)\n", |
| 62 | + "```\n", |
| 63 | + "\n", |
| 64 | + "There are 4 views you can choose: `ghtop simple`, `ghtop tail`, `ghtop quad`, or `ghtop users`. Each are shown and described below. All views have the following options:\n", |
| 65 | + "\n", |
| 66 | + "- `--include_bots`: By default events that appear to be from bots are excluded. Add this flag to include them\n", |
| 67 | + "- `--types TYPES`: Optional comma-separated list of event types to include (defaults to all types). For a full list of types, see the GitHub [event types docs](https://docs.github.com/en/free-pro-team@latest/developers/webhooks-and-events/github-event-types)\n", |
| 68 | + "- `--filt` and `--filtval`: Optionally filter events to just those from one of: `user`, `repo`, or `org`, depending on `filt`. `filtval` is the value to filter by. See the [GitHub docs](https://docs.github.com/en/free-pro-team@latest/rest/reference/activity#list-public-events) for details on the public event API calls used.\n", |
| 69 | + "\n", |
| 70 | + "**Important note**: while running, `ghtop` will make about 5 API calls per second. GitHub has a quota of 5000 calls per hour. When there are 1000 calls left, `ghtop` will show a warning on every call." |
| 71 | + ] |
| 72 | + }, |
| 73 | + { |
| 74 | + "cell_type": "markdown", |
| 75 | + "metadata": {}, |
| 76 | + "source": [ |
| 77 | + "### ghtop simple" |
| 78 | + ] |
| 79 | + }, |
| 80 | + { |
| 81 | + "cell_type": "markdown", |
| 82 | + "metadata": {}, |
| 83 | + "source": [ |
50 | 84 | "A simple dump to your console of all events as they happen.\n", |
51 | 85 | "\n", |
52 | 86 | "<img src=\"https://user-images.githubusercontent.com/346999/101861674-79e7df80-3b25-11eb-92d3-f888843f4aa2.png\" width=\"500\" align=\"left\">" |
|
56 | 90 | "cell_type": "markdown", |
57 | 91 | "metadata": {}, |
58 | 92 | "source": [ |
59 | | - "### `ghtop tail`\n", |
60 | | - "\n", |
| 93 | + "### ghtop tail" |
| 94 | + ] |
| 95 | + }, |
| 96 | + { |
| 97 | + "cell_type": "markdown", |
| 98 | + "metadata": {}, |
| 99 | + "source": [ |
61 | 100 | "Like `simple`, but removes most bots, and only includes releases, issues and PRs (open, close, and comment events). A summary of the frequency of push events is also shown at the bottom of the screen.\n", |
62 | 101 | "\n", |
63 | 102 | "<img src=\"https://user-images.githubusercontent.com/346999/101861658-69376980-3b25-11eb-96ef-9d68f075abf7.png\" width=\"700\" align=\"left\">" |
|
67 | 106 | "cell_type": "markdown", |
68 | 107 | "metadata": {}, |
69 | 108 | "source": [ |
70 | | - "### `ghtop quad`\n", |
71 | | - "\n", |
| 109 | + "### ghtop quad" |
| 110 | + ] |
| 111 | + }, |
| 112 | + { |
| 113 | + "cell_type": "markdown", |
| 114 | + "metadata": {}, |
| 115 | + "source": [ |
72 | 116 | "The same information as `tail`, but in a split window showing separately PRs, issues, pushes, and releases. This view does not remove bot activity.\n", |
73 | 117 | "\n", |
74 | 118 | "<img src=\"https://user-images.githubusercontent.com/346999/101861560-2ecdcc80-3b25-11eb-9fba-25382b2df65f.png\" width=\"900\" align=\"left\">" |
|
78 | 122 | "cell_type": "markdown", |
79 | 123 | "metadata": {}, |
80 | 124 | "source": [ |
81 | | - "### `ghtop users`\n", |
82 | | - "\n", |
83 | | - "A summary of activity for the most active current users, including bots.\n", |
| 125 | + "### ghtop users" |
| 126 | + ] |
| 127 | + }, |
| 128 | + { |
| 129 | + "cell_type": "markdown", |
| 130 | + "metadata": {}, |
| 131 | + "source": [ |
| 132 | + "A summary of activity for the most active current users.\n", |
84 | 133 | "\n", |
85 | 134 | "<img src=\"https://user-images.githubusercontent.com/346999/101861612-4b6a0480-3b25-11eb-8124-19bb2434c27e.png\" width=\"500\" align=\"left\">\n", |
86 | 135 | "\n", |
|
0 commit comments