|
1 | 1 | ---
|
2 |
| -title: Custom Reports |
3 |
| -sidebar_label: Custom Reports |
| 2 | +title: Customize reports |
4 | 3 | description: Learn how to create custom reports with CodeRabbit Pro's flexible reporting system
|
5 |
| -sidebar_position: 8 |
6 | 4 | ---
|
7 | 5 |
|
8 | 6 | ```mdx-code-block
|
@@ -78,6 +76,11 @@ Contained within the `<pr_details>` tag.
|
78 | 76 | - `State`: string ("open"/"closed") - Current state of the PR
|
79 | 77 | - `Mergeable`: boolean (true/false) - Whether the PR can be merged
|
80 | 78 | - `Is stale`: boolean - Whether PR has been inactive for over 168 hours
|
| 79 | +- `PR Stage`: string - The current stage of open PRs in Open or Draft state, can be one of: |
| 80 | + - "Needs Author Action" - PR requires author attention due to merge conflicts, draft status, or requested changes |
| 81 | + - "Waiting for Author to Merge" - PR has approvals and is ready for author to merge |
| 82 | + - "Waiting for Code Reviews" - PR is waiting for reviewers to approve |
| 83 | + - undefined - PR is not in an open state (is merged or closed) |
81 | 84 |
|
82 | 85 | #### Basic Information
|
83 | 86 |
|
@@ -126,60 +129,65 @@ Generate a summary of each pull request in the following bullet point format:
|
126 | 129 | - If 'Merged: true' set 'PR State: 🔀 Merged'
|
127 | 130 | - Else If 'Draft: true' set 'PR State: 📝 Draft'
|
128 | 131 | - Else If 'State: open' or 'State: active' set 'PR State: 💬 Open'
|
129 |
| - - Else If 'State: closed' and 'Merged: false' set 'PR State: 🔒 Closed' |
| 132 | + - Else If 'State: closed' or 'State: DECLINED' and 'Merged: false' set 'PR State: 🔒 Closed' |
130 | 133 | - Else set 'PR State: ❓ Unknown'
|
131 | 134 | - 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'. |
| 135 | +- Mergeable (if PR State is not 'Merged'): Provide the mergeable status of the PR as 'Mergeable' or 'Not Mergeable' based on the "Mergeable: " value. |
| 136 | +- PR Stage (if PR State is not 'Merged'): Provide the stage of the PR based on the "PR Stage: " value. |
133 | 137 | - Summary: In under 50 words provide a short summary of the PR.
|
134 | 138 | - 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'.
|
135 | 139 | </overall_instructions>
|
136 | 140 |
|
137 | 141 | <example>
|
138 | 142 | - **PR Link:** [#3001](https://github.com/mygithuborg/myrepo/pull/3001)
|
139 |
| -- **Title:** [PR Title] |
| 143 | +- **Title:** PR Title |
140 | 144 | - **PR State:** 💬 Open
|
141 | 145 | - **Mergeable:** Mergeable
|
142 |
| -- **Summary:** [Summary of the PR]. |
143 |
| -- **Comments:** [Summary of the PR comments]. |
| 146 | +- **PR Stage:** Waiting for Code Reviews |
| 147 | +- **Summary:** Summary of the PR. |
| 148 | +- **Comments:** Summary of the PR comments or No comments. |
144 | 149 |
|
145 | 150 | - **PR Link:** [#302](https://github.com/mygithuborg/thatrepo/pull/302)
|
146 |
| -- **Title:** [PR Title] |
| 151 | +- **Title:** PR Title |
147 | 152 | - **PR State:** 💬 Open
|
148 | 153 | - **Mergeable:** Mergeable
|
149 |
| -- **Summary:** [Summary of the PR]. |
150 |
| -- **Comments:** [Summary of the PR comments]. |
| 154 | +- **PR Stage:** Waiting for Author to Merge |
| 155 | +- **Summary:** Summary of the PR. |
| 156 | +- **Comments:** Summary of the PR comments or No comments. |
151 | 157 |
|
152 | 158 | - **PR Link:** [#3](https://github.com/mygithuborg/myotherrepo/pull/3)
|
153 |
| -- **Title:** [PR Title] |
| 159 | +- **Title:** PR Title |
154 | 160 | - **PR State:** 🔀 Merged
|
155 |
| -- **Summary:** [Summary of the PR]. |
156 |
| -- **Comments:** [Summary of the PR comments]. |
| 161 | +- **Summary:** Summary of the PR. |
| 162 | +- **Comments:** Summary of the PR comments or No comments. |
157 | 163 |
|
158 | 164 | - **PR Link:** [#14](https://github.com/mygithuborg/frontend/pull/14)
|
159 |
| -- **Title:** [PR Title] |
| 165 | +- **Title:** PR Title |
160 | 166 | - **PR State:** 💬 Open
|
161 | 167 | - **Mergeable:** Mergeable
|
162 |
| -- **Summary:** [Summary of the PR]. |
163 |
| -- **Comments:** [Summary of the PR comments]. |
| 168 | +- **PR Stage:** Needs Author Action |
| 169 | +- **Summary:** Summary of the PR. |
| 170 | +- **Comments:** Summary of the PR comments or No comments. |
164 | 171 |
|
165 | 172 | - **PR Link:** [#13005](https://github.com/mygithuborg/backend/pull/13005)
|
166 |
| -- **Title:** [PR Title] |
| 173 | +- **Title:** PR Title |
167 | 174 | - **PR State:** 🔀 Merged
|
168 |
| -- **Summary:** [Summary of the PR]. |
169 |
| -- **Comments:** [Summary of the PR comments]. |
| 175 | +- **Summary:** Summary of the PR. |
| 176 | +- **Comments:** Summary of the PR comments or No comments. |
170 | 177 |
|
171 | 178 | - **PR Link:** [#3006](https://github.com/mygithuborg/myrepo/pull/3006)
|
172 |
| -- **Title:** [PR Title] |
| 179 | +- **Title:** PR Title |
173 | 180 | - **PR State:** 🔀 Merged
|
174 |
| -- **Summary:** [Summary of the PR]. |
175 |
| -- **Comments:** [Summary of the PR comments]. |
| 181 | +- **Summary:** Summary of the PR. |
| 182 | +- **Comments:** Summary of the PR comments or No comments. |
176 | 183 |
|
177 | 184 | - **PR Link:** [#3007](https://github.com/mygithuborg/myrepo/pull/3007)
|
178 |
| -- **Title:** [PR Title] |
| 185 | +- **Title:** PR Title |
179 | 186 | - **PR State:** 📝 Draft
|
180 | 187 | - **Mergeable:** Not Mergeable
|
181 |
| -- **Summary:** [Summary of the PR]. |
182 |
| -- **Comments:** [Summary of the PR comments]. |
| 188 | +- **PR Stage:** Needs Author Action |
| 189 | +- **Summary:** Summary of the PR. |
| 190 | +- **Comments:** Summary of the PR comments or No comments. |
183 | 191 | </example>
|
184 | 192 | ```
|
185 | 193 |
|
|
0 commit comments