diff --git a/.github/workflows/create-prs.yml b/.github/workflows/create-prs.yml index e428132..08bf0e5 100644 --- a/.github/workflows/create-prs.yml +++ b/.github/workflows/create-prs.yml @@ -106,6 +106,12 @@ jobs: body: `This PR was created automatically by the @web3-bot as a part of the [Unified CI](https://github.com/ipdxco/unified-github-workflows) project.` }) core.info(`${pr.data.html_url} created successfully`) + void github.rest.issues.addLabels({ + owner: repo.owner.login, + repo: repo.name, + issue_number: pr.number, + labels: ["automerge"] + }) } catch(error) { core.error(`Couldn't create a PR for ${repo.html_url}/tree/${branch.name}, got: ${error}`) failed.push({repo, branch}) diff --git a/.github/workflows/merge-prs.yml b/.github/workflows/merge-prs.yml index dac8fae..a05a40a 100644 --- a/.github/workflows/merge-prs.yml +++ b/.github/workflows/merge-prs.yml @@ -20,7 +20,7 @@ jobs: steps: - name: Merge PRs env: - QUERY: is:pr author:web3-bot state:open archived:false + QUERY: is:pr author:web3-bot state:open archived:false label:automerge BRANCH: ${{ github.event.inputs.branch }} DRY_RUN: ${{ github.event.inputs.dry-run }} uses: actions/github-script@v7 diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c4bf91..60be1f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Unreleased +### Changed +- automerge only PRs with automerge label ## [1.0.34] - 2025-09-16 ### Fixed