Skip to content

feat: new action to auto approve version packages PRs from layerzero-bot - #1618

Merged
shankars99 merged 2 commits into
mainfrom
ci/lzbot-auto-approve
Jul 21, 2025
Merged

feat: new action to auto approve version packages PRs from layerzero-bot#1618
shankars99 merged 2 commits into
mainfrom
ci/lzbot-auto-approve

Conversation

@shankars99

Copy link
Copy Markdown
Collaborator

Version Package PRs should not require 2 approvals. This can slow down developers that merge a PR and then wait on another approval to bump packages.

This PR introduces a new github action that auto approves (1 time) PRs from @layerzero-bot (our version package author).

Auto approve layerzero-bot:

  1. The action ONLY approves when the author is layerzero-bot
  2. The action ONLY approves when ALL the files changes are in this allowed list:
    • **/package.json
    • **/pnpm-lock.yaml
    • **/.changeset/**
    • **/CHANGELOG.md
    • .changeset/**
  3. It creates a SINGLE approval for the PR
  4. It leaves a comment on the PR to track the approval
  5. A failed auto-approve WILL NOT block 2 human approvals from merging the PR
  6. The passing of this action is NOT required for the PR to be merged

Signed-off-by: shankar <shankar@layerzerolabs.org>
Comment thread .github/workflows/auto-approve-layerzero-bot.yaml Fixed
Signed-off-by: shankar <shankar@layerzerolabs.org>
@shankars99
shankars99 marked this pull request as ready for review July 15, 2025 17:16
@shankars99
shankars99 requested review from a team July 15, 2025 17:17
@nazreen
nazreen requested a review from Copilot July 16, 2025 20:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a GitHub Actions workflow to automatically approve version package PRs from the layerzero-bot user, reducing the approval requirement from 2 to 1 human approval to speed up the development process.

  • Adds automated approval for PRs from layerzero-bot when they only contain package/version-related files
  • Implements file validation to ensure only allowed files (package.json, pnpm-lock.yaml, .changeset files, CHANGELOG.md) are modified
  • Includes comment tracking and fail-safe design that won't block manual approvals

Comment thread .github/workflows/auto-approve-layerzero-bot.yaml
Comment thread .github/workflows/auto-approve-layerzero-bot.yaml
Comment thread .github/workflows/auto-approve-layerzero-bot.yaml
@shankars99
shankars99 merged commit 3e58e70 into main Jul 21, 2025
13 checks passed
@shankars99
shankars99 deleted the ci/lzbot-auto-approve branch July 21, 2025 17:32
mattsse pushed a commit to mattsse/devtools that referenced this pull request Aug 12, 2025
…bot (LayerZero-Labs#1618)

Signed-off-by: shankar <shankar@layerzerolabs.org>
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.

5 participants