Commit graph

75 commits

Author SHA1 Message Date
Dean Sas
c15bb26803 Update GHE commit message template
Removed Reviewers/subscribers from the sync commit messages, they're
hangovers from phab diffs and don't mean anything in a GitHub world.
2024-08-01 15:42:46 +01:00
Dean Sas
5dd6a65edd wpcom sync: Add missing push
`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.
2024-07-31 13:20:00 +01:00
Chris Blower
c432aeb498
theme-utils: Update to use internal GitHub (#7972)
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>
2024-07-30 09:14:39 +01:00
Vicente Canales
de77f89853
Add version bump workflow (#7829) 2024-06-05 10:53:32 -04:00
Vicente Canales
419613f85f
Add a script that inserts strict type declarations (#7716)
* 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>
2024-04-15 16:57:02 -04:00
Sarah Norris
744505db10
Deploy script: Improve npm versioning step (#7694)
* Remove package-lock step from individual theme updates

* Remove silent from npm version bump
2024-03-22 10:17:48 +00:00
Vicente Canales
b4e556d286
Guard against improperly formatted dates (#7654) 2024-02-20 17:21:19 -03:00
Jason Crist
583a39960f
Added a utility to pull changes to all themes from sandbox (#7573) 2024-01-09 18:27:59 -03:00
Sarah Norris
2023556370
Add TT4 to list of default themes (#7482) 2023-11-13 12:19:31 +00:00
Matthew Reishus
20ba82f842
theme-utils: Fix for fish shell (#7398) 2023-10-31 17:03:39 -03:00
Madhu Dollu
b2ac6da1b7
set upstream to the push command (#7177) 2023-07-07 18:10:05 +05:30
Jason Crist
5893e04135
The part of the core deploy process that lands the change, deploys the theme and builds the zip was commented out. It works fine so it was probably comment for historical debugging purposes and shouldn't have been comitted. (#7075) 2023-05-15 11:36:10 -04:00
Jason Crist
ad68fc4623
fixed reference to collection of themes to build zips for (#7057) 2023-05-04 14:47:12 -04:00
Jason Crist
d1fa9cf115
Remove Videomake and all premium theme tooling (#7007) 2023-04-28 18:32:19 -04:00
Madhu Dollu
f33796852a
DotCom Automation: create GlotPress project when a theme is deployed (#6956)
* automate glotpress project creation

automate theme launch

* add version check for glotpress project
2023-04-27 13:33:00 +05:30
Madhu Dollu
02fb2fcda8
fix issue with patterns util (#6789) 2022-12-22 19:32:27 +05:30
Sarah Norris
8dce0e43f5
Add twentytwentythree to core theme lists (#6755) 2022-11-30 15:22:06 +00:00
Madhu Dollu
35789dfd93
Update sass build scripts to import from node_modules (#6371)
* fix sass build scripts

* update deployment script to preserve wpcom version suffix
2022-08-11 12:30:00 -04:00
Madhu Dollu
ad29d59214
add timeout to deployment script to kill the unresponsive process (#6324) 2022-08-09 13:41:14 -04:00
Jason Crist
5a7a951f14
Core Sync Deploy: Replace $'s in commit log (#6310)
* Replace $'s in commit log

* Removed debugging logs
2022-08-04 08:59:33 +01:00
Jason Crist
007248844c
Change split to accept space/comma (#6297) 2022-07-28 12:23:47 -04:00
Jason Crist
bfa86ffa5e
Allow multiple themes in 'deploy:theme' and 'deploy:zip' commands (#6287) 2022-07-28 12:18:36 -04:00
Jason Crist
9e4b5d7dc2
Refactor core sync utility to merge content locally before pushing to sandbox (#6292)
Co-authored-by: Madhu Dollu <madhusudhan.dollu@gmail.com>
2022-07-28 09:14:29 -04:00
Madhu Dollu
2775cea2b5
escape block attributes in patterns utility (#6281)
* extend support for escaping block attributes in patterns utility

* separate real attrs to escape differently
2022-07-27 10:00:38 +05:30
Jason Crist
d9ba2a50ef
Exclude node_modules from version bump (#6273)
* Exclude node_modules from version bump

* Update theme-utils.mjs

Co-authored-by: Madhu Dollu <madhusudhan.dollu@gmail.com>
2022-07-26 13:08:38 +05:30
Jason Crist
edf4995174
Remove variations from build step (#6271)
* Remove variations from build step
* Added 'styles' (variations) to variation exclude list
2022-07-21 16:37:44 -04:00
Madhu Dollu
f9eb831925
update version bump script to consider level 3 (#6254) 2022-07-18 17:17:55 -04:00
Madhu Dollu
51a1181e59
Utility to update patterns with escaped strings and image paths (#5985)
* 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 &nbsp;
2022-06-16 11:55:35 +05:30
Mark Biek
bb8d208850
Updated theme-utils.mjs help text (#6038)
* 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.
2022-05-27 10:12:42 -04:00
Jason Crist
55574f0ec4
Added a command to push an individual theme to sandbox (#5958) 2022-04-28 12:23:19 -04:00
Jason Crist
3a68b8391e
Better handle updating a theme with no readme.txt file (#5941) 2022-04-26 12:21:47 -04:00
Jason Crist
4a8b9900d6
Add a changelog generator and various changelogs (#5903)
Co-authored-by: mikachan <sarah@sekai.co.uk>
2022-04-21 10:23:35 -04:00
Sarah Norris
813267c2fa
Tools: automatically handle changelog updates (#5889) 2022-04-20 14:28:17 -04:00
Jason Crist
f1a7f6315a
Small tweak cleansing logs of double-quotes (#5853) 2022-04-12 11:17:31 -04:00
Jason Crist
cc56861441
Add utilities to sync core themes to wpcom (#5558) 2022-02-21 20:52:07 +00:00
Jason Crist
4f0433932a Version Bump 2022-02-02 16:37:17 -05:00
Jason Crist
320fb6c82f
Remove/svn commands (and other utility housecleaning) (#5440)
* 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
2022-02-02 09:53:54 +00:00
Jason Crist
ab7920b504
Deploy: Removed the check for uncommitted changes. (#5439) 2022-02-01 11:36:16 -05:00
Jason Crist
8fdc99d1f4 Fixed the path to arc on deploy action 2022-02-01 09:47:28 -05:00
Jason Crist
855e4a4072 Building Variations 2022-02-01 09:26:32 -05:00
Jason Crist
2c8be5f238
Fix/variation versioning (#5406)
* 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
2022-01-31 11:37:12 -05:00
Ben Dwyer
6a3bc5a4a4
Premium: Update blockbase references when we push to the premium repo (#5396)
* 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>
2022-01-26 16:59:51 +00:00
Jason Crist
3f1d9d10cf
Fix/deploy versioning (#5350)
* 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
2022-01-17 12:45:15 -05:00
Jason Crist
96a3c5e5cb
Adjust the sync logic to be simpler (#5326)
* Adjust the sync logic to be simpler
2022-01-14 12:26:13 -05:00
Jason Crist
ad9d522178
Reverting the mess caused renaming template folders (#5317) 2022-01-13 15:38:55 -05:00
Jason Crist
304254e9af
Remove templates improperly nested in a folder due to script error in #5105 (#5314) 2022-01-13 19:15:55 +00:00
Sarah Norris
934d15fdb6
Deploy script: remove double quotes from commit message log (#5285)
* Remove double quotes from commit message log
* Add replace to tagDeployment as well
2022-01-10 09:43:31 -05:00
Ben Dwyer
68715b8323
Deploy: Use the requirement rather than the tested version (#5235) 2021-12-20 15:18:46 +00:00
Jason Crist
c9550de50b Fixed style css commit in deploy action 2021-12-16 14:06:38 -05:00
Jason Crist
513c6ed424 Version Bump 2021-12-16 14:02:23 -05:00