githubtraining / using-github-actions-for-ci

Course repository for "GitHub Actions: Continuous Integration"
https://lab.github.com/githubtraining/github-actions:-continuous-integration
Creative Commons Attribution 4.0 International
3 stars 16 forks source link

Failure in Step 14, github-learning-lab bot fails to comment on PR "Validation Failed" #58

Open june1963 opened 3 years ago

june1963 commented 3 years ago

bug report

Description: GitHub Actions for CI fails to progress past step 14, failing to comment next step for the GitHub Learning Lab user instructions.

Context:

Debug Issue raised in Learning Lab templated repository here

Error in github-actions:-continuous-integration:automate-the-review-process:createPullRequestComment[2]

HttpError: {"message":"Validation Failed","errors":[{"resource":"PullRequestReviewComment","code":"invalid","field":"pull_request_review_thread.path"},{"resource":"PullRequestReviewComment","code":"missing_field","field":"pull_request_review_thread.diff_hunk"}],"documentation_url":"https://docs.github.com/rest"}
    at /usr/src/learning-lab/node_modules/@octokit/rest/lib/request/request.js:72:19
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async Context.runActions (/usr/src/learning-lab/lib/context.js:233:24)
    at async Course.runHandler (/usr/src/learning-lab/lib/course.js:174:32)