CI: validate reviewable commit shape

Open
#97 0 comments 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
54/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
git, github-actions, python
Domain
ci-cd, devtools

Research direction

Start by inspecting the repository's CI workflow and existing checks for pull request commits. Implement a check over origin/master..HEAD that rejects non-test commits exceeding 400 lines or five files and flags regression tests committed with or after their fix. Add coverage for these cases; done means the check runs in CI and catches both commit-shape violations.

Written by the indexing model from the issue text.

Description

meta

Add a PR commit-shape check over origin/master..HEAD that rejects non-test commits over 400 lines or five files and flags a changed regression test committed with or after its fix. This recurred in last9/coder9io#176 and last9/mithai#94.


Proposed by coder9io's retro of #94: this lesson came up again. Assign it to coder9io to approve, or close it.

Dominant language
Python
Stars
20
Forks
2
Avg merge
18h 35m
Merged PRs (30d)
20

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 last9/mithai

All issues in last9/mithai

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.