Aller au contenu
Tous les projets

Open source · modulane

repo-check

v1.0.1

modulane/repo-check

Check that a modulane repository still matches the reference setup in repo-template.

Récupéré depuis GitHub

Étoiles
0
Forks
0
Contributeurs
1
Téléchargements
722
npm 722
Issues ouvertes
0
Issues fermées
1
PR ouvertes
0
PR fermées
4
Licence
MIT
Mis à jour

En direct de GitHub · synchronisé

Langages

  • JavaScript100,0%

README README complet ↗

Récupéré depuis GitHub

Check that a repository still matches its reference setup, and open a pull request that brings back what has drifted.

Every modulane repository starts from the same GitHub setup in repo-template: rulesets and settings, a single CI passed check, pinned actions, the shared workflows from modulane/workflows, Dependabot and the shared labels. The reference changes first and the other repositories follow it. repo-check compares a repository with the reference and lists every difference, and as an action it keeps one pull request open with the fixes, as Dependabot does for dependencies.

A repository made from repo-template outside modulane can use it too, against modulane/repo-template or against its own reference, named with --reference or the reference input.

  • One pull request, kept up to date. It brings back what a file change can fix, is updated when the fixes change, and is closed once there is nothing left to fix.
  • Drift a pull request cannot fix fails the run. Rulesets, repository settings and security settings live on GitHub, not in the files, so a maintainer changes them.
  • Differences kept on purpose. A repository lists them, each with its reason, and repo-check leaves them alone.
  • Nothing checked out. It reads the repository and the reference through the GitHub API, and commits through it too, so GitHub signs the commit.

What it checks

Check What drifts Fixed by the pull request
rulesets The rulesets on GitHub against the reference's rulesets/*.json: their rules, required checks and bypass list. Settings GitHub adds by default are ignored, and a rule the reference does not have is a warning. No
settings The repository settings against the reference's settings.json, such as squash merges only and branches deleted after merge. No
security The security settings against the reference's security.json: Dependabot alerts and security updates, secret scanning and push protection, private vulnerability reporting, and approval for workflows from a first-time contributor's fork. A private repository skips the ones GitHub's Free plan offers to public repositories only. No
ci ci.yml runs on the reference's triggers and ends in a CI passed job that runs with if: always() and needs every other job, except the ones that only run on main. Release runs CI before releasing. A job missing from needs
pinned-actions Every action and shared workflow is pinned to a commit SHA with a # vX.Y.Z comment, at the release the reference uses. Ahead of the reference is a warning: the reference changes first. Yes, for the actions the reference uses
shared-workflows The workflows that only call modulane/workflows match the reference line for line, apart from their pins and inputs. Every other call the reference makes, such as Release notes, is there too. Yes, keeping the repository's own inputs
release release.yml names this repository instead of REPO-NAME, and .releaserc.json uses the reference's plugins, with @semantic-release/npm allowed for a package on npm. Yes, except a release limited to another repository
dependabot The github-actions update in .github/dependabot.yml matches the reference. Updates for other ecosystems are allowed. Yes, keeping the other updates
labels .github/labels.json has every reference label, with the same color and description. Labels of its own are allowed. Yes, keeping the repository's own labels
files .editorconfig, .gitattributes and CODEOWNERS match, the pull request template has every section and box of the reference, and there is a LICENSE. Yes: missing sections and boxes are added where they go

A failure (✗) is drift. A warning (!) is a difference worth a look that does not fail the run, a skip (–) is a part that could not be checked, and ~ is a difference the repository accepts. The fixes edit the files as text, so their comments and formatting stay as they are.

Rechercher sur le site

Accueil/fr
Open source/fr/projets
Projets clients/fr/clients
Compétences/fr/competences
À propos/fr/a-propos
CV/fr/cv
Contact/fr/contact
Déclaration d’accessibilité/fr/accessibilite
Comment le site est construit/fr/comment-le-site-est-construit
Politique de confidentialité/fr/confidentialite
Passer au thème clair
Read this page in English
Copier le lien de cette page