Skip to content

Add pr comment trigger action #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add pr comment trigger action #5

wants to merge 2 commits into from

Conversation

gnpar
Copy link
Contributor

@gnpar gnpar commented Apr 30, 2025

No description provided.

@gnpar gnpar requested a review from Copilot April 30, 2025 11:04
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a GitHub Action that triggers workflows based on PR comment patterns. It introduces a new composite action to process PR comments with regex matching, a sample workflow demonstrating check creation and commenting, and updates to the README for usage instructions.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
pr-comment-trigger/examples/workflow-with-feedback.yml Workflow to trigger on PR comment, create and update checks, and post feedback comments
pr-comment-trigger/action.yml Composite action processing PR comments with regex matching and optional acknowledgment
pr-comment-trigger/README.md Documentation update for the new PR comment trigger action

@gnpar
Copy link
Contributor Author

gnpar commented Apr 30, 2025

/foo mybar mybaz

Copy link

Foo command was executed

Bar: mybar
Baz: mybaz
Status: ✅ Success

This check was triggered by a comment

@gnpar
Copy link
Contributor Author

gnpar commented Apr 30, 2025

/foo bar2 baz2

Copy link

Foo command was executed

Bar: bar2
Baz: baz2
Status: ✅ Success

This check was triggered by a comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant