Skip to content

Add GitHub Actions pull request comments to workflow#327

Draft
agitter wants to merge 2 commits into
manubot:masterfrom
agitter:gh-actions-artifacts
Draft

Add GitHub Actions pull request comments to workflow#327
agitter wants to merge 2 commits into
manubot:masterfrom
agitter:gh-actions-artifacts

Conversation

@agitter

@agitter agitter commented Mar 27, 2020

Copy link
Copy Markdown
Member

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 agitter/my-manuscript#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

agitter commented Mar 27, 2020

Copy link
Copy Markdown
Member Author

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

agitter commented Mar 27, 2020

Copy link
Copy Markdown
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant