Skip to content

Commit 37c0d40

Browse files
committed
fix(readme): improve description and documentation
1 parent 15745ae commit 37c0d40

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111
**TL;DR:** _Want [beautiful GitHub Labels like these](https://github.com/seantrane/github-label-presets/labels)?_ Want to have them unobtrusively synced with your repos? Want to persist them indefinitely? Want to maintain your own labels? If the answers have been yes, this is definitely not _too long_, please read on.
1212

13-
**TL;DR:2** Really? Still _too long_? Run; `npm install -g github-label-sync && github-label-sync -a <github_token> -l 'https://git.io/fAe5i' <github_name>/<github_repo>`
13+
1. Run; `npm install -g github-label-sync`
14+
2. Provide env-vars; `GITHUB_ACCESS_TOKEN`, `GITHUB_NAME`, `REPO`
15+
3. Run; `github-label-sync -l 'https://git.io/fAe5i' ${GITHUB_NAME}/${REPO}`
1416

1517
### Details
1618

@@ -21,6 +23,8 @@ The default GitHub Labels are, well... not ideal. This has been described many t
2123

2224
There are many very good examples of GitHub Label strategies. Almost all of them are an improvement over the default. But for several reasons or another few, in practice, none of them have felt truly great or sustainable.
2325

26+
#### Principles
27+
2428
`@seantrane/github-label-presets` were designed according to the following thoughts and principles:
2529

2630
- GitHub Labels are used for both Issues and Pull Requests (PR), therefore the label context should be agnostic.
@@ -37,11 +41,19 @@ There are many very good examples of GitHub Label strategies. Almost all of them
3741
- `work` = describe situation; `chaotic`, `complex`, `complicated` or `obvious`
3842
- The only labels without prefixes are; `breaking`, `good first issue`, `greenkeeper`, `help` and `semantic-release`
3943

40-
The _GitHub Label presets_ are meant to be used with [github-label-sync](https://github.com/Financial-Times/github-label-sync):
44+
#### Label Groups
45+
46+
| Standard | Effort | Priority | State | Type | Work |
47+
| -------- | ------ | -------- | ----- | ---- | ---- |
48+
| Standard labels commonly used in most repositories. | Describes the relative effort to complete an issue or pull request. | Priority labels, but focused on describing the immediacy of attention required. | Describes the _decision_ state of the issue or pull request. | Describes the _type_ of issue or pull request. | Describes the kind of work involved in resolving the issue, using the [Cynefin framework](https://en.wikipedia.org/wiki/Cynefin_framework). |
49+
| ![Standard Labels](https://github.com/seantrane/github-label-presets/raw/master/docs/images/github-labels-standard.png) | ![Effort Labels](https://github.com/seantrane/github-label-presets/raw/master/docs/images/github-labels-effort.png) | ![Priority Labels](https://github.com/seantrane/github-label-presets/raw/master/docs/images/github-labels-priority.png) | ![State Labels](https://github.com/seantrane/github-label-presets/raw/master/docs/images/github-labels-state.png) | ![Type Labels](https://github.com/seantrane/github-label-presets/raw/master/docs/images/github-labels-type.png) | ![Work Labels](https://github.com/seantrane/github-label-presets/raw/master/docs/images/github-labels-work.png) |
50+
51+
#### How It Works
4152

42-
- _Synchronise your GitHub labels with as few destructive operations as possible - similar labels get renamed._
43-
- Load [label config](https://github.com/Financial-Times/github-label-sync#label-json) via path or URL.
44-
- Run on specified repo via CLI parameter.
53+
- [`github-label-sync`](https://github.com/Financial-Times/github-label-sync) is used to _synchronize your GitHub labels with as few destructive operations as possible - similar labels get renamed_.
54+
- The [label config](https://github.com/Financial-Times/github-label-sync#label-json) is loaded via path or URL, or more specifically; the config file supplied by [`@seantrane/github-label-presets`](https://github.com/seantrane/github-label-presets).
55+
- The `github-label-sync -l 'https://git.io/fAe5i' ${GITHUB_NAME}/${REPO}` command is run to have the label config applied to _your_ `profile/repo`.
56+
- The command can be run anywhere and anytime, but it's recommended during a CI plan. This will automatically keep your labels clean and synchronized with your chosen configuration - depending on how often your plan is run, of course.
4557

4658
## Usage <a id="usage"></a>
4759

@@ -74,11 +86,11 @@ You can provide your own `labels.json` via the `[ -l, --lables ]` argument.
7486

7587
## Contribute <a id="contribute"></a>
7688

77-
Contributions are always appreciated. Read [CONTRIBUTING.md](https://github.com/seantrane/balanced-theme-for-atom/blob/master/CONTRIBUTING.md) documentation to learn more.
89+
Contributions are always appreciated. Read [CONTRIBUTING.md](https://github.com/seantrane/github-label-presets/blob/master/CONTRIBUTING.md) documentation to learn more.
7890

7991
## Changelog <a id="changelog"></a>
8092

81-
Release details are documented in the [CHANGELOG.md](https://github.com/seantrane/balanced-theme-for-atom/blob/master/CHANGELOG.md) file, and on the [GitHub Releases page](https://github.com/seantrane/balanced-theme-for-atom/releases).
93+
Release details are documented in the [CHANGELOG.md](https://github.com/seantrane/github-label-presets/blob/master/CHANGELOG.md) file, and on the [GitHub Releases page](https://github.com/seantrane/github-label-presets/releases).
8294

8395
---
8496

0 commit comments

Comments
 (0)