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

ci: Automatically lock issues and PRs older than a year #3422

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

miquelbeltran
Copy link
Member

Description

This GH action closes PRs and Issues that have been closed and without activity for a year.

This is to avoid spam on older issues and force users to create new tickets if they have problems.

The default is 365 days since last activity. We can lower this value to something shorter e.g. 90 days.

Related Issues

  • None

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I titled the PR using Conventional Commits.
  • I did not modify the CHANGELOG.md nor the plugin version in pubspec.yaml files.
  • All existing and new tests are passing.
  • The analyzer (flutter analyze) does not report any problems on my PR.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
  • No, this is not a breaking change.

@miquelbeltran miquelbeltran requested a review from vbuberen January 6, 2025 08:18
Copy link
Collaborator

@vbuberen vbuberen left a comment

Choose a reason for hiding this comment

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

Do we want to add messages as well to locking action?

@@ -26,3 +30,8 @@ jobs:
exempt-issue-labels: enhancement
exempt-pr-labels: keep-open
operations-per-run: 1000
- name: Lock closed issues and PRs (defaults to 365 days)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: I suggest to change the name a bit, so it looks something like this:

# Defaults to 365
- name: Lock old issues and PRs

Simplify setup
@miquelbeltran
Copy link
Member Author

I simplified the CI script, removed the explicit process-only and as well the mention on the default inactive days value

@vbuberen vbuberen merged commit 0221db4 into main Jan 13, 2025
5 checks passed
@vbuberen vbuberen deleted the miquelbeltran-patch-1 branch January 13, 2025 08:16
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.

2 participants