Skip to content

proposal: add proposal for issue/PR label convention#65

Open
jan--f wants to merge 4 commits into
prometheus:mainfrom
jan--f:issue-pr-labels
Open

proposal: add proposal for issue/PR label convention#65
jan--f wants to merge 4 commits into
prometheus:mainfrom
jan--f:issue-pr-labels

Conversation

@jan--f
Copy link
Copy Markdown

@jan--f jan--f commented Oct 31, 2025

No description provided.

@jan--f jan--f changed the title add proposal for issue/PR label convention proposal: add proposal for issue/PR label convention Oct 31, 2025
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
Copy link
Copy Markdown
Member

@beorn7 beorn7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me in general. However, I also don't feel very strongly about the details here. I guess once we see in in practice, we will see what works well and what needs changes. We shouldn't shy away from cutting out unused parts later. We have way too much label cruft already.

Comment thread proposals/0065-issue-pr-label-system.md Outdated
Comment thread proposals/0065-issue-pr-label-system.md
Comment thread proposals/0065-issue-pr-label-system.md
Comment thread proposals/0065-issue-pr-label-system.md Outdated
Comment thread proposals/0065-issue-pr-label-system.md Outdated
Comment thread proposals/0065-issue-pr-label-system.md Outdated
Comment thread proposals/0065-issue-pr-label-system.md Outdated
Comment thread proposals/0065-issue-pr-label-system.md Outdated
Comment thread proposals/0065-issue-pr-label-system.md
Comment thread proposals/0065-issue-pr-label-system.md Outdated
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
Copy link
Copy Markdown
Member

@beorn7 beorn7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two smallish comments left.

In doubt, I would just go forward with this. We can always iterate on it.

In any case, it would be great if somebody else would look at this.

Comment thread proposals/0065-issue-pr-label-system.md Outdated
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
Comment on lines +163 to +165
**Proposal**: Keep the `component/` and `area/` prefixes and leave the suffixes
unspecified so that developers can add them as needed. Move any current labels
to use the prefixes where needed.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be better to be explicit on the label casing, for instance, preventing a duplicate label creation for component/service discovery/kubernetes and component/service_discovery/kubernetes, where creators for both may not know about the existence of the other and unknowingly diverge (or enforcing a *case in general, so creators have a better idea on which casing to adhere to)? Consequently, someone relying on the same "space-based" formatting may expect area/ci cd instead of a hyphenated one.

(this follows up on a recent Slack discussion)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if being implicit on the granularity levels could lead to instances where that ends up becoming a concern, for instance, say, some maintainers use component/service discovery as is the case now, some end up using component/service discovery/kubernetes, and some end up using component/service discovery/kubernetes/endpoints? There's also the case where, as I do currently, to not break any existing triage boards or just label expectations in general, I add both component/service discovery and component/service discovery/kubernetes labels (and not just the former one) to all K8s SD issues I want to pull into my triage board.

Multiple labels for multiple (unknown) levels of granularity could lead to more issues missing the correct "chain" of labels (in case we want to keep the current behavior), or unknowing specifying it (redundant labels, in case we want component/service discovery/kubernetes/endpoints only instead of all three going forward).

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm likely being overly cautious here, there's probably a good portion of this we can safely leave to the label creators' discretion.

- Maintain an efficient review and triage workflow

A systematic approach to labels helps contributors and maintainers quickly
understand the state of any issue or PR and take appropriate action.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we expand PR to pull request throughout the document for consistency?

Suggested change
understand the state of any issue or PR and take appropriate action.
understand the state of any issue or pull request and take appropriate action.


#### 1. Triage Labels

These labels indicate whether an issue has been evaluated and is ready for work:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a note that these labels are not meant to be used on pull requests?


Component labels indicate which part of the codebase an issue or PR affect.
Area labels provide additional categorization for cross-cutting concerns.
A few examples of currently used labels:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
A few examples of currently used labels:
A few examples of currently used labels:


#### Component and area Labels

Component labels indicate which part of the codebase an issue or PR affect.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be worth mentioning that these are optional. Not all repos need them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants