Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/casperdcl/comment-bot
Tag commits by commenting in GitHub issues & PRs
https://github.com/casperdcl/comment-bot
actions bot github-actions
Last synced: 24 days ago
JSON representation
Tag commits by commenting in GitHub issues & PRs
- Host: GitHub
- URL: https://github.com/casperdcl/comment-bot
- Owner: casperdcl
- Created: 2024-02-20T00:56:22.000Z (9 months ago)
- Default Branch: v1
- Last Pushed: 2024-02-20T13:48:15.000Z (9 months ago)
- Last Synced: 2024-10-11T12:01:24.943Z (about 1 month ago)
- Topics: actions, bot, github-actions
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tag Comment Bot
## Example Usage
Add to `.github/workflows/comment-bot.yml`:
```yml
# runs on any comment matching the format `/tag `
name: Comment Bot
on:
issue_comment: {types: [created]}
pull_request_review_comment: {types: [created]}
jobs:
tag:
runs-on: ubuntu-latest
permissions: {contents: write, pull-requests: write, issues: write}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_TOKEN | github.token }}
- uses: casperdcl/comment-bot@v1
with:
token: ${{ secrets.GH_TOKEN | github.token }}
```Then comment on an issue or pull request with `/tag ` (e.g. `/tag v1.33.7 d34db33`).
> [!NOTE]
> The created tag will NOT trigger any `on.tag` workflow runs if using the default `github.token`. Instead, use a [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) to trigger `on.tag` workflow runs.