You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/custom-reports.md
+66-20
Original file line number
Diff line number
Diff line change
@@ -115,26 +115,72 @@ Contained within the `<pr_details>` tag.
115
115
Here's an example prompt that uses these data points:
116
116
117
117
```text
118
-
Generate a summary with the following format for each PR:
119
-
120
-
## [PR Title](URL)
121
-
**Status**: {Use these symbols based on state}
122
-
- 🔀 if Merged is true
123
-
- 📝 if Draft is true
124
-
- 💬 if State is "open"
125
-
- 🔒 if State is "closed" and not merged
126
-
Add ⚠️ if Is stale is true
127
-
128
-
**Author**: {Author name}
129
-
**Created**: {Created at}
130
-
**Labels**: {Labels joined by commas}
131
-
**Reviewers**: {Reviewers joined by commas}
132
-
133
-
### Summary
134
-
{Summary limited to 50 words}
135
-
136
-
### Recent Activity
137
-
{List last 3 comments with username and content}
118
+
Use the <overall_instructions> to guide the content of the summary. Use the format shown in <example> but do not include or refer the example's content in the final summary/report.
119
+
120
+
<overall_instructions>
121
+
Generate a summary of each pull request in the following bullet point format:
122
+
123
+
- PR Link: Provide a hyperlink to the pull request from the 'URL:' value
124
+
- Title: Provide the value of the 'Title:' field
125
+
- PR State: Provide the state of the PR based on the following conditions:
126
+
- If 'Merged: true' set 'PR State: 🔀 Merged'
127
+
- Else If 'Draft: true' set 'PR State: 📝 Draft'
128
+
- Else If 'State: open' or 'State: active' set 'PR State: 💬 Open'
129
+
- Else If 'State: closed' and 'Merged: false' set 'PR State: 🔒 Closed'
130
+
- Else set 'PR State: ❓ Unknown'
131
+
- If the PR is stale, add '⚠️ Stale' at the end of the PR State.
132
+
- Mergeable (if PR State if not 'Merged'): Provide the mergeable status of the PR as 'Mergeable' or 'Not Mergeable'.
133
+
- Summary: In under 50 words provide a short summary of the PR.
134
+
- Comments: In under 50 words provide a short summary of all comments found within <pr_comments>, including each comments author username from <comment_author_username>. If there are no comments available, output 'No comments'.
0 commit comments