Skip to content

added auto reply #206

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

Merged
merged 3 commits into from
Jul 23, 2025
Merged

added auto reply #206

merged 3 commits into from
Jul 23, 2025

Conversation

Preeti9764
Copy link
Contributor

@Preeti9764 Preeti9764 commented Jul 18, 2025

📌 Fixes

Fixes #202


📝 Summary of Changes

  • Added a workflow (.github/workflows/auto-assign-reply.yml) that automatically replies to issue comments requesting assignment (e.g., “assign this to me”, “please assign”, etc.).
  • The keywords to trigger the auto-reply and the response message itself are now configurable via environment variables in the workflow’s env section.
  • The auto-reply now tags the commenter (e.g., @username) at the start of the message, ensuring they are notified and making the response more personal.

Summary by Sourcery

Introduce a GitHub Actions workflow that automatically replies to issue assignment requests and enhance the README with new filtering options and streamlined setup instructions.

Enhancements:

  • Add Advanced Repository Filtering section to README
  • Add option to include commits on existing pull requests in README
  • Streamline and restructure local setup instructions in README

CI:

  • Add auto-assign-reply GitHub Actions workflow to respond to issue assignment requests based on keywords

Copy link
Contributor

sourcery-ai bot commented Jul 18, 2025

Reviewer's Guide

This PR enhances the README with documentation for two new features and streamlined setup steps, and introduces a GitHub Actions workflow that automatically replies to issue assignment requests.

Sequence diagram for auto-reply to assignment requests

sequenceDiagram
  actor User
  participant GitHub as GitHub
  participant Action as Auto-Reply Action
  participant Issue as GitHub Issue

  User->>GitHub: Post comment on issue
  GitHub->>Action: Trigger issue_comment event
  Action->>Action: Check comment for assignment keywords
  alt Assignment keyword found
    Action->>Issue: Post auto-reply comment
  else No assignment keyword
    Action->>Action: Do nothing
  end
Loading

File-Level Changes

Change Details Files
Enhanced README with new feature docs and streamlined setup instructions
  • Added “Advanced Repository Filtering” section
  • Added “Include Commits on Existing PRs” section
  • Removed outdated organization-configuration instructions
  • Restructured and renumbered local setup steps
  • Commented out deprecated Firefox loading instructions
README.md
Added GitHub Actions workflow for auto-reply on assignment requests
  • Created workflow file triggered on new issue comments
  • Defined assign-related keywords and response template via env variables
  • Implemented script to detect keywords and post a standardized reply
.github/workflows/auto-assign-reply.yml

Assessment against linked issues

Issue Objective Addressed Explanation
#202 Implement an automatic response mechanism for issue comments that contain certain keywords or patterns related to assignment requests.
#202 Ensure that the auto-reply message matches the specified text: 'Please go ahead and create a PR when you are ready. We do not formally assign issues. Contributors are free to pick up any open issue based on their availability. You can open a PR or even a draft PR to let others know that you’re working on it.'

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @Preeti9764 - I've reviewed your changes - here's some feedback:

  • Add a check in the auto-reply workflow to detect whether the bot has already commented and skip replying again to avoid duplicate responses.
  • After reshuffling the README sections, verify that all internal links and anchors are updated so navigation isn’t broken.
  • Consider extracting the long ASSIGN_RESPONSE text from the workflow into a separate config or repo variable for easier maintenance.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Add a check in the auto-reply workflow to detect whether the bot has already commented and skip replying again to avoid duplicate responses.
- After reshuffling the README sections, verify that all internal links and anchors are updated so navigation isn’t broken.
- Consider extracting the long ASSIGN_RESPONSE text from the workflow into a separate config or repo variable for easier maintenance.

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@hpdang hpdang requested a review from vedansh-5 July 21, 2025 06:47
@hpdang hpdang merged commit 9da123c into fossasia:master Jul 23, 2025
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.

Add auto-reply feature to respond to specific issue comments
3 participants