Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#88 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

@niravmehta đang làm issue này rồi.

Từ ngày 26/7/2026.

  • #90 của @niravmehta — đang mở

Đá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
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
git, php
Lĩnh vực
tooling

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
  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.
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

Mở trong Codespaces

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Automattic/php-toolkit

Tất cả issue của Automattic/php-toolkit

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.