Commit 9d777f3
Add version-aware triage, label transparency, and user-triggered follow-up for Copilot agent, Fixes AB#3482361 (#2429)
## Summary
Successfully implemented all requirements and addressed all PR review
feedback:
### ✅ Review Feedback Addressed (Final)
1. **Case-insensitive PING-COPILOT trigger** - Added lowercase variant
to workflow conditional
2. **Multi-line PING-COPILOT support** - Changed regex to `[\s\S]+` to
capture multi-line requests
3. **Dynamic version fetching** - Fetch latest version from GitHub
Releases API instead of hardcoding
4. **Version detection consistency** - Use lowercase `content` variable
consistently
5. **Remove overly broad regex** - Removed fallback `/(\d+\.\d+\.\d+)/`
pattern to avoid false positives
6. **Pagination for releases** - Use `github.paginate` to fetch all
releases, not just 100
7. **Show all label explanations** - Display label explanations even for
very old versions
8. **Extract duplicate code** - Created reusable `detectMsalVersion()`
helper function
9. **Update documentation** - Use placeholders/relative dates instead of
hardcoded versions/dates
10. **Remove ALL hardcoded versions** - Replaced remaining "8.1.1"
references with dynamic `latestVersion` variable
11. **Remove duplicate instructions** - Consolidated instructions in
primary file, reference from secondary files
12. **Remove PR documentation artifacts** - Removed
copilot-features-examples.md, IMPLEMENTATION_SUMMARY.md, and
QUICK_START.md
13. **Replace NEW qualifiers with dates** - Changed "NEW:" to dated
ordered list entries (added December 2025)
### 📁 Files Changed
**Modified (1 file):**
- `.github/issue-responses/README.md` (replaced "NEW" qualifiers with
dated entries)
### 🎯 Key Improvements
- **PING-COPILOT**: Now properly case-insensitive and supports
multi-line requests
- **Version Detection**: More reliable with pagination, no false
positives
- **Dynamic Versions**: Latest version fetched at runtime via API - NO
hardcoded versions anywhere
- **Code Quality**: Removed duplication with helper function
- **Maintainability**: Zero hardcoded versions to update, single source
of truth for instructions
- **Documentation Structure**: Clear separation - detailed instructions
in `copilot-instructions.md`, templates in
`customer-communication-guidelines.md`
- **Cleaner Repository**: Removed PR documentation artifacts that don't
serve ongoing operational value
- **Better Documentation**: Uses dated entries instead of "NEW"
qualifiers for clarity and maintainability
### 🧪 Testing Recommendations
1. Test PING-COPILOT with lowercase: `ping-copilot: test`
2. Test multi-line: `PING-COPILOT: line 1\nline 2`
3. Verify dynamic version in all responses (bug reports, PING-COPILOT
follow-ups, version notes)
4. Test with very old version to see all labels explained
<!-- START COPILOT ORIGINAL PROMPT -->
<details>
<summary>Original prompt</summary>
> Update the reference instructions for the Copilot agent in the
AzureAD/microsoft-authentication-library-for-android repo to include:
>
> 1. Version-aware triage:
> - If an issue cites an MSAL version older than 1.5 years (determined
from the release page), apply a 'very-old-msal' label and primarily
respond by informing the user that support is unavailable for such
versions and advising them to upgrade.
>
> 2. Label transparency:
> - Whenever the agent applies a label (such as 'bug', 'very-old-msal',
or 'triage-issue'), the agent should always explain the reasoning for
the label choice in its response.
>
> 3. "triage-issue" label usage:
> - When an issue may require a code fix or further engineering
investigation, the agent should add a 'triage-issue' label and explain
why.
>
> 4. User-triggerable follow-up via special phrase:
> - Since direct bot mentions are not supported, add to the instructions
and add to every initial issue response: users can trigger a follow-up
Copilot analysis by commenting `PING-COPILOT: <their question/request>`
in the issue, and the agent should listen for this phrase and respond
accordingly (as supported by the app backend).
>
> 5. Ensure the response templates and documentation in
.github/copilot-instructions.md and any guidance for the handler
implementation reflect the above changes. Include usage examples where
beneficial.
</details>
<!-- START COPILOT CODING AGENT SUFFIX -->
*This pull request was created from Copilot chat.*
>
<!-- START COPILOT CODING AGENT TIPS -->
---
✨ Let Copilot coding agent [set things up for
you](https://github.com/AzureAD/microsoft-authentication-library-for-android/issues/new?title=✨+Set+up+Copilot+instructions&body=Configure%20instructions%20for%20this%20repository%20as%20documented%20in%20%5BBest%20practices%20for%20Copilot%20coding%20agent%20in%20your%20repository%5D%28https://gh.io/copilot-coding-agent-tips%29%2E%0A%0A%3COnboard%20this%20repo%3E&assignees=copilot)
— coding agent works faster and does higher quality work when set up for
your repo.
[AB#3482361](https://identitydivision.visualstudio.com/fac9d424-53d2-45c0-91b5-ef6ba7a6bf26/_workitems/edit/3482361)
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: fadidurah <88730756+fadidurah@users.noreply.github.com>1 parent a4e9fe0 commit 9d777f3
File tree
4 files changed
+669
-61
lines changed- .github
- issue-responses
- workflows
4 files changed
+669
-61
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
238 | 399 | | |
239 | 400 | | |
240 | 401 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | | - | |
40 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
48 | 59 | | |
49 | 60 | | |
50 | 61 | | |
| |||
Lines changed: 110 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
372 | 482 | | |
373 | 483 | | |
374 | 484 | | |
| |||
0 commit comments