Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bartekpacia/labels
This repository exist only to make cloning labels easy.
https://github.com/bartekpacia/labels
Last synced: 22 days ago
JSON representation
This repository exist only to make cloning labels easy.
- Host: GitHub
- URL: https://github.com/bartekpacia/labels
- Owner: bartekpacia
- Created: 2024-09-23T18:59:37.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2024-09-23T19:39:59.000Z (3 months ago)
- Last Synced: 2024-12-04T12:36:05.372Z (30 days ago)
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# labels
This repository exist only to make cloning labels easy.
Inspired by the `flutter/flutter` repository and two open-source repositories I
had maintained for a longer time – `mobile-dev-inc/maestro` and
`leancodepl/patrol`.## Usage
To copy labels from this repo into your repo:
```console
gh label clone bartekpacia/labels
```To delete all labels:
```console
gh label list --json name | jq -r '.[] .name' | xargs -I {} gh label delete --yes {}
```List all labels in the Flutter repo (which is an inspiration):
```console
gh label list --repo flutter/flutter --limit 500 --sort name
```## Label philosophy
Only core labels, that I find generally useful in any project, are included in
this repository. You will likely want to add more project-specific labels.### Platform-specific labels
create
```console
gh label create 'platform: android' -c 30B805 -d 'Testing Android apps is affected'
gh label create 'platform: ios' -c 295D99 -d 'Testing iOS apps is affected'
gh label create 'platform: web' -c 91529 -d 'Testing web apps is affected'
```### Use prefixes to group labels
- `p` for `package`, e.g. `package: camera`, `package: video_player`
- `a` for `area`, e.g. `a: accessibility`, `a: layout`, `a: tests`
- `t` for `tool`, e.g. `t: gradle`, `t: xcode`
- `customer` for customer-specific labels, e.g. `customer: toyota`, `customer:
fuchsia`. For non-public customer names, codenames can be made-up, e.g.
`customer: cars` to not say "Toyota" out loud.### Use colors to convey meaning
- For `platform: android` label, set the color to green – because green is
associated with Android
- For priority labels, set the color to red – because red is associated with
danger. The lower the priority, the less intense red is.
- Keep label colors consistent across repositories you maintain/work on
regularly.