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 — GitHub - pixelbrackets/patchbot-examples: Example patch scripts ready to use with Patchbot

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
patches
patches
 
 
README.md
README.md
 
 
composer.json
composer.json
 
 

Repository files navigation

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)

About

Example patch scripts ready to use with Patchbot

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

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.