Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Feature: Add support for .gitignore parsing and system file whitelisting

Abierto
#88 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
git, php
Área
tooling

Línea de trabajo

Comienza rastreando el flujo de push scan y checkout/seed descrito en el issue; después, inspecciona cómo se seleccionan y exportan actualmente los archivos del repositorio. Verifica el comportamiento según los criterios de aceptación indicados: los patrones anidados y las negaciones de .gitignore excluyen los archivos coincidentes, mientras que .gitignore, AGENTS.md y CLAUDE.md se conservan; confirma que las reglas también sobreviven a checkout/seed.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Summary

I was trying to use Obsidian to edit Markdown files, and faced a problem to sync the Obsidian vault .obsidian.. Because it does not exist on the server. While one could use the Gutenberg Guidelines structure for brand voice and other items, it would be useful to allow people to keep other files in their checked out repos and only push what Push MD supports.

Since Push MD does not have a .gitignore, this can cause ignored build artifacts or temporary files to be scanned and pushed into WordPress - and the whole push to fail.

The proposal:

Push MD checkout repositories can contain .gitignore file. And the rules here will specifically check for file paths Push MD needs, and ignore everything else.

This can also address potential issues when people have multi remote setup - one from local to their own "staging" or "pre-approval" Git server, and from there to live WordPress site.

Features & How This Should Work
  1. .gitignore Pattern Parser:

    • Interpret root and sub-folder .gitignore files during push scan.
    • Support standard pattern syntax: wildcards (*), directory prefixes (/), comments (#), trailing slashes, and negations (!).
  2. System File Whitelist Policy:

    • System configuration files (.gitignore, AGENTS.md, CLAUDE.md) should be explicitly whitelisted so they are preserved and never ignored, even if broad rules (like .* or *.md) exist in .gitignore.
    • Support for posts, pages and other artifacts in a way that support for custom post types etc in future works too
  3. Seeder Integration:

    • Export .gitignore during checkout/seed so workspace rules remain intact.
Acceptance Criteria
  • .gitignore patterns correctly exclude matching files during push scan.
  • Negation rules (!pattern) work as expected.
  • System files (.gitignore, AGENTS.md, CLAUDE.md - and others) are explicitly whitelisted and never ignored.
Lenguaje dominante
PHP
Estrellas
22
Forks
5
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Automattic/php-toolkit

Todos los issues de Automattic/php-toolkit

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.