`gh pr create` can't non-interactively push a branch and create a PR.
Just use a plain old `git push` before running `gh pr create --head`
which will work non-interactively if the branch is already pushed.
This changes all usage of `arc` to GitHub's `gh` utility.
---------
Co-authored-by: Miguel <miguel.san.segundo@automattic.com>
Co-authored-by: Dean Sas <dean.sas@automattic.com>
* Add a scripts that adds strict type declarations
Checks all php files in a given directory for existing strict type
declartions, and if it doesn't find one, adds it.
* add strict types on deploy
* add missing quotes
* Added npm command to trigger strict type additions and passed 'last deployed hash' to get changed themes
* fixed bash command and added error catching so errors won't stop deployment
* Add condition for debug output
---------
Co-authored-by: Jason Crist <jcrist@pbking.com>
* add theme unility to escape strings and image paths in patterns
* update esc function for attributes
* fix regex for pattern filename
* replace prefixed space character with
* Updated theme-utils.mjs help text
Running `node theme-utils.mjs` (no arguments) or `node theme-utils.mjs
help` will now show a list of available commands.
Running `node theme-utils.mjs help <command>` will show the specific
help text for that command.
* Apply wpcom JS coding standards
* Refactor command structure into a common object
This helps tidy up the code for running a command as well as the help
text.
* Removed SVN versions of deploy actions
* Removed (unused) sandbox.sh utility
* Refactored pushToSandbox() to sync in the same manner as selective (changed) syncing
* renamed zip npm target to fit the other script names. Added deploy:theme as npm script
* Removed unused sandbox-git.sh
* Adjusted variation script to keep existing version when running
* Removed unused 'template-mods' feature of variations
* Added option to git add changes while building variations
* Added the building of variations to deployment process
* Premium: Update blockbase references when we push to the premium repo
* Added sandbox:clean-premium:git/svn. Refactored the -premium change to be more targeted. Modified rsync command to also delete removed files.
* Exclude /sass files from rsyncing to premium
* Used the 'premium themes' folder as the 'ignore' folder
* Fixed a log
Co-authored-by: Jason Crist <jcrist@pbking.com>
* Adjusted timing of version bump and hash syncing to correct version bumping error in deploy process.
* Added .map to files to ignore during sandbox sync