Feature: Add support for .gitignore parsing and system file whitelisting
まだ誰も着手していません。
評価
調査の方向性
まず、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
-
.gitignorePattern Parser:- Interpret root and sub-folder
.gitignorefiles during push scan. - Support standard pattern syntax: wildcards (
*), directory prefixes (/), comments (#), trailing slashes, and negations (!).
- Interpret root and sub-folder
-
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
- System configuration files (
-
Seeder Integration:
- Export
.gitignoreduring checkout/seed so workspace rules remain intact.
- Export
Acceptance Criteria
-
.gitignorepatterns 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Automattic/php-toolkit のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Automattic/php-toolkit#89 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Automattic/php-toolkit#102 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 76/100
Automattic/php-toolkit#95 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Automattic/php-toolkit#91 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
Automattic/php-toolkit#87 ·
Automattic/php-toolkit の issue をすべて見る
似ている issue
-
Update the one-click "GTM4WP" Delay JS exclusion so that it also works with a custom data layer nameオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
[Feature]: Remove Kanboard Discourse forum link from README.md and CONTRIBUTING.md, or moderate itオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
bug Localization
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
solana-foundation/pay-kit#341 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
cline/cline#14560 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信