Skip to content

MNT/DOC Autoclose schedule doesn't run on forks and improved structuring - #32889

Merged
lesteve merged 10 commits into
scikit-learn:mainfrom
StefanieSenger:fix_automated_comments
Dec 22, 2025
Merged

lesteve merged 10 commits into
scikit-learn:mainfrom
StefanieSenger:fix_automated_comments

Conversation

@StefanieSenger

@StefanieSenger StefanieSenger commented Dec 11, 2025 •

Copy link
Copy Markdown
Member

Reference Issues/PRs

What does this implement/fix? Explain your changes.

This PR fixes the autoclose-schedule workflow to not run on forks, links to a central list of how to improve a PR, and implements some changes in the wording. Specifically, it makes it more clear to new contributors where the autoclose label was set, that they are responsible to fix the issues and advises them to not request the label getting removed.

AI usage disclosure

I used AI assistance for:

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

@StefanieSenger StefanieSenger moved this to In progress in Labs Dec 11, 2025
@StefanieSenger StefanieSenger changed the title CI/MNT Fix automated comments workflows in Github Actions MNT/DOC Autoclose schedule doesn't run on forks and improved structuring Dec 11, 2025

@lucyleeow lucyleeow left a comment

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.

Overall I think we can be more succinct and structured in the autoclose comment. I am not sure repeating ourselves is going to stop the more egregious offenders and the longer we make this, the less likely people are going to read it.

What about an overall structure of:

  • Paragraph 1: PR does not standards (I think it's fine currently)
  • Paragraph 2: Link to ways to improve PR. Advise they are responsible for driving this PR. If they do not know how to improve their PR, suggest building foundation with other contribution types (link to new contributor section) or asking questions after doing research, which someone from community may respond to.
  • Paragraph 3: If they improve the PR, the label may be removed. Advise against them requesting label be removed or ping-ing maintainers (I think you did not want to tell people not to ping maintainers, but I think its worth having, they can still comment and ask questions, but don't ping maintainers)

I've made more specific suggestions below.

Comment thread doc/faq.rst Resolved
Comment thread doc/faq.rst Resolved
Comment thread doc/faq.rst Resolved
Comment thread doc/faq.rst Resolved
Comment thread .github/workflows/autoclose-comment.yml Resolved
Comment thread .github/workflows/autoclose-comment.yml Outdated
clarifications and changes. Disclose any AI assistance per our
[Automated Contributions Policy](https://scikit-learn.org/dev/developers/contributing.html#automated-contributions-policy).
Scikit-learn maintainers cannot provide one-to-one guidance on this PR.
However, as a community that values helpful discussions, we encourage you to

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.

This seems vague - helpful to whom? And I am worried someone will use this against us, because we don't have time to engage in discussions.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I am referring to this section in our values: "We are a community based on openness and friendly, didactic discussions."

This sentence tries to keep the door open to junior people, who are interested to learn. I am actually pretty fond of expressing something like this. I feel the autoclose message is too harsh otherwise.

Also, I would like to address a broad range of contributions with this label. Right now I feel only really careless PRs would deserve it, and I would not put it on a PR that lacks quality, but the contributors seems to have spend a lot of time getting it right.

And I am worried someone will use this against us, because we don't have time to engage in discussions.

I understand your concerns and I am very sure that some people will misuse this. That's why I tried to express some conditions following this sentence:

  • investigate your problem yourself first
  • be respectful (not pushing generated comments)
  • answer is a gift from the community and not guaranteed
  • answer may come from the community, not necessarily maintainers

What do you think about encouraging community discussions without promising guidance and if you think it is worthwhile: How could we express that so it doesn't get misused?

@lucyleeow lucyleeow Dec 17, 2025 •

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.

Also, I would like to address a broad range of contributions with this label.

Ah, I was mostly thinking of the most egregious contributions, as that is what I have been using the label for. I'd like to think that for a contribution that looks like someone personally put effort in, I'd give pointers instead - but maybe we don't have time for this. Is the idea that it is better that these contributors get some response instead of nothing? I think I'd have to see some of these contributions in action to make a judgement here.

a community member (most likely not a maintainer) might be
willing to offer advice.

Just curious, does this happen often? Don't feel strongly about this section one way or another, but I am just worried they won't get much response.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I find it sometimes hard to judge how much effort was put into something and I feel more at ease when we express something like "Sorry we (maintainers) cannot guide you, but there is a whole community and maybe someone else will."

Just curious, does this happen often?

Currently, rarely. But I'd really like to see it happen. Writing this hope down might help this happening.

At the same time since #32734 we guide new contributors towards starting by reviewing instead of contributing code, so this combination makes sense to me.

@StefanieSenger StefanieSenger Dec 20, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thinking about the phrase I wrote above ("Sorry we (maintainers) cannot guide you, but there is a whole community and maybe someone else will.") I think a friendly variation of this might be enough. The important thing here is to refer the discussion to the community, and we don't need to educate people on how to not be offensive / demanding / pretentious when communicating online.

So I've significantly shortened this paragraph to:

Scikit-learn maintainers cannot provide one-to-one guidance on this PR.
However, if you ask focused, well-researched questions, a community
member may be willing to help. 💬

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.

This sounds good!

At the same time since #32734 we guide new contributors towards starting by reviewing instead of contributing code, so this combination makes sense to me.

I agree and this is a nice approach/direction!

@StefanieSenger StefanieSenger left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks for your feedback, @lucyleeow, which is valuable and I have implemented most of the requested changes, except in the paragraph that keeps the door open for people who want to learn where I hope we can resolve this together.

Though I can understand your concern about repeating ourselves, this PR doesn't make the comment longer and cutting it down to only three paragraphs you suggested feel a bit strict to me. My goal also is to help us feel less guilty when using this label and for me it helps to be a bit more generous with information, since I have unexperienced but genuine people in mind that read this (knowing that authors of the careless fly-by PRs don't read, but who cares). I have tried not to speak of "us" but instead of "scikit-learn", because the former sounds gatekeepy, and I don't want to spell out something like "build your foundations first" (which I find degrading) but instead to talk about familiarising yourself with the repo.

I have added "please do not ping maintainers", after experiencing some pings on incomplete PRs myself, I think its necessary.

Comment thread .github/workflows/autoclose-comment.yml Resolved
Comment thread .github/workflows/autoclose-comment.yml Outdated
clarifications and changes. Disclose any AI assistance per our
[Automated Contributions Policy](https://scikit-learn.org/dev/developers/contributing.html#automated-contributions-policy).
Scikit-learn maintainers cannot provide one-to-one guidance on this PR.
However, as a community that values helpful discussions, we encourage you to

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I am referring to this section in our values: "We are a community based on openness and friendly, didactic discussions."

This sentence tries to keep the door open to junior people, who are interested to learn. I am actually pretty fond of expressing something like this. I feel the autoclose message is too harsh otherwise.

Also, I would like to address a broad range of contributions with this label. Right now I feel only really careless PRs would deserve it, and I would not put it on a PR that lacks quality, but the contributors seems to have spend a lot of time getting it right.

And I am worried someone will use this against us, because we don't have time to engage in discussions.

I understand your concerns and I am very sure that some people will misuse this. That's why I tried to express some conditions following this sentence:

  • investigate your problem yourself first
  • be respectful (not pushing generated comments)
  • answer is a gift from the community and not guaranteed
  • answer may come from the community, not necessarily maintainers

What do you think about encouraging community discussions without promising guidance and if you think it is worthwhile: How could we express that so it doesn't get misused?

Comment thread doc/faq.rst Resolved
Comment thread doc/faq.rst Resolved
Comment thread doc/faq.rst Resolved
Comment thread doc/faq.rst Resolved
Comment thread .github/workflows/autoclose-comment.yml Resolved

@lucyleeow lucyleeow left a comment

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 reads much better, but personally still prefer conciseness (but this is more of a personal preference).

Some thoughts but would be good to get someone else's perspective as well.

Comment thread .github/workflows/autoclose-comment.yml Resolved
Comment thread .github/workflows/autoclose-comment.yml Outdated
clarifications and changes. Disclose any AI assistance per our
[Automated Contributions Policy](https://scikit-learn.org/dev/developers/contributing.html#automated-contributions-policy).
Scikit-learn maintainers cannot provide one-to-one guidance on this PR.
However, as a community that values helpful discussions, we encourage you to

@lucyleeow lucyleeow Dec 17, 2025 •

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.

Also, I would like to address a broad range of contributions with this label.

Ah, I was mostly thinking of the most egregious contributions, as that is what I have been using the label for. I'd like to think that for a contribution that looks like someone personally put effort in, I'd give pointers instead - but maybe we don't have time for this. Is the idea that it is better that these contributors get some response instead of nothing? I think I'd have to see some of these contributions in action to make a judgement here.

a community member (most likely not a maintainer) might be
willing to offer advice.

Just curious, does this happen often? Don't feel strongly about this section one way or another, but I am just worried they won't get much response.

Comment thread doc/faq.rst Resolved
Comment thread .github/workflows/autoclose-comment.yml Outdated
Comment on lines +50 to +53
As the author, you are responsible for driving this PR, which entails
presenting its context and your approach, complying with scikit-learn's
development standards, fixing test failures, answering questions, addressing
maintainer suggestions, and doing additional research if requested. If you

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.

Thinking about this more, I am not sure about this section - with respect to your sentiment of not wanting to sound too harsh, and the idea that small issues in an otherwise well prepared PR is probably not the main problem.

I like the idea of saying that they are responsible for driving this PR, but the long list may seem intimidating to genuine contributors. You'd also think genuine contributors would already answer questions and address maintainer suggestions. Fixing test failures are already mentioned in the PR checklist.

For the use cases I have seen, I feel like the problem is more the lack of background research, lack of context provided and no description of their though process/why they decided on this solution/what alternatives were thought about. Of course, some PRs also give the bare minimum (no tests, no doc changes, CI may or may not be failing) and call it 'fixing' an issue.

@StefanieSenger StefanieSenger Dec 20, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I understand what you mean. I have changed this part of the message into the following:

As the author, you are responsible for driving this PR, which entails
doing necessary background research as well as presenting its context and
your thought process.

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.

This is nice!

@StefanieSenger

Copy link
Copy Markdown
Member Author

I've now significantly straightened this comment @lucyleeow.
It is now more direct and puts emphasis on protecting reviewer's time. Please have a look.

@lucyleeow lucyleeow left a comment

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.

Thank you! LGTM

Comment thread .github/workflows/autoclose-comment.yml Resolved
@lucyleeow lucyleeow added the Waiting for Second Reviewer First reviewer is done, need a second one! label Dec 21, 2025

@lesteve lesteve left a comment •

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.

Thanks for this PR! Let's merge this one and iterate on it if we need

@lesteve
lesteve merged commit 521a5b0 into scikit-learn:main Dec 22, 2025
@github-project-automation github-project-automation Bot moved this from In progress to Done in Labs Dec 22, 2025
@StefanieSenger
StefanieSenger deleted the fix_automated_comments branch December 29, 2025 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build / CI Documentation Waiting for Second Reviewer First reviewer is done, need a second one!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants