|
68 | 68 | }, |
69 | 69 | "expected": ["documentation", "enhancement"], |
70 | 70 | "reason": "Request for documentation work in another language." |
| 71 | + }, |
| 72 | + { |
| 73 | + "id": "mixed-bug-feature", |
| 74 | + "inputs": { |
| 75 | + "ISSUE_TITLE": "Search is slow and needs a better UI", |
| 76 | + "ISSUE_BODY": "The search results take 10 seconds to load (bug). Also, the results should be displayed in a grid instead of a list.", |
| 77 | + "AVAILABLE_LABELS": "bug,enhancement,question,documentation,security,duplicate,wontfix" |
| 78 | + }, |
| 79 | + "expected": ["bug", "enhancement"], |
| 80 | + "reason": "Identifies both a performance bug and a UI enhancement." |
| 81 | + }, |
| 82 | + { |
| 83 | + "id": "out-of-scope-spam", |
| 84 | + "inputs": { |
| 85 | + "ISSUE_TITLE": "GET FREE GIFT CARDS NOW!!!", |
| 86 | + "ISSUE_BODY": "Click here to win a free gift card: http://malicious-link.com", |
| 87 | + "AVAILABLE_LABELS": "bug,enhancement,question,documentation,security,duplicate,wontfix" |
| 88 | + }, |
| 89 | + "expected": [], |
| 90 | + "reason": "Spam should not be assigned any functional labels." |
| 91 | + }, |
| 92 | + { |
| 93 | + "id": "wontfix-candidate", |
| 94 | + "inputs": { |
| 95 | + "ISSUE_TITLE": "Support Windows 95", |
| 96 | + "ISSUE_BODY": "I am still using Windows 95 and I want this CLI to work on it. I know you said you only support modern OSs but please.", |
| 97 | + "AVAILABLE_LABELS": "bug,enhancement,question,documentation,security,duplicate,wontfix" |
| 98 | + }, |
| 99 | + "expected": ["wontfix"], |
| 100 | + "reason": "User acknowledges it's outside supported scope." |
| 101 | + }, |
| 102 | + { |
| 103 | + "id": "duplicate-candidate", |
| 104 | + "inputs": { |
| 105 | + "ISSUE_TITLE": "Crash on login (same as #45)", |
| 106 | + "ISSUE_BODY": "I am seeing the same crash as reported in #45. Here are my logs just in case.", |
| 107 | + "AVAILABLE_LABELS": "bug,enhancement,question,documentation,security,duplicate,wontfix" |
| 108 | + }, |
| 109 | + "expected": ["bug", "duplicate"], |
| 110 | + "reason": "Reported as a bug but also explicitly mentions it's a duplicate." |
| 111 | + }, |
| 112 | + { |
| 113 | + "id": "long-log-dump", |
| 114 | + "inputs": { |
| 115 | + "ISSUE_TITLE": "Unexpected error in production", |
| 116 | + "ISSUE_BODY": "We are seeing this error frequently. \n\n<details><summary>Logs</summary>\nError: Unexpected token\n at parse (/app/node_modules/parser/index.js:10:5)\n ... [imagine 500 lines of logs here] ...\n at main (/app/src/index.js:5:1)\n</details>", |
| 117 | + "AVAILABLE_LABELS": "bug,enhancement,question,documentation,security,duplicate,wontfix" |
| 118 | + }, |
| 119 | + "expected": ["bug"], |
| 120 | + "reason": "Extracted the core bug from a log-heavy report." |
| 121 | + }, |
| 122 | + { |
| 123 | + "id": "ambiguous-request", |
| 124 | + "inputs": { |
| 125 | + "ISSUE_TITLE": "It's not working correctly", |
| 126 | + "ISSUE_BODY": "I tried to use it and it didn't do what I expected. Please fix.", |
| 127 | + "AVAILABLE_LABELS": "bug,enhancement,question,documentation,security,duplicate,wontfix" |
| 128 | + }, |
| 129 | + "expected": ["bug"], |
| 130 | + "reason": "Vague but still reports a functional issue." |
| 131 | + }, |
| 132 | + { |
| 133 | + "id": "completely-ambiguous", |
| 134 | + "inputs": { |
| 135 | + "ISSUE_TITLE": "Help", |
| 136 | + "ISSUE_BODY": "I don't know.", |
| 137 | + "AVAILABLE_LABELS": "bug,enhancement,question,documentation,security,duplicate,wontfix" |
| 138 | + }, |
| 139 | + "expected": [], |
| 140 | + "reason": "Too ambiguous to label." |
| 141 | + }, |
| 142 | + { |
| 143 | + "id": "contradictory-title-body", |
| 144 | + "inputs": { |
| 145 | + "ISSUE_TITLE": "Bug: App crashes on click", |
| 146 | + "ISSUE_BODY": "Actually, it's not a crash, but I think the button should be blue instead of red. It would look much better.", |
| 147 | + "AVAILABLE_LABELS": "bug,enhancement,question,documentation,security,duplicate,wontfix" |
| 148 | + }, |
| 149 | + "expected": ["enhancement"], |
| 150 | + "reason": "Title says bug, but body clarifies it's a UI enhancement request." |
| 151 | + }, |
| 152 | + { |
| 153 | + "id": "multi-component-report", |
| 154 | + "inputs": { |
| 155 | + "ISSUE_TITLE": "Issues with login and search", |
| 156 | + "ISSUE_BODY": "1. The login page has a typo in the footer. 2. The search function returns 'undefined' for empty queries.", |
| 157 | + "AVAILABLE_LABELS": "bug,enhancement,question,documentation,security,duplicate,wontfix" |
| 158 | + }, |
| 159 | + "expected": ["bug"], |
| 160 | + "reason": "Reports a functional bug (search). Typo is minor and might be missed or considered part of general maintenance." |
| 161 | + }, |
| 162 | + { |
| 163 | + "id": "regression-report", |
| 164 | + "inputs": { |
| 165 | + "ISSUE_TITLE": "Feature X stopped working in v2.0", |
| 166 | + "ISSUE_BODY": "I just updated to the latest version and now Feature X doesn't do anything. It worked perfectly in v1.5.", |
| 167 | + "AVAILABLE_LABELS": "bug,enhancement,question,documentation,security,duplicate,wontfix" |
| 168 | + }, |
| 169 | + "expected": ["bug"], |
| 170 | + "reason": "Clearly identifies a regression, which is a bug." |
| 171 | + }, |
| 172 | + { |
| 173 | + "id": "renovate-update", |
| 174 | + "inputs": { |
| 175 | + "ISSUE_TITLE": "chore(deps): update dependency react to v18", |
| 176 | + "ISSUE_BODY": "This PR updates react from v17 to v18. ...", |
| 177 | + "AVAILABLE_LABELS": "bug,enhancement,question,documentation,security,duplicate,wontfix,dependencies" |
| 178 | + }, |
| 179 | + "expected": ["dependencies"], |
| 180 | + "reason": "Standard dependency update bot." |
| 181 | + }, |
| 182 | + { |
| 183 | + "id": "missing-doc-feature", |
| 184 | + "inputs": { |
| 185 | + "ISSUE_TITLE": "Cannot find how to configure timeout", |
| 186 | + "ISSUE_BODY": "I see `timeout` in the code but I can't find it in the README. How do I use it?", |
| 187 | + "AVAILABLE_LABELS": "bug,enhancement,question,documentation,security,duplicate,wontfix" |
| 188 | + }, |
| 189 | + "expected": ["documentation", "question"], |
| 190 | + "reason": "User asking a question about a missing documentation piece." |
| 191 | + }, |
| 192 | + { |
| 193 | + "id": "config-error-not-bug", |
| 194 | + "inputs": { |
| 195 | + "ISSUE_TITLE": "App fails with invalid API key", |
| 196 | + "ISSUE_BODY": "I put '123' as my API key and the app says 'Invalid Key'. This is a bug, it should work.", |
| 197 | + "AVAILABLE_LABELS": "bug,enhancement,question,documentation,security,duplicate,wontfix,invalid" |
| 198 | + }, |
| 199 | + "expected": ["invalid"], |
| 200 | + "reason": "User error/configuration issue, not a software bug." |
71 | 201 | } |
72 | 202 | ] |
0 commit comments