Skip to content

Commit 3ef92f0

Browse files
authored
Merge pull request #6 from ExcelsiorFamily/define-label-guidelines
Define guidelines for labels management
2 parents c811290 + 9600cc2 commit 3ef92f0

1 file changed

Lines changed: 91 additions & 0 deletions

File tree

README.md

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,99 @@ Templates should promote a high contribution quality by referring [contributing
9797

9898
## Label
9999

100+
Labels should help contributors and reviewers to evaluate effort for a specific issue or pull request.
101+
102+
### Immutablity
103+
104+
GitHub labels should define immutable informations about issues, in order to avoid non-updated scenarios. States should be defined in project section.
105+
106+
**Preferred:**
107+
```markdown
108+
- Type: Feature
109+
- Severity: Low
110+
```
111+
112+
**Not Preferred:**
113+
```markdown
114+
- WorkInProgress
115+
- Critical
116+
```
117+
118+
### Colors
119+
120+
Colors should help contributors and reviewers to quickly and visually identify the effort to be done. It is better to use similar color styling accross categories for a consistent and stronger visual identification. Colors should be variants of Red-Orange-Green to provide a sense of priority. Red being the ones that require the most attention. Green being the ones that require little attention.
121+
122+
**Preferred:**
123+
124+
- ![#c3b2ef](https://placehold.it/15/c3b2ef/000000?text=+) `Severity: Low`
125+
- ![#00cc41](https://placehold.it/15/00cc41/000000?text=+) `Severity: Medium`
126+
- ![#c3b2ef](https://placehold.it/15/c3b2ef/000000?text=+) `Change: Minor`
127+
- ![#00cc41](https://placehold.it/15/00cc41/000000?text=+) `Change: Medium`
128+
129+
**Not Preferred:**
130+
131+
- ![#c3b2ef](https://placehold.it/15/c3b2ef/000000?text=+) `Severity: Low`
132+
- ![#c3b2ef](https://placehold.it/15/c3b2ef/000000?text=+) `Severity: Medium`
133+
- ![#00cc41](https://placehold.it/15/00cc41/000000?text=+) `Change: Minor`
134+
- ![#00cc41](https://placehold.it/15/00cc41/000000?text=+) `Change: Medium`
135+
136+
### Categories
137+
138+
Labels should be regrouped into categories to provide consistent information about every issue. Issues cannot have more than one label from the same category.
139+
140+
**Preferred:**
141+
```markdown
142+
- Type: Documentation
143+
- Severity: Medium
144+
- Change: Minor
145+
```
146+
147+
**Not Preferred:**
148+
```markdown
149+
- Question
150+
- Feature
151+
- Documentation
152+
```
153+
154+
*Pro tip:* GitHub orders labels aphabetically, so following this format allows to keep categories dislayed in the same order accross every issues.
155+
156+
#### Type
157+
158+
Type labels should be used to define the type of task done inside the issue:
159+
160+
- ![#00cc41](https://placehold.it/15/00cc41/000000?text=+) (**#00cc41**) `Type: Feature`: The issue is the development of a new feature of your project
161+
- ![#ff0000](https://placehold.it/15/ff0000/000000?text=+) (**#ff0000**) `Type: Bug`: The issue is an identified bug that needs to be fixed
162+
- ![#ffe700](https://placehold.it/15/ffe700/000000?text=+) (**#ffe700**) `Type: Enhancement`: The issue is a suggestion of enhancement to your project
163+
- ![#c3b2ef](https://placehold.it/15/c3b2ef/000000?text=+) (**#c3b2ef**) `Type: Documentation`: The issue is the creation or refinement of a document.
164+
165+
#### Severity
166+
167+
Severity labels are mostly used for bug-related issues. It allows to identify the critical aspects of the work implied inside the issue:
168+
169+
- ![#000000](https://placehold.it/15/000000/000000?text=+) (**#000000**) `Severity: Blocker`: The issue is blocking an impending release
170+
- ![#ff4000](https://placehold.it/15/ff4000/000000?text=+) (**#ff4000**) `Severity: Critical`: The issue causes data loss, crashes or hangs salt processes, makes the system unresponsive, etc
171+
- ![#ff8100](https://placehold.it/15/ff8100/000000?text=+) (**#ff8100**) `Severity: High`: The issue reports incorrect functionality, bad functionality, a confusing user experience, etc
172+
- ![#ffe700](https://placehold.it/15/ffe700/000000?text=+) (**#ffe700**) `Severity: Strong`: The issue concerns changes to the core areas of the project
173+
- ![#00cc41](https://placehold.it/15/00cc41/000000?text=+) (**#00cc41**) `Severity: Medium`: The issue reports cosmetic items, formatting, spelling, colors, etc
174+
- ![#c3b2ef](https://placehold.it/15/c3b2ef/000000?text=+) (**#c3b2ef**) `Severity: Low`: The issue concerns a new feature or any addition to the project.
175+
176+
#### Type of change
177+
178+
Type of change labels are only used for pull requests. They give information about the effort needed to review a pull request:
179+
180+
- ![#c3b2ef](https://placehold.it/15/c3b2ef/000000?text=+) (**#c3b2ef**) `Change: Minor`: Less than 64 lines changed, or less than 8 core lines changed
181+
- ![#00cc41](https://placehold.it/15/00cc41/000000?text=+) (**#00cc41**) `Change: Medium`: Less than 256 lines changed, or less than 64 core lines changed
182+
- ![#ffe700](https://placehold.it/15/ffe700/000000?text=+) (**#ffe700**) `Change: Master`: More than 256 lines changed, or more than 64 core lines changed
183+
- ![#ff0000](https://placehold.it/15/ff0000/000000?text=+) (**#ff0000**) `Change: Expert`: Needs specialized, in-depth review.
184+
185+
*Pro Tip*: We strongly recommend to define core areas to help define the estimated effort.
186+
100187
## CHANGELOG
101188

102189
## CONTRIBUTING.md
103190

104191
## Resources
192+
193+
- [The Official raywenderlich.com Swift Style Guide](https://github.com/raywenderlich/swift-style-guide/blob/master/README.markdown).
194+
- [Sane GitHub Labels](https://medium.com/@dave_lunny/sane-github-labels-c5d2e6004b63).
195+
- [GitHub Labels and Milestones](https://docs.saltstack.com/en/2017.7/topics/development/labels.html).

0 commit comments

Comments
 (0)