Skip to content

Commit 41756cf

Browse files
feat: add workflow to review PRs labeled with GFI and Beginner
Signed-off-by: tech0priyanshu <priyanshuyadv101106@gmail.com>
1 parent 946fec3 commit 41756cf

2 files changed

Lines changed: 32 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Request triage review on beginner PRs
2+
3+
on:
4+
pull_request:
5+
types: [labeled]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
request-triage:
13+
if: ${{ github.event.label && (github.event.label.name == 'Good First Issue' || github.event.label.name == 'Beginner') }}
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Request review from triage team
17+
uses: actions/github-script@v7
18+
with:
19+
script: |
20+
const prNumber = context.payload.pull_request.number;
21+
const owner = context.repo.owner;
22+
const repo = context.repo.repo;
23+
const team_reviewers = ['triage'];
24+
await github.rest.pulls.requestReviewers({
25+
owner,
26+
repo,
27+
pull_number: prNumber,
28+
team_reviewers,
29+
});
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ This changelog is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.
88

99
### Added
1010

11+
- GitHub Actions workflow to review pull requests labeled with `GFI` and `Beginner`. (`#1721`)
1112
- Added CodeRabbit review instructions for the transaction module in `.coderabbit.yaml` (#1696)
1213
- Added CodeRabbit review instructions and path mapping for the schedule module (`src/hiero_sdk_python/schedule/`) in `.coderabbit.yaml` (#1698)
1314

0 commit comments

Comments
 (0)