Skip to content

Commit 2cc1417

Browse files
author
Hung Minh Vo
authored
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

File tree

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
name: Create a PR to add an entry to the CHANGELOG.md file in this repo
1+
feat: trigger PR creation on issue comment or manual dispatch
2+
3+
This workflow listens for new issue comments or manual workflow dispatches,
4+
and initiates automated PR logic with write access to contents and pull requests.
5+
6+
Use case: automating contributor PR triggers from comment-based commands.
7+
name:
8+
Create a PR to add an entry to the CHANGELOG.md file in this repo
29

310
# **What it does**: If a member of the github org posts a changelog comment, it creates a PR to update the CHANGELOG.md file.
411
# **Why we have it**: This surfaces docs changelog details publicly.

0 commit comments

Comments
 (0)