GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — patchbot-examples/README.md at main · pixelbrackets/patchbot-examples

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
65 lines (45 loc) · 2.54 KB
/

README.md

Copy path

File metadata and controls

65 lines (45 loc) · 2.54 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Patchbot Examples

Example patches for Patchbot - ready to use, customize, or learn from.

Each patch directory contains a patch script and a commit message template. Copy a patch into your own Patchbot project and adjust it to your needs.

Patches

Patch Type Description
find-and-replace Shell Generic find-and-replace across files (URLs, class names, config values)
add-editorconfig PHP Add an .editorconfig file for consistent coding styles
add-gitattributes PHP Add .gitattributes with export-ignore rules for smaller Composer packages
add-php-package Shell Add a Composer package to composer.json
update-php-cs-fixer-rules PHP Add or update a rule in .php-cs-fixer.php
replace-copyright-year Shell Replace copyright year strings across all files
rename-vendor-name Shell Rename a vendor/company name and PHP namespace
rename-file Shell Rename a file
remove-deprecated-files Shell Remove deprecated CI config files

Usage

Import

# Create a skeleton project if you don't have one yet
composer create-project pixelbrackets/patchbot-skeleton my-patches

# Import all patches
./vendor/bin/patchbot import https://github.com/pixelbrackets/patchbot-examples

# Import a single patch only by path
./vendor/bin/patchbot import https://github.com/pixelbrackets/patchbot-examples --path=patches/add-editorconfig

Customize

Each patch has configurable values at the top of the script (package names, file paths, search strings). Edit them before running the patch.

All patches are idempotent - they skip gracefully when the change was already applied.

See the Patchbot walkthrough for a guide on creating and testing patches.

Apply

# Apply a patch to a single repository
./vendor/bin/patchbot patch add-editorconfig [email protected]:user/repo.git

Read the full guides on applying patches to a selected repository or across many repositories in batch mode.

License

GNU General Public License version 2 or later

Author

Dan Kleine (@pixelbrackets)

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.