Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/request-triage-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Request triage review on beginner and Good First Issue PRs

Comment thread
tech0priyanshu marked this conversation as resolved.
on:
Comment thread
tech0priyanshu marked this conversation as resolved.
pull_request_target:
types: [opened, labeled]
Comment thread
exploreriii marked this conversation as resolved.

concurrency:
group: triage-${{ github.event.pull_request.number }}
cancel-in-progress: true

permissions:
contents: read
pull-requests: write
Comment thread
exploreriii marked this conversation as resolved.
Comment thread
tech0priyanshu marked this conversation as resolved.

jobs:
request-triage:
if: ${{ contains(github.event.pull_request.labels.*.name, 'Good First Issue') || contains(github.event.pull_request.labels.*.name, 'beginner') }}
runs-on: [self-hosted,hl-sdk-py-lin-md]

steps:
- name: Request triage review
Comment thread
exploreriii marked this conversation as resolved.
uses: actions/github-script@v9.0.0 #v9.0.0
with:
script: |
const tag = "<!-- triage -->";
const { data: comments } = await github.rest.issues.listComments({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number
});
if (!comments.some(c => c.body?.includes(tag))) {
await github.rest.issues.createComment({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.payload.pull_request.number,
body: `${tag} Requesting triage review from: @hiero-ledger/hiero-sdk-python-triage`
});
Comment thread
tech0priyanshu marked this conversation as resolved.
}
Loading