Skip to content

Commit

Permalink
Post comment for PRs from forks (#4027)
Browse files Browse the repository at this point in the history
* Add Linux to workflow

* Add CircleCI again

* Try to add comment

* Extend comment function

* Extend comment function

* Extend comment function

* Change artifact name

* Revert changes to just posting a comment

* Run on PR target

* Add logging

* trigger

* Finalize changes
  • Loading branch information
lukastaegert committed Mar 29, 2021
1 parent c008f3e commit 56b3eb8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/pr-comment.yml
@@ -0,0 +1,35 @@
name: PR Comment

on:
pull_request_target:

jobs:
comment:
runs-on: ubuntu-latest
steps:
- name: Find Comment
uses: peter-evans/find-comment@v1
id: fc
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
body-includes: 'Thank you for your contribution!'
- name: Create comment
if: steps.fc.outputs.comment-id == ''
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
### Thank you for your contribution! ❤️
You can try out this pull request locally by installing Rollup via
```bash
npm install ${{ github.event.pull_request.head.repo.full_name }}#${{ github.event.pull_request.head.ref }}
```
Once a build has completed, you can load it into the REPL by inserting the CircleCI build number of the **ci/circleci: node-v12-latest** build into the link below (unfortunately, we cannot auto-update this comment for PRs from forks at this time):
```
https://rollupjs.org/repl/?circleci=<build_number>
```

0 comments on commit 56b3eb8

Please sign in to comment.