Skip to content

Commit e38c792

Browse files
committed
gogo
1 parent 56f1e40 commit e38c792

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/comment_pr.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,16 @@ jobs:
1010
with:
1111
github-token: ${{secrets.GITHUB_TOKEN}}
1212
script: |
13-
#const diff_url = context.payload.pull_request.diff_url
14-
#const result = await github.request(diff_url)
15-
#console.log(result)
16-
const pay = context.payload
17-
console.log(pay)
18-
# console.log(context.payload.pull_request)
13+
context.pulls.createReview({
14+
pull_number: 14,
15+
owner: context.repo.owner,
16+
repo: context.repo.repo,
17+
body: 'thanks'
18+
event: 'REQUEST_CHANGES'
19+
comments: [
20+
{
21+
path: gitlab/workflows/comment_pr.yml,
22+
line: 1,
23+
body: 'thanks'
24+
}
25+
})

0 commit comments

Comments
 (0)