Commit 2cc1417
Hung Minh Vo
feat(workflow): add action to trigger PR creation on issue comments or manual runs
This commit introduces a new GitHub Actions workflow that listens for issue comments
of type 'created' and also supports manual triggering via workflow_dispatch. The goal
is to automate PR-related tasks — such as automatically opening or modifying pull
requests — based on comments made on issues or via admin control.
Key Features:
- Listens for issue_comment events (e.g. `/create-pr`)
- Can be triggered manually using workflow_dispatch
- Grants scoped permissions to write to contents and pull requests
Use Cases:
- Enable maintainers to trigger automated PRs via comments
- Support CI/CD pipelines that require comment-based automation
- Enhance contributor and bot collaboration (e.g., Dependabot integration)
Security Notes:
- Only users with write permissions on the fork will be able to push changes
- Permissions are limited to only what's necessary: `contents: write`, `pull-requests: write`
Next Steps:
- Add conditionals to filter comments (e.g. specific slash commands)
- Extend with job steps to create or modify PRs automatically
This workflow is foundational for scaling automation in this repo while keeping manual
control where necessary.
Signed-off-by: AIC-HMV <security@aic-hmv.org>1 parent aaf57c0 commit 2cc1417
1 file changed
Lines changed: 8 additions & 1 deletion
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
2 | 9 | | |
3 | 10 | | |
4 | 11 | | |
| |||
0 commit comments