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

Adds Lock Threads Probot #24984

Merged
merged 1 commit into from
Jul 6, 2019
Merged

Adds Lock Threads Probot #24984

merged 1 commit into from
Jul 6, 2019

Conversation

frenck
Copy link
Member

@frenck frenck commented Jul 6, 2019

Description:

We are dealing with a lot of people that are commenting on merged PR's (sometimes really old ones).
They should have created an issue.

This PR adds the Lock Threads Probot, which is able to Lock merged PR's and closed issues, and thus limiting further comments to just collaborators.

This requires this app to be installed: https://github.com/apps/lock
⚠️ Install this app on specific this repository but not on the organization!

I've configured merged PR's to be locked in 1 day and issues 30 days after closing.
There is no message left, and no labels set to prevent notifications being triggered.

PS: Issue locking is turned off for the time being, since I feel PR's are the culprit

Related issue (if applicable): n/a

Pull request with documentation for home-assistant.io (if applicable): n/a

Example entry for configuration.yaml (if applicable): n/a

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly. Update and include derived files by running python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt by running python3 -m script.gen_requirements_all.
  • Untested files have been added to .coveragerc.

If the code does not interact with devices:

  • Tests have been added to verify that the new code works.

@homeassistant homeassistant added cla-signed small-pr PRs with less than 30 lines. labels Jul 6, 2019
@frenck frenck marked this pull request as ready for review July 6, 2019 14:56
# Configuration for Lock Threads - https://github.com/dessant/lock-threads

# Number of days of inactivity before a closed issue or pull request is locked
daysUntilLock: 1
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we should set it to 7 days? Immediate feedback might be useful, and 7 days is the time the beta lasts, which is what usually attracts bad comments (because we do a release that links all the posts)

Copy link
Member Author

Choose a reason for hiding this comment

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

I started writing a comment on which I agreed and suggest to prolong it to 21 in that case to cover the whole release period. Remove it, started over again.

I think it should be issues, not comments on PR. Issues can be milestoned and marked as a beta issue. Those are trackable. Whatever happens on a closed PR is not trackable in any way.

I'm happy to adjust, but please consider the above.

Copy link
Member

Choose a reason for hiding this comment

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

ok

@frenck frenck merged commit ac4f2c9 into dev Jul 6, 2019
@delete-merged-branch delete-merged-branch bot deleted the frenck-2019-0095 branch July 6, 2019 17:48
@lock lock bot locked and limited conversation to collaborators Jul 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla-signed small-pr PRs with less than 30 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants