Skip to content

Commit 532bf16

Browse files
committed
chore: automerge PRs only with automerge label
1 parent cf95652 commit 532bf16

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/workflows/create-prs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,12 @@ jobs:
106106
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.`
107107
})
108108
core.info(`${pr.data.html_url} created successfully`)
109+
void github.rest.issues.addLabels({
110+
owner: repo.owner.login,
111+
repo: repo.name,
112+
issue_number: pr.number,
113+
labels: ["automerge"]
114+
})
109115
} catch(error) {
110116
core.error(`Couldn't create a PR for ${repo.html_url}/tree/${branch.name}, got: ${error}`)
111117
failed.push({repo, branch})

.github/workflows/merge-prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- name: Merge PRs
2222
env:
23-
QUERY: is:pr author:web3-bot state:open archived:false
23+
QUERY: is:pr author:web3-bot state:open archived:false label:automerge
2424
BRANCH: ${{ github.event.inputs.branch }}
2525
DRY_RUN: ${{ github.event.inputs.dry-run }}
2626
uses: actions/github-script@v7

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77
## Unreleased
8+
### Changed
9+
- automerge only PRs with automerge label
810

911
## [1.0.34] - 2025-09-16
1012
### Fixed

0 commit comments

Comments
 (0)