Skip to content

Conversation

@jesserockz
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings June 26, 2025 03:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds a new GitHub Actions workflow to automatically lock closed issues and pull requests.

  • Introduces a new workflow file (.github/workflows/lock.yml) that runs daily and conditionally locks items based on their closed date.
  • Implements a script using actions/github-script to check each closed item and lock those eligible.


// The `listForRepo` endpoint fetches both issues and pull requests.
// We fetch all closed items and filter them in the script.
const closedItems = await github.paginate(github.rest.issues.listForRepo, {
Copy link

Copilot AI Jun 26, 2025

Choose a reason for hiding this comment

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

Fetching all closed items may lead to performance issues in large repositories. Consider using filters such as a 'since' parameter or setting 'per_page' to limit the number of items retrieved.

Copilot uses AI. Check for mistakes.
@netlify
Copy link

netlify bot commented Jun 26, 2025

Deploy Preview for esphome-dev-docs ready!

Name Link
🔨 Latest commit fdbbc15
🔍 Latest deploy log https://app.netlify.com/projects/esphome-dev-docs/deploys/685cc4b22c2653000828af38
😎 Deploy Preview https://deploy-preview-49--esphome-dev-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@jesserockz jesserockz merged commit 8f6c382 into main Jun 26, 2025
4 checks passed
@jesserockz jesserockz deleted the jesserockz-2025-247 branch June 26, 2025 03:57
@github-actions github-actions bot locked and limited conversation to collaborators Jun 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants