Skip to content

ci: add stale bot#42

Merged
alexbit-codemod merged 2 commits into
mainfrom
ci/add-stale-bot
Jun 28, 2026
Merged

ci: add stale bot#42
alexbit-codemod merged 2 commits into
mainfrom
ci/add-stale-bot

Conversation

@lumirlumir

@lumirlumir lumirlumir commented Jun 26, 2026

Copy link
Copy Markdown
Member

Prerequisites checklist

AI acknowledgment

  • I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

What is the purpose of this pull request?

This PR simply adds a stale bot automation workflow, as decided in eslint/workflows#4 for the centralized workflow.

I’ve also updated the ci.yml workflow, as it behaved incorrectly in some cases.

What changes did you make? (Give an overview)

Added stale.yml workflow file.

Related Issues

Ref: eslint/workflows#4

Is there anything you'd like reviewers to focus on?

N/A

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds automation to mark/close stale issues and PRs via ESLint’s centralized reusable workflow, and tweaks CI filtering logic for running tests on changed codemods.

Changes:

  • Add a scheduled stale workflow that calls eslint/workflows’ reusable stale workflow.
  • Update the CI “changed codemods” filter generation logic (currently introduces a sed runtime error).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
.github/workflows/stale.yml Adds a scheduled workflow to run the centralized stale-bot reusable workflow.
.github/workflows/ci.yml Modifies the shell pipeline that builds pnpm --filter arguments for changed codemods.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/stale.yml
Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/ci.yml
| cut -d/ -f1-3 \
| sort -u \
| sed 's|^|--filter ./|'
| sed 's|^|--filter ./| || true'

@lumirlumir lumirlumir Jun 26, 2026

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.

This change handles PRs that do not touch codemod packages. Without this, grep '^codemods/' exits with 1 when there are no matching paths, causing the CI step to fail before it can skip tests.

@lumirlumir lumirlumir marked this pull request as ready for review June 26, 2026 14:10
@alexbit-codemod alexbit-codemod merged commit 6336c2f into main Jun 28, 2026
5 checks passed
@alexbit-codemod alexbit-codemod deleted the ci/add-stale-bot branch June 28, 2026 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants