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

[Github] Improve automatic new issue labelling #65309

Merged
merged 2 commits into from
Sep 5, 2023

Conversation

cor3ntin
Copy link
Contributor

@cor3ntin cor3ntin commented Sep 5, 2023

This patch:

  • Replaces andymckay/labeler which does not appear to be maintained by github official solution
  • Removes the closed issue workflow which was disabled a few years ago and never fixed.
  • Adds a few rules to add label based on PR title, hopefully that can make triaging simpler. If that turns out to be useful, we can consider adding more rules for backends, etc. We could technically also pattern match the body of the issue but I'm concerned about trying to be too clever.

The new system is only triggered on PR open so manual labels should not be removed.

This patch:
  * Replace andymckay/labeler which does not appear to be maintained
    by github official solution
  * Remove the closed issue workflow which was disabled a few years
    ago and never fixed.
  * Add a few rules to add label based on PR title, hopefully that
    can make triaging simpler. If that turns out to be useful,
    we can consider adding more rules for backends, etc.
    We could technically also pattern match the body of the issue but
    I'm concerned about trying to be _too_ clever.

The new system is only triggered on PR open so manual labels
should not be removed.

Full disclosure, this was not tested, not sure how testing
could be done.
@cor3ntin cor3ntin requested review from asl and Endilll September 5, 2023 09:12
@cor3ntin cor3ntin requested a review from a team as a code owner September 5, 2023 09:12
@cor3ntin
Copy link
Contributor Author

cor3ntin commented Sep 5, 2023

Full disclosure, this was not tested, not sure how testing could be done.

.github/workflows/new-issues.yml Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

There are keywords to recognize backends (e.g. AArch64, NVPTX, AMDGPU) and LLVM components (e.g. SelectionDAG, SelectionDAGISel, AsmParser). I think they are worth listing here.

@cor3ntin
Copy link
Contributor Author

cor3ntin commented Sep 5, 2023

@Endilll are you happy adding more rules in a separate commit?

@Endilll
Copy link
Contributor

Endilll commented Sep 5, 2023

Yes. I'm sorry I haven't read PR description attentively enough before submitting a review.

@cor3ntin cor3ntin merged commit 3301edf into llvm:main Sep 5, 2023
1 check passed
@cor3ntin cor3ntin deleted the label_issues branch September 5, 2023 12:54
avillega pushed a commit to avillega/llvm-project that referenced this pull request Sep 11, 2023
This patch:
* Replaces `andymckay/labeler` which does not appear to be maintained by
github official solution
* Removes the closed issue workflow which was disabled a few years ago
and never fixed.
* Adds a few rules to add label based on PR title, hopefully that can
make triaging simpler. If that turns out to be useful, we can consider
adding more rules for backends, etc. We could technically also pattern
match the body of the issue but I'm concerned about trying to be _too_
clever.

The new system is only triggered on PR open so manual labels should not
be removed.
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.

None yet

2 participants