Feature: Add support for .gitignore parsing and system file whitelisting
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Bắt đầu bằng cách lần theo luồng push scan và checkout/seed được mô tả trong issue, sau đó kiểm tra cách các tệp của repository hiện được chọn và xuất. Xác minh hành vi theo các tiêu chí chấp nhận đã liệt kê: các mẫu .gitignore lồng nhau và các phủ định loại trừ những tệp khớp, trong khi .gitignore, AGENTS.md và CLAUDE.md vẫn được giữ lại; xác nhận rằng các quy tắc cũng được duy trì sau checkout/seed.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- PHP
- Star
- 22
- Fork
- 5
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Có Dockerfile hoặc tệp Docker Compose
- Không có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Automattic/php-toolkit
-
Chore: Bump Docker demo environment PHP file upload size limit to 8MBCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Automattic/php-toolkit#89 ·
-
Feature: PushMD - Media upload & upsert support for push-only staging workflowCó thể đã có người làm @niravmehta đã nhận 64 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Automattic/php-toolkit#102 ·
-
bug: PushMD - path conflict on duplicate slug for posts in draftCó thể đã có người làm @niravmehta đã nhận 72 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
Automattic/php-toolkit#95 ·
-
Feature: Add Classic Editor & Standard HTML Support for Post Import/Export (PushMd)Có thể đã có người làm @niravmehta đã nhận 76 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Automattic/php-toolkit#91 ·
-
Feature: Support arbitrary front matter metadata, categories, tags, author, featured image and SEO fieldsCó thể đã có người làm @niravmehta đã nhận 77 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Automattic/php-toolkit#87 ·
Tất cả issue của Automattic/php-toolkit
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
scanaislop/aislop#476 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
components-web-app/api-components-bundle#403 ·
Maintainer thường phản hồi trong vòng 1 ngày