Skip to content

DEV3-4782: Generalize GitHub Action to support custom prompts and comment prefixes#29

Open
Pavel-tabnine wants to merge 1 commit intomainfrom
DEV3-4782/generalize-action-inputs
Open

DEV3-4782: Generalize GitHub Action to support custom prompts and comment prefixes#29
Pavel-tabnine wants to merge 1 commit intomainfrom
DEV3-4782/generalize-action-inputs

Conversation

@Pavel-tabnine
Copy link
Copy Markdown
Contributor

@Pavel-tabnine Pavel-tabnine commented Mar 18, 2026

Summary

Make the tabnine-pr-agent GitHub Action generic so it can be used for any Tabnine CLI Agent task, not just code review.

Changes

  • Add prompt_override input to replace the default code review prompt with a custom one
  • Add step_name input to customize the agent step display name
  • Add comment_prefix input to isolate bot comments per action invocation (used for cleanup)
  • Generalize action name/description from Tabnine: Code Review to Tabnine PR Agent
  • Harden jq filter in cleanup step against injection by using env.COMMENT_PREFIX
  • Thread comment_prefix through all hardcoded references in the default prompt to keep cleanup and comment posting in sync

All new inputs are optional with backward-compatible defaults — existing consumers require zero changes.

Jira

DEV3-4782

…ment prefixes

- Add prompt_override input to replace the default code review prompt
- Add step_name input to customize the agent step display name
- Add comment_prefix input to isolate bot comments per action invocation
- Generalize action name/description to 'Tabnine PR Agent'
- Harden jq cleanup filter using env.COMMENT_PREFIX instead of interpolation
- Thread comment_prefix through all references in the default prompt
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.

2 participants