Does Graphite reviewer have PR title/description c...
# how-do-i
g
Does Graphite reviewer have PR title/description context access? I'd like to add some automated checks regarding title conventions and descriptions but the rule I added doesn't appear to be working.
p
(If applicable) To help us more clearly understand what you're trying to do, please provide additional details about: - Screenshots / debug logs / list of commands you've tried to run so far - Your workflow - Current state
g
very simple rule addition shown below, but I don't see notifications on new PRs that have an empty description.
p
hey Guy, I believe it does get the PR title and description passed into its context. And they are available as PR-level filters. You may need to make the prompt more verbose and explicit for the LLM.
g
Thanks! We've added another rule here with lots of description but it doesn't seem to run either. Is it possible that the agent has access to the PR title and description in its context but isn't able to place comments appropriately and so avoids adding a note...? All other rules regarding code itself seem to run just fine so I'm wondering if it's an issue with where comments can be placed.
p
Ah yeah I think you're right about that. May be a CI-based check is more appropriate for enforcing this kind of formatting rules as it can be programmed to post to the PR's Discussion.
👍 1
g
Gotcha thanks! Could be a good feature to consider in future.