Make template setup steps harder to skip

Open
#3 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
git, github, github-actions, shell
Domain
devops, tooling

Research direction

Start with the setup instructions in README.md, the issue templates in .github/ISSUE_TEMPLATE/, and the ruleset guidance in docs/development.md. First decide which setup approach to implement, since the issue lists several options without choosing one; then check which steps it can automate and which still need a person. Done means the label setup avoids duplicate defaults and the chosen approach makes skipped setup steps visible or easier to complete.

Written by the indexing model from the issue text.

Description

type/feature
Problem to solve

Use the template in README.md lists manual setup steps for a repository made from this template. No check tells a maintainer which steps they skipped. This repository skipped the type/ label setup:

  • PR #1 opened with only the default GitHub labels. The pull-request skill could not apply the required type/ label.
  • The issue templates in .github/ISSUE_TEMPLATE/ named type/ labels that did not exist.

A maintainer can also skip branch protection, leave placeholders unchanged, or leave TEMPLATE: sections incomplete.

Proposal

Make setup steps harder to skip. Report incomplete steps or do the steps that can be automated. Identify steps that still need a person, such as filling the TEMPLATE: sections. The approach is not decided:

Option Can do Cannot do, or cost
A setup script in tools/ that a person runs once Sets up labels, the ruleset, merge settings and placeholders. It can run again safely A person must still remember to run it
A CLI package, for example npx create-commit-decision-record Creates the repository and does the setup in one command An npm package to publish and maintain. It is a second way to start next to Use this template
A workflow that runs once on the first push in a new repository and commits the result Sets up labels and placeholders without a person GITHUB_TOKEN does not have the administration permission needed to apply the ruleset
A CI job that fails while setup is incomplete Makes a skipped step visible on each PR, for example when placeholders or type/ labels are missing It does not do the setup. It must not run in this template repository
More information

#33 covers reusing GitHub's default labels in the manual setup instructions. This issue covers how to keep maintainers from skipping setup, regardless of how the manual instructions create or rename labels.

Dominant language
Shell
Stars
1
Forks
0
Avg merge
6h 59m
Merged PRs (30d)
26

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from c-w-z/commit-decision-record

All issues in c-w-z/commit-decision-record

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.