You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if: ${{ github.event_name == 'issue_comment' && endsWith(github.event.comment.body, '- [x] Check this box to apply formatting changes to this branch.') }}
64
+
runs-on: ubuntu-latest
65
+
env:
66
+
TMP_DIFF_FILE: /tmp/diff.patch
67
+
permissions:
68
+
pull-requests: write
69
+
contents: write
70
+
steps:
71
+
- uses: actions/github-script@v3
72
+
id: get-pr
73
+
with:
74
+
script: |
75
+
const request = {
76
+
owner: context.repo.owner,
77
+
repo: context.repo.repo,
78
+
pull_number: context.issue.number
79
+
}
80
+
core.info(`Getting PR #${request.pull_number} from ${request.owner}/${request.repo}`)
81
+
try {
82
+
const result = await github.pulls.get(request)
83
+
return result.data
84
+
} catch (err) {
85
+
core.setFailed(`Request failed with error ${err}`)
0 commit comments