Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#88 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
git, php
領域
tooling

調査の方向性

まず、issue に記載されている push scan と checkout/seed のフローを追跡し、次に現在どのように repository ファイルが選択され、エクスポートされているかを調べます。列挙されている受け入れ基準に照らして動作を確認します。ネストされた .gitignore パターンと否定が一致するファイルを除外し、.gitignore、AGENTS.md、CLAUDE.md は保持されることを確認します。また、ルールが checkout/seed 後も維持されることを確認します。

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
PHP
スター
22
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Automattic/php-toolkit のほかの issue

Automattic/php-toolkit の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。