Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/peterkrauz/search-pull-request-comments-action
Github Action that verifies if a given user has left a comment in a pull-request
https://github.com/peterkrauz/search-pull-request-comments-action
Last synced: 10 days ago
JSON representation
Github Action that verifies if a given user has left a comment in a pull-request
- Host: GitHub
- URL: https://github.com/peterkrauz/search-pull-request-comments-action
- Owner: peterkrauz
- License: apache-2.0
- Created: 2022-02-25T00:03:26.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-26T17:58:22.000Z (10 months ago)
- Last Synced: 2024-10-04T05:44:46.709Z (about 1 month ago)
- Language: Python
- Size: 20.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Search pull-request comments Action
Searches a pull-request for any comment left by a specific user. If no comment is found, the step fails.
Searches through both simple and review comments.## Installation
On `.github/workflows/`, create a file `pr_comment_search.yml`:
```yml
name:
on: pull_requestjobs:
search_pull_request_comments:
runs-on: ubuntu-latest
container: python:3.7-slimsteps:
- name: Search pull-request comments
uses: peterkrauz/[email protected]
env:
REQUIRED_COMMENT_USER: "john-doe"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EVENT_DETAILS: ${{ toJSON(github.event) }}
```In this setup, the step will succeed if there's any comment written by `john-doe` in your pull-request.
If `john-doe` did not comment in this pull-request, the job will fail.