rootstock icon indicating copy to clipboard operation
rootstock copied to clipboard

Add GitHub Actions pull request comments to workflow

Open agitter opened this issue 5 years ago • 2 comments

This is a work-in-progress pull request to implement the GitHub Actions pull request comments with artifact links. See #322 for a discussion of the current roadblocks and https://github.com/agitter/my-manuscript/pull/14 for my trial and error testing of different actions.

TODO:

  • [ ] Only run this step on pull requests
  • [ ] Retrieve the artifact URL
  • [ ] Investigate 403 forbidden error

agitter avatar Mar 27 '20 15:03 agitter

Interesting. The "Comment on Pull Request" step failed with a 403 forbidden error in this pull request. The same workflow worked when I made a pull request into a repository I owned.

agitter avatar Mar 27 '20 16:03 agitter

The GitHub developer guide refers to a personal access token for authentication: https://developer.github.com/v3/guides/working-with-comments/#pull-request-comments

If I'm reading the GITHUB_TOKEN permissions correctly, it shows forked repos only have read permission.

agitter avatar Mar 27 '20 17:03 agitter