feat: add auto-comment workflows for issue assignment, closure, label…#103
Conversation
WalkthroughFour new GitHub Actions workflows have been added to automate comments on issues when they are opened, assigned, labeled, or closed. Each workflow triggers on its respective event and uses the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant GitHub
participant GitHub Actions
participant Issue
User->>GitHub: Open/Assign/Label/Close Issue
GitHub->>GitHub Actions: Trigger respective workflow
GitHub Actions->>Issue: Post automated comment (contextual to event)
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
.github/workflows/autocomment-iss-label.yml (1)
7-11: Reduce permissions scope
Thecontents: writepermission isn’t needed for posting comments on issues. Removing it will follow the principle of least privilege..github/workflows/autocomment-iss-assign.yml (1)
7-11: Minimize permissions
Thecontents: writepermission isn’t required to comment on issues. Dropping it will tighten your security posture.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
.github/workflows/autocomment-iss-assign.yml(1 hunks).github/workflows/autocomment-iss-close.yml(1 hunks).github/workflows/autocomment-iss-label.yml(1 hunks).github/workflows/autocomment-iss-raise.yml(1 hunks)
🔇 Additional comments (4)
.github/workflows/autocomment-iss-raise.yml (1)
1-25: Workflow correctly configured
The "Auto Comment on Issue Opened" workflow has the right trigger, minimal permissions, and usesactions/github-script@v7to post the intended comment..github/workflows/autocomment-iss-label.yml (1)
1-6: Trigger definition is correct
Usingissues: [labeled]correctly scopes this workflow to label events..github/workflows/autocomment-iss-close.yml (1)
1-25: Workflow looks good
The "Auto Comment on Issue Closed" workflow properly listens for theclosedevent and posts the closure acknowledgment..github/workflows/autocomment-iss-assign.yml (1)
1-6: Assignment trigger and comment logic valid
This workflow correctly triggers on issue assignment and dynamically mentions the new assignee.
sanjay-kv
left a comment
There was a problem hiding this comment.
just one question which secrets you used for this.?
|
feat: add auto-comment workflows for issue assignment, closure, label… by developer-mohitsoni · Pull Request #103 · sanjay-kv/recode-website - Google Chrome - 18 June 2025 - Watch Video @developer-mohitsoni Could you watch the above video and lmk if you are interested in my proposal |
Uses GITHUB_TOKEN as a secret. |
This PR Closes Issue #97
Summary by CodeRabbit