|
| 1 | +extensions: |
| 2 | + - addsTo: |
| 3 | + pack: github/actions-all |
| 4 | + extensible: untrustedGhCommandDataModel |
| 5 | + data: |
| 6 | + # |
| 7 | + # PULL REQUESTS |
| 8 | + # |
| 9 | + # HEAD_REF=$(gh pr view "${{ github.event.issue.number }}" --json headRefName -q '.headRefName') |
| 10 | + - ["gh\\s+pr\\b.*\\bview\\b.*\\.headRefName.*", "branch,oneline"] |
| 11 | + # TITLE=$(gh pr view $PR_NUMBER --json title --jq .title) |
| 12 | + - ["gh\\s+pr\\b.*\\bview\\b.*\\.title.*", "title,oneline"] |
| 13 | + # BODY=$(gh pr view $PR_NUMBER --json body --jq .body) |
| 14 | + - ["gh\\s+pr\\b.*\\bview\\b.*\\.body.*", "text,multiline"] |
| 15 | + # COMMENTS="$(gh pr view --repo ${{ github.repository }} "$PR_NUMBER" --json "body,comments" -q '.body, .comments[].body')" |
| 16 | + - ["gh\\s+pr\\b.*\\bview\\b.*\\.comments.*", "text,multiline"] |
| 17 | + # CHANGED_FILES="$(gh pr view --repo ${{ github.repository }} ${{ needs.check-comment.outputs.pull_number }} --json files --jq '.files.[].path')" |
| 18 | + - ["gh\\s+pr\\b.*\\bview\\b.*\\.files.*", "filename,multiline"] |
| 19 | + # AUTHOR=$(gh pr view ${ORI_PR} -R ${REPO} --json author -q '.author.login') |
| 20 | + - ["gh\\s+pr\\b.*\\bview\\b.*\\.author.*", "username,oneline"] |
| 21 | + # |
| 22 | + # ISSUES |
| 23 | + # |
| 24 | + # TITLE=$(gh issue view "$ISSUE_NUMBER" --json title --jq '.title') |
| 25 | + - ["gh\\s+issue\\b.*\\bview\\b.*\\.title.*", "title,oneline"] |
| 26 | + # BODY=$(gh issue view -R ${GITHUB_REPOSITORY} ${ORIGINAL_ISSUE_NUMBER} --json title,body,assignees --jq .body) |
| 27 | + - ["gh\\s+issue\\b.*\\bview\\b.*\\.body.*", "text,multiline"] |
| 28 | + # COMMENTS=$(gh issue view "$ISSUE_NUMBER" --json comments --jq '.comments[].body') |
| 29 | + - ["gh\\s+issue\\b.*\\bview\\b.*\\.comments.*", "text,multiline"] |
| 30 | + # |
| 31 | + # API |
| 32 | + # |
| 33 | + # PR="$(gh api /repos/test/test/pulls/${PR_NUMBER})" |
| 34 | + # |
| 35 | + # HEAD_REF=$(gh api -H 'Accept: application/vnd.github+json' /repos/test/test/commits/${{ env.sui_sha }}/pulls --jq '.[].head.ref' | head -n 1) |
| 36 | + - ["gh\\s+api\\b.*\\b(/)?repos/.*/pulls.*\\b.*\\.head.ref.*", "branch,oneline"] |
| 37 | + # TITLE=$(gh api /repos/test/test/pulls/${{PR_NUMBER}} --jq ".title") |
| 38 | + - ["gh\\s+api\\b.*\\b(/)?repos/.*/pulls.*\\b.*\\.title.*", "title,oneline"] |
| 39 | + # BODY=$(gh api /repos/test/test/pulls/${{PR_NUMBER}} --jq ".body") |
| 40 | + - ["gh\\s+api\\b.*\\b(/)?repos/.*/pulls.*\\b.*\\.body.*", "text,multiline"] |
| 41 | + # COMMENTS=$(gh api /repos/test/test/pulls/${PR_NUMBER}/comments --jq '.[].body') |
| 42 | + - ["gh\\s+api\\b.*\\b(/)?repos/.*/pulls.*/comments\\b.*\\.body.*", "text,multiline"] |
| 43 | + # CHANGED_FILES=$(gh api /repos/test/test/pulls/${{PR_NUMBER}}/files --jq '.[].filename') |
| 44 | + - ["gh\\s+api\\b.*\\b(/)?repos/.*/pulls.*/files\\b.*\\.filename.*", "filename,oneline"] |
| 45 | + # AUTHOR=$(gh api /repos/test/test/pulls/${{PR_NUMBER}} --jq ".user.login") |
| 46 | + - ["gh\\s+api\\b.*\\b(/)?repos/.*/pulls.*\\b.*\\.user\\.login.*", "username,oneline"] |
| 47 | + # |
| 48 | + # ISSUES |
| 49 | + # |
| 50 | + # TITLE=$(gh api /repos/test/test/issues/${{PR_NUMBER}} --jq ".title") |
| 51 | + - ["gh\\s+api\\b.*\\b(/)?repos/.*/issues.*\\b.*\\.title.*", "title,oneline"] |
| 52 | + # BODY=$(gh api /repos/test/test/issues/${{PR_NUMBER}} --jq ".body") |
| 53 | + - ["gh\\s+api\\b.*\\b(/)?repos/.*/issues.*\\b.*\\.body.*", "text,multiline"] |
| 54 | + # COMMENTS=$(gh api /repos/test/test/pulls/${PR_NUMBER}/comments --jq '.[].body') |
| 55 | + - ["gh\\s+api\\b.*\\b(/)?repos/.*/issues.*/comments\\b.*\\.body.*", "text,multiline"] |
| 56 | + |
0 commit comments