From 31063ecb0fd369a1bcb43212ce2474e3f54e72dc Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 11 Mar 2025 13:19:17 -0400 Subject: [PATCH 1/2] replace old example prompt --- docs/guides/custom-reports.md | 86 +++++++++++++++++++++++++++-------- 1 file changed, 66 insertions(+), 20 deletions(-) diff --git a/docs/guides/custom-reports.md b/docs/guides/custom-reports.md index ce263b9d..254d3395 100644 --- a/docs/guides/custom-reports.md +++ b/docs/guides/custom-reports.md @@ -115,26 +115,72 @@ Contained within the `` tag. Here's an example prompt that uses these data points: ```text -Generate a summary with the following format for each PR: - -## [PR Title](URL) -**Status**: {Use these symbols based on state} -- 🔀 if Merged is true -- 📝 if Draft is true -- 💬 if State is "open" -- 🔒 if State is "closed" and not merged -Add ⚠️ if Is stale is true - -**Author**: {Author name} -**Created**: {Created at} -**Labels**: {Labels joined by commas} -**Reviewers**: {Reviewers joined by commas} - -### Summary -{Summary limited to 50 words} - -### Recent Activity -{List last 3 comments with username and content} +`Use the to guide the content of the summary. Use the format shown in but do not include or refer the example's content in the final summary/report. + + +Generate a summary of each pull request in the following bullet point format: + +- PR Link: Provide a hyperlink to the pull request from the 'URL:' value +- Title: Provide the value of the 'Title:' field +- PR State: Provide the state of the PR based on the following conditions: + - If 'Merged: true' set 'PR State: 🔀 Merged' + - Else If 'Draft: true' set 'PR State: 📝 Draft' + - Else If 'State: open' or 'State: active' set 'PR State: 💬 Open' + - Else If 'State: closed' and 'Merged: false' set 'PR State: 🔒 Closed' + - Else set 'PR State: ❓ Unknown' + - If the PR is stale, add '⚠️ Stale' at the end of the PR State. +- Mergeable (if PR State if not 'Merged'): Provide the mergeable status of the PR as 'Mergeable' or 'Not Mergeable'. +- Summary: In under 50 words provide a short summary of the PR. +- Comments: In under 50 words provide a short summary of all comments found within , including each comments author username from . If there are no comments available, output 'No comments'. + + + +- **PR Link:** [#3001](https://github.com/mygithuborg/myrepo/pull/3001) +- **Title:** [PR Title] +- **PR State:** 💬 Open +- **Mergeable:** Mergeable +- **Summary:** [Summary of the PR]. +- **Comments:** [Summary of the PR comments]. + +- **PR Link:** [#302](https://github.com/mygithuborg/thatrepo/pull/302) +- **Title:** [PR Title] +- **PR State:** 💬 Open +- **Mergeable:** Mergeable +- **Summary:** [Summary of the PR]. +- **Comments:** [Summary of the PR comments]. + +- **PR Link:** [#3](https://github.com/mygithuborg/myotherrepo/pull/3) +- **Title:** [PR Title] +- **PR State:** 🔀 Merged +- **Summary:** [Summary of the PR]. +- **Comments:** [Summary of the PR comments]. + +- **PR Link:** [#14](https://github.com/mygithuborg/frontend/pull/14) +- **Title:** [PR Title] +- **PR State:** 💬 Open +- **Mergeable:** Mergeable +- **Summary:** [Summary of the PR]. +- **Comments:** [Summary of the PR comments]. + +- **PR Link:** [#13005](https://github.com/mygithuborg/backend/pull/13005) +- **Title:** [PR Title] +- **PR State:** 🔀 Merged +- **Summary:** [Summary of the PR]. +- **Comments:** [Summary of the PR comments]. + +- **PR Link:** [#3006](https://github.com/mygithuborg/myrepo/pull/3006) +- **Title:** [PR Title] +- **PR State:** 🔀 Merged +- **Summary:** [Summary of the PR]. +- **Comments:** [Summary of the PR comments]. + +- **PR Link:** [#3007](https://github.com/mygithuborg/myrepo/pull/3007) +- **Title:** [PR Title] +- **PR State:** 📝 Draft +- **Mergeable:** Not Mergeable +- **Summary:** [Summary of the PR]. +- **Comments:** [Summary of the PR comments]. + ``` ### Formatting Options From f45a9e37b2b078895b87cfc1665dbb84473ed573 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 11 Mar 2025 13:22:11 -0400 Subject: [PATCH 2/2] fix copypasta --- docs/guides/custom-reports.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/custom-reports.md b/docs/guides/custom-reports.md index 254d3395..c027fa1d 100644 --- a/docs/guides/custom-reports.md +++ b/docs/guides/custom-reports.md @@ -115,7 +115,7 @@ Contained within the `` tag. Here's an example prompt that uses these data points: ```text -`Use the to guide the content of the summary. Use the format shown in but do not include or refer the example's content in the final summary/report. +Use the to guide the content of the summary. Use the format shown in but do not include or refer the example's content in the final summary/report. Generate a summary of each pull request in the following bullet point format: