Skip to content

MINOR Remove needs-attention label after review#18366

Merged
mumrah merged 6 commits intoapache:trunkfrom
mumrah:minor-remove-needs-attention
Jan 9, 2025
Merged

MINOR Remove needs-attention label after review#18366
mumrah merged 6 commits intoapache:trunkfrom
mumrah:minor-remove-needs-attention

Conversation

@mumrah
Copy link
Member

@mumrah mumrah commented Dec 31, 2024

Follow up from #18147 to also remove the needs-attention label

@github-actions github-actions bot added build Gradle build or GitHub Actions small Small PRs labels Dec 31, 2024
@mumrah
Copy link
Member Author

mumrah commented Dec 31, 2024

Tested on my fork

mumrah#30

image

Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

@mumrah thanks for this patch

issue_number: pull.number,
name: "triage"
});
try {
Copy link
Member

Choose a reason for hiding this comment

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

Out of curiosity, why do we have extra logging specifically for removing the needs-attention label? We don't seem to have similar logging for other labels like triage.

Copy link
Member Author

Choose a reason for hiding this comment

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

Since the issue search is filtering for label:triage, we know all the found PRs will have that label. We do log something for each of this (on L53)

console.log("Removing 'triage' label from PR " + pull.number + " : " + pull.title);

To be consistent, I thought we should log a message when we remove "needs-attention".


This log line is a bit extraneous. I'll remove it

console.log("PR did not have 'needs-attention' label");

Copy link
Member

Choose a reason for hiding this comment

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

To ensure both "removeLabel" are executed, should we implement error handling for removing "triage"?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm, this actually makes me realize that triage could be missing. I've modified the workflow to search for both labels separately.

@mumrah mumrah requested a review from chia7712 January 2, 2025 16:10
Copy link
Member

@chia7712 chia7712 left a comment

Choose a reason for hiding this comment

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

LGTM and one trivial comment

@@ -24,6 +24,9 @@ on:
jobs:
remove-triage:
Copy link
Member

Choose a reason for hiding this comment

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

Given the changes introduced by this PR, we may need to consider renaming this

Copy link
Member Author

Choose a reason for hiding this comment

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

That's a good point. I realized the workflow file names are a bit incorrect too, so I rearranged some things. PTAL

@mumrah
Copy link
Member Author

mumrah commented Jan 8, 2025

@mumrah mumrah requested a review from chia7712 January 8, 2025 19:12
@mumrah mumrah merged commit a6a1c6d into apache:trunk Jan 9, 2025
7 checks passed
pranavt84 pushed a commit to pranavt84/kafka that referenced this pull request Jan 27, 2025
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
manoj-mathivanan pushed a commit to manoj-mathivanan/kafka that referenced this pull request Feb 19, 2025
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Gradle build or GitHub Actions small Small PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants