Handle both issue template fragment indentation styles #1541
All Vouch review confidence checks passed
Residual risk 0.12 = Change Risk (0.38) × (1 − Review Confidence (0.69)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.38 · 140 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.47 · 5 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.296
Real PR Conversation Timeline
9 items
Approved
Approved these changes.
trailing newlines can be stripped too?
Would it be better if we add a dedent filter?
[[ details.strip('\n') | dedent | indent(2, first=true) if details else '' ]]
Changes Requested
Let's wait on https://github.com/conda/actions/pull/566 before merging
@kenodegard the conda/actions update is out and I've made use of it now here
Bumped conda/actions version in all repos that define a issue_template_details.yml (see search), that way we can skip this extra conditional check
TEMPLATE = Path(__file__).parent.parent / "templates/issues/bug.yml"
Approved
Approved these changes.
travishathaway
jezdez
Description
The repository updater includes
issue_template_details.ymlin the bug report form'sbody. Prettier formats this fragment as a standalone YAML list without leading indentation, so regenerating the form currently produces invalid YAML.Use the
dedentfilter from conda/actions#566 to normalize the fragment before inserting it into the form. Avoid adding indentation twice when a comment at column zero prevents dedent from removing the list's indentation.Update the shared template-files action to v26.12.1. Keep support for older updaters while repositories pick up the upgraded workflow, since an updater can copy the new workflow and render the shared template in the same run.
Supersedes conda/conda#17050 and removes the need for the temporary fragment exclusions in conda/conda-build#6284.
Thanks to @kenodegard for the dedent filter and to @travishathaway and @danyeaw for the formatter migrations.