Skip to content

Add a pull request template - #470

Merged
asmacdo merged 3 commits into
con:mainfrom
asmacdo:pr-template
Nov 30, 2026
Merged

asmacdo merged 3 commits into
con:mainfrom
asmacdo:pr-template

Conversation

@asmacdo

@asmacdo asmacdo commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

What does this PR do?

Adds .github/pull_request_template.md. It asks contributors how they use duct, which is what we most want to hear. It also asks whether the change touches the user interface, so we can pick between the patch and minor labels without digging through the diff.

The use-case question is optional. The idea comes from git-annex's bug form, which asks reporters about their experience with the tool. The interface question is a "keep the line that applies" list, not checkboxes, so it doesn't count toward GitHub's task progress. The section lists what counts as interface (CLI flags, env vars, info.json/usage.jsonl fields, ls/pp/plot output, summary format). It prefers a backwards-compatible shim over a break, and asks for a migration note if something does break. Each checklist item has a built-in "or" clause, so it can always be ticked honestly.

To preview how the template renders: https://github.com/con/duct/compare/main...asmacdo:pr-template?expand=1&template=pull_request_template.md

How do you use duct?

I wrap neuroimaging pipelines (fMRIPrep, BABS-run jobs) on SLURM with duct. I use the peak RSS and CPU it records to size --mem/--cpus across many datasets.

Does this change the user interface?

  • No: internal change, bug fix, docs, or tests only

Checklist

  • Tests cover this change and fail without it, or aren't needed because: template only, no code
  • Docs and --help match the new behavior, or behavior didn't change
  • I have read, understood, and run all of this change, including any AI-written parts
  • The PR title reads as a changelog entry (we release with auto; see CONTRIBUTING.rst)

AI tools used: Claude Code drafted the template and this description; the wording was iterated with a human in the loop.

🤖 Generated with Claude Code

Asks what the PR does, how the contributor uses duct (optional; real
use cases are what we most want to hear), whether it changes the user
interface (to guide the release label, preferring compatibility shims
over breaks), and a short checklist including AI-tool disclosure per
CONTRIBUTING.rst.

Co-Authored-By: Claude Code 2.1.332 / Claude Opus 5.5 <noreply@anthropic.com>
@asmacdo asmacdo added the semver-documentation Changes only affect the documentation label Nov 30, 2026
@asmacdo
asmacdo marked this pull request as ready for review November 30, 2026 22:32
Copilot AI balanced review requested due to automatic review settings November 30, 2026 22:32
@codecov

codecov Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.25%. Comparing base (6e59319) to head (a8c55af).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #470      +/-   ##
==========================================
- Coverage   95.19%   93.25%   -1.94%     
==========================================
  Files          15       15              
  Lines        1393     1393              
  Branches      188      188              
==========================================
- Hits         1326     1299      -27     
- Misses         44       70      +26     
- Partials       23       24       +1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The change is blocked because the pull request template’s UI classification section gives contradictory guidance (“Check all that apply”) for mutually exclusive options, which could cause inconsistent selections and needs to be corrected.

1 open issue
What changed in this PR

Adds a repository-wide pull request template to standardize contributor-provided context and UI-impact classification for easier triage and labeling.

Changes:

  • Introduces .github/pull_request_template.md with prompts for PR purpose, optional usage context, and UI-impact classification.
  • Adds a contributor checklist covering tests/docs updates, AI-assisted contribution disclosure, and changelog-friendly titles.
File Description
.github/​pull_request_template.md Adds a default pull request template that prompts for intent, optional usage context, UI-impact classification, and a submission checklist.

Review effort: Balanced
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.

Comment thread .github/pull_request_template.md Resolved
GitHub counts every checkbox in a PR description as a task, so the
multiple-choice interface question showed up as unfinished tasks.
Make it "keep the line that applies" instead, give each checklist item
an escape hatch so it can always be ticked honestly, and turn the AI
disclosure into a fill-in line at the end.

Co-Authored-By: Claude Code 2.1.332 / Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The change only introduces a standardized pull request template file with a checklist and context prompts, and the review evidence shows no outstanding issues to address.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

A "Closes #N" on its own list item makes GitHub render the issue's
title, so reviewers see what is being closed without clicking through.

Co-Authored-By: Claude Code 2.1.332 / Claude Opus 5.5 <noreply@anthropic.com>
@asmacdo
asmacdo merged commit 0cccc41 into con:main Nov 30, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-documentation Changes only affect the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants