Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect interop-* triage metadata #3275

Merged
merged 2 commits into from
Apr 27, 2023
Merged

Detect interop-* triage metadata #3275

merged 2 commits into from
Apr 27, 2023

Conversation

KyleJu
Copy link
Collaborator

@KyleJu KyleJu commented Apr 26, 2023

A part of web-platform-tests/wpt-metadata#3954. Add an "interop" PR label to metadata that is labelled "interop-*".

Staging Test

web-platform-tests/wpt-metadata#4104

@KyleJu KyleJu changed the title wip detect interop metadata Detect interop-* traige metadata Apr 27, 2023
@KyleJu KyleJu marked this pull request as ready for review April 27, 2023 00:10
@foolip foolip changed the title Detect interop-* traige metadata Detect interop-* triage metadata Apr 27, 2023
func containsInterop(metadata MetadataResults) bool {
for _, links := range metadata {
for _, link := range links {
if strings.Contains(link.Label, "interop") {
Copy link
Member

Choose a reason for hiding this comment

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

Just to call out the behavior, this will catch labels like interop-2023-has but also lets-go-interoperability that contain "interop" anywhere. That's OK I think.

Copy link
Contributor

Choose a reason for hiding this comment

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

We actually have a number of assumptions around the repo that all labels containing interop are interop labels, so if it is ever the case that a new this-is-not-an-interop-label label is created, we'll need to reassess some logic. 🙂

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am happy to tighten the logic in a follow-up PR!

@KyleJu KyleJu merged commit 6c212c7 into main Apr 27, 2023
@KyleJu KyleJu deleted the interop-labels branch April 27, 2023 17:29
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.

3 participants