Release v1.2.0
gh-before-you-contribute v1.2.0
0 activos descargables · publicada 28/08/2026.
Ver release →Proyectos · Shell
Sincronizado desde GitHubAudit AI contribution policies and issue availability before you write code — a read-only GitHub CLI extension and Action.
2 lenguajes · MIT · actualizado 28/08/2026
Por qué existe
gh-before-you-contribute
A read-only GitHub CLI extension and GitHub Action that checks the two questions worth asking before you write a line of code for someone else's project: Does this project accept AI-assisted contributions, and on what terms? Is anyone already working on this issue?
Both checks are one command. They read evidence from GitHub instead of guessing, and they exist because getting either one wrong wastes a maintainer's afternoon. Quick start
Install the extension:
Audit a repository, optionally including an issue:
The complete report includes the policy sources, deciding phrases, linked pull requests, claims of active work, and the repository's final READY, REVIEW, or BLOCKED state. Use JSON for automation:
--strict exits with status 1 for a documented prohibition or a taken issue. Invalid input, a missing dependency, or an API failure exits with status 2. Structured evidence
Successful JSON reports use the checked-in schema/audit-v1.schema.json contract and include schemaVersion: 1. The original policy.report and issue.report strings remain present throughout the 1.x series, but automation no longer needs to parse them:
Policy evidence is source-attributed: policy.sources identifies the organisation or repository document by path and URL. policy.matches identifies the typed rule, its effect, its source, and a deciding excerpt limited to 240 characters. policy.constraints keeps rules such as NOAICREDIT separate from the stable policy verdict. policy.manualReview records a linked homepage that the read-only GitHub API audit did not fetch. For NO-DOCS, sources and matches are empty while this reason remains explicit.
Issue signals record why work is unavailable or needs review:
· Signal · Strength · Effect on the current verdict ·
· closed issue, assignment, linked open PR, explicit work claim · decisive · TAKEN · · unlinked PR text-search match · advisory · REVIEW · · another open PR by the issue author · context · printed for review; not decisive ·
Claim excerpts are limited to 180 characters. Structured output has no raw document, issue-body, or comment-body fields; it emits only the bounded matching excerpts. A short source can fit entirely inside that bound, so treat reports from private repositories as sensitive. API failures still exit with status 2 and, in JSON mode, return an error object instead of a partial audit. The underlying checks
The extension preserves two focused commands in bin/ for users who want to run only one check:
ai-policy — where the rules actually live
Projects publish their position on AI-assisted contributions in four different places, and the one people check is usually not the one that matters.
Pallets' prohibition is not in the Click repository. It is in pallets/.github, the organisation-wide defaults repo, and on the project website. Reading pallets/click/CONTRIBUTING and finding nothing tells you nothing.
So the script reads, in order: /.github — CONTRIBUTING.md, AIPOLICY.md,…
Responsabilidad
Publiqué este trabajo en el repositorio propio gh-before-you-contribute, con código, historial y documentación consultables. La responsabilidad comprobable comprende el contenido fijado en la revisión enlazada; el informe evita adjudicar trabajo que el historial no muestre.
Inventario
24 archivos y 99.881 bytes versionados. Componentes de primer nivel: .github, .gitignore, CODE_OF_CONDUCT.md, CONTRIBUTING.md, LICENSE, README.md, SECURITY.md, SUPPORT.md, action.yml, bin, gh-before-you-contribute, requirements-dev.txt, schema, tests. Documentación detectada: 6 archivos. Manifiestos: requirements-dev.txt.
Release v1.2.0
0 activos descargables · publicada 28/08/2026.
Ver release →Release v1.1.0
0 activos descargables · publicada 28/08/2026.
Ver release →Release v1.0.2
0 activos descargables · publicada 27/08/2026.
Ver release →Release v1.0.1
0 activos descargables · publicada 27/08/2026.
Ver release →Release v1.0.0
0 activos descargables · publicada 27/08/2026.
Ver release →Decisiones
Audit AI contribution policies and issue availability before you write code — a read-only GitHub CLI extension and Action.
Lenguajes: Shell, Python. Temas: ai-policy, automation, bash, code-contribution, contributing, developer-tools, gh-extension, github-action.
Rama master; MIT; última publicación 28/08/2026. 0 estrellas y 0 forks al corte del catálogo.
Evidencia
El árbol Git contó 24 archivos: 4 de fuente y 5 de prueba por nombre y extensión. Hay 1 workflows y 5 releases públicas. Revisión: ddcd35308690.
El inventario es exacto para el árbol Git completo y la clasificación publicada. σ_semántica = desconocida: nombres de archivo y extensiones no demuestran cobertura.
Modelo
M = Ap / max(Af, 1)
Ap = archivos de prueba; Af = archivos de fuente reconocidos por extensión o ejecución. Rangos: Ap,Af ≥ 0. Unidad objetivo: archivos de prueba por archivo de fuente.
Línea base observada: 5 / 4 = 1,25 archivos de prueba por archivo de fuente.
Umbral editorial fijado el 28 de agosto de 2026 para la próxima revisión: M ≥ 0,25. Esta primera medición funciona como línea base, no como victoria retroactiva.
Con fuente = 0 el denominador vale 1 y evita división por cero; con prueba = 0, M = 0. El valor calculado de nuevo con 5 y 4 produce 1,25.
Error
La API no prueba autoría línea por línea, horas de trabajo ni comportamiento en producción. TODO(dato): cobertura ejecutada, tiempo de suite y costo operativo; deben salir del CI o de telemetría publicada.
Recursos
Inventariar el repositorio cuesta O(F) tiempo y O(F) espacio para F = 24 entradas. La sincronización completa usó 92 solicitudes API para R = 22 repositorios. TODO(dato): horas humanas y costo en pesos.
Autoría
Gh before you contribute es un proyecto de Jhon Steven Alvarez Ruiz, analista de datos y desarrollador de automatización en Neiva, Colombia. El repositorio forma parte del catálogo público de github.com/SirHegel.