Document issue label / template management policy
Closed this issue · 3 comments
- Explicitly define label families (e.g.,
type:xxx
,fixVersion:x.x.x
) - Clarify the mapping between labels and issue templates
- Write documentation and make it accessible to developers (e.g., place it under
dev-docs
in the lucene repo)
Pre-set labels should be fixed before migration since we need to attach them to migrated issues in the import scripts.
Label texts can be changed afterward, but they'd have to be manually changed (we are not allowed to call GitHub API on ourselves) and it'd be bothersome and error-prone.
I'd propose four label families:
type
: Jira's "Issue Type"type:bug
for a bug report. The corresponding Jira issue type isBug
.type:enhancement
for an enhancement. The corresponding Jira issue types areNew Feature
,Improvement
, andWish
.type:task
for a task. The corresponding Jira issue type isTask
.type:test
for test-related issues. The corresponding Jira issue type isTest
fixVersion
: Jira's "Fix Version(s)"- e.g.:
fixVersion:9.2.0
- e.g.:
affectsVersion
: Jira's "Affects Version(s)"- e.g.:
affectsVersion:9.0.0
- e.g.:
component
: Jira's "Component(s)"- e.g.:
component:module/core/index
,component:module/analysis
- e.g.:
- uncategorized (Resolution, etc.)
duplicate
,invalid
,wontfix
,discuss
,documentation
Label texts can be changed afterward, but they'd have to be manually changed (we are not allowed to call GitHub API on ourselves) and it'd be bothersome and error-prone.
It's not correct - I tested Update a label API in this repo and the request was accepted. We'll be able to update label texts ourselves with some scripts if it's needed.
I once posted a proposal and haven't seen any comments on that so far, then I'd run the migration script as above without making extra posts in the dev list. Will provide information about the API if there are requests for refinements after the migration is finished.
Issue templates proposal:
- Bug Report - this is associated with
type:bug
label - Enhancement Request - this is associated with
type:enhancement
label - Test Failure Report - this is associated with
type:testFailure
label - Task - this is associated with
type:task
label - Documentation - this is associated with
type:documentation
label Question - this creates no issues; is used to guide users to mailing listsmarkdown-only template is not allowed.