Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/daohoangson/comment-on-github
An Action to comment on the relevant GitHub PR / comment on push.
https://github.com/daohoangson/comment-on-github
Last synced: 25 days ago
JSON representation
An Action to comment on the relevant GitHub PR / comment on push.
- Host: GitHub
- URL: https://github.com/daohoangson/comment-on-github
- Owner: daohoangson
- License: mit
- Created: 2020-07-09T06:33:40.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-06-16T12:41:10.000Z (5 months ago)
- Last Synced: 2024-10-15T13:34:24.576Z (29 days ago)
- Language: TypeScript
- Size: 1 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Comment on GitHub
An Action to comment on the relevant GitHub Release / PR / commit on push.
This is a fork of https://github.com/unsplash/comment-on-pr.## Usage
- Runs on Ubuntu, macOS and Windows virtual environments.
- Requires the `GITHUB_TOKEN` secret.
- Requires the comment's body in the `body` parameter.
- Supports `push`, `pull_request` and `release` event types. It's not recommend to combine `push` with others to avoid duplicated work, some common scenarios to consider:| Action | Events |
| ----------------------------- | --------------------------------------------------------------------- |
| Push commit | push:refs/heads/ |
| Push commit in PR | push:refs/heads/, pull_request:synchronize |
| Push tag | push:refs/tags/ |
| Create release from GitHub UI | release:created, release:published, release:released, push:refs/tags/ |### Sample workflow
```yaml
on: push
jobs:
example:
runs-on: ubuntu-latest
steps:
- uses: daohoangson/comment-on-github@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
body: "Check out this comment!"
fingerprint: # optional, will be appended to `body` and used to auto-merge comments
replace: please # optional, comment will be replaced on fingerprint match instead of being appended
```