File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020 steps :
2121 - name : Request triage review
22- uses : thollander/ actions-comment-pull-request@e4a76dd2b0a3c2027c3fd84147a67c22ee4c90fa # v3 .0.1
22+ uses : actions/github-script@v9.0.0 # v9 .0.0
2323 with :
24- message : |
25- Requesting triage review from: @hiero-ledger/hiero-sdk-python-triage
26- comment-tag : execution
24+ script : |
25+ const tag = "<!-- triage -->";
26+ const { data: comments } = await github.rest.issues.listComments({
27+ owner: context.repo.owner,
28+ repo: context.repo.repo,
29+ issue_number: context.payload.pull_request.number
30+ });
31+ if (!comments.some(c => c.body?.includes(tag))) {
32+ await github.rest.issues.createComment({
33+ owner: context.repo.owner,
34+ repo: context.repo.repo,
35+ issue_number: context.payload.pull_request.number,
36+ body: `${tag} Requesting triage review from: @hiero-ledger/hiero-sdk-python-triage`
37+ });
38+ }
You can’t perform that action at this time.
0 commit comments