Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
abaicus committed Dec 2, 2024
1 parent 086be86 commit 8fba135
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions event.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"ref":"18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc","node_id":"C_kwDOBBBxdNoAKDE4YzA3ZWVjYzdjNGQ3YTdkM2ExMWY0ZmIxNzc5ZGMwNDVjZjdkYmM","commit":{"author":{"name":"themeisle[bot]","email":"marius+gitbot@themeisle.com","date":"2024-10-10T08:12:54Z"},"committer":{"name":"themeisle[bot]","email":"marius+gitbot@themeisle.com","date":"2024-10-10T08:12:54Z"},"message":"chore(release): 3.2.1\n\n##### [Version 3.2.1](https://github.com/Codeinwp/hestia-pro/compare/v3.2.0...v3.2.1) (2024-10-10)\n\n- Fix welcome notice CSS layout\n- Fix about page Getting Started tab layout\n- Fix compatibility with WooCommerce booking plugin","tree":{"sha":"6342c460177dc3c80a81219e0a7a91c65a54a8f3","url":"https://api.github.com/repos/Codeinwp/hestia-pro/git/trees/6342c460177dc3c80a81219e0a7a91c65a54a8f3"},"url":"https://api.github.com/repos/Codeinwp/hestia-pro/git/commits/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc","comment_count":0,"verification":{"verified":false,"reason":"unsigned","signature":null,"payload":null}},"url":"https://api.github.com/repos/Codeinwp/hestia-pro/commits/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc","html_url":"https://github.com/Codeinwp/hestia-pro/commit/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc","comments_url":"https://api.github.com/repos/Codeinwp/hestia-pro/commits/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/comments","author":{"login":"pirate-bot","id":58979018,"node_id":"MDQ6VXNlcjU4OTc5MDE4","avatar_url":"https://avatars.githubusercontent.com/u/58979018?v=4","gravatar_id":"","url":"https://api.github.com/users/pirate-bot","html_url":"https://github.com/pirate-bot","followers_url":"https://api.github.com/users/pirate-bot/followers","following_url":"https://api.github.com/users/pirate-bot/following{/other_user}","gists_url":"https://api.github.com/users/pirate-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/pirate-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pirate-bot/subscriptions","organizations_url":"https://api.github.com/users/pirate-bot/orgs","repos_url":"https://api.github.com/users/pirate-bot/repos","events_url":"https://api.github.com/users/pirate-bot/events{/privacy}","received_events_url":"https://api.github.com/users/pirate-bot/received_events","type":"User","user_view_type":"public","site_admin":false},"committer":{"login":"pirate-bot","id":58979018,"node_id":"MDQ6VXNlcjU4OTc5MDE4","avatar_url":"https://avatars.githubusercontent.com/u/58979018?v=4","gravatar_id":"","url":"https://api.github.com/users/pirate-bot","html_url":"https://github.com/pirate-bot","followers_url":"https://api.github.com/users/pirate-bot/followers","following_url":"https://api.github.com/users/pirate-bot/following{/other_user}","gists_url":"https://api.github.com/users/pirate-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/pirate-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pirate-bot/subscriptions","organizations_url":"https://api.github.com/users/pirate-bot/orgs","repos_url":"https://api.github.com/users/pirate-bot/repos","events_url":"https://api.github.com/users/pirate-bot/events{/privacy}","received_events_url":"https://api.github.com/users/pirate-bot/received_events","type":"User","user_view_type":"public","site_admin":false},"parents":[{"sha":"bfeb876753c1edd2ab68fc13f92dbff097023b5f","url":"https://api.github.com/repos/Codeinwp/hestia-pro/commits/bfeb876753c1edd2ab68fc13f92dbff097023b5f","html_url":"https://github.com/Codeinwp/hestia-pro/commit/bfeb876753c1edd2ab68fc13f92dbff097023b5f"}],"stats":{"total":34,"additions":29,"deletions":5},"files":[{"sha":"1f1f85090e99a248dc6123b43e5956ebd6fc87a7","filename":"CHANGELOG.md","status":"modified","additions":6,"deletions":0,"changes":6,"blob_url":"https://github.com/Codeinwp/hestia-pro/blob/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/CHANGELOG.md","raw_url":"https://github.com/Codeinwp/hestia-pro/raw/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/CHANGELOG.md","contents_url":"https://api.github.com/repos/Codeinwp/hestia-pro/contents/CHANGELOG.md?ref=18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc","patch":"@@ -1,3 +1,9 @@\n+##### [Version 3.2.1](https://github.com/Codeinwp/hestia-pro/compare/v3.2.0...v3.2.1) (2024-10-10)\n+\n+- Fix welcome notice CSS layout\n+- Fix about page Getting Started tab layout\n+- Fix compatibility with WooCommerce booking plugin\n+\n #### [Version 3.2.0](https://github.com/Codeinwp/hestia-pro/compare/v3.1.10...v3.2.0) (2024-10-09)\n \n - Added 3 new starter sites and removed legacy ones"},{"sha":"700c7248cdb3a9db7238bb7f65d3e0cf7bcf9a87","filename":"assets/sass/lite-style.scss","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/Codeinwp/hestia-pro/blob/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/assets%2Fsass%2Flite-style.scss","raw_url":"https://github.com/Codeinwp/hestia-pro/raw/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/assets%2Fsass%2Flite-style.scss","contents_url":"https://api.github.com/repos/Codeinwp/hestia-pro/contents/assets%2Fsass%2Flite-style.scss?ref=18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc","patch":"@@ -6,7 +6,7 @@ Author URI: https://themeisle.com\n Tested up to: 5.8.2\n Requires PHP: 5.4.0\n Description: Hestia Pro is a modern WordPress theme for professionals. It fits creative business, small businesses (restaurants, wedding planners, sport/medical shops), startups, corporate businesses, online agencies and firms, portfolios, ecommerce (WooCommerce), and freelancers. It has a multipurpose one-page design, widgetized footer, blog/news page and a clean look, is compatible with: Flat Parallax Slider, Photo Gallery, Travel Map and Elementor Page Builder . The theme is responsive, WPML, Retina ready, SEO friendly, and uses Material Kit for design.\n-Version: 3.2.0\n+Version: 3.2.1\n License: GNU General Public License v2 or later\n License URI: http://www.gnu.org/licenses/gpl-2.0.html\n Text Domain: hestia-pro"},{"sha":"aa720a41b83a6b9aad5f314ac0a3b1c1973c375a","filename":"assets/sass/style.scss","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/Codeinwp/hestia-pro/blob/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/assets%2Fsass%2Fstyle.scss","raw_url":"https://github.com/Codeinwp/hestia-pro/raw/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/assets%2Fsass%2Fstyle.scss","contents_url":"https://api.github.com/repos/Codeinwp/hestia-pro/contents/assets%2Fsass%2Fstyle.scss?ref=18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc","patch":"@@ -6,7 +6,7 @@ Author URI: https://themeisle.com\n Tested up to: 5.8.2\n Requires PHP: 5.4.0\n Description: Hestia Pro is a modern WordPress theme for professionals. It fits creative business, small businesses (restaurants, wedding planners, sport/medical shops), startups, corporate businesses, online agencies and firms, portfolios, ecommerce (WooCommerce), and freelancers. It has a multipurpose one-page design, widgetized footer, blog/news page and a clean look, is compatible with: Flat Parallax Slider, Photo Gallery, Travel Map and Elementor Page Builder . The theme is responsive, WPML, Retina ready, SEO friendly, and uses Material Kit for design.\n-Version: 3.2.0\n+Version: 3.2.1\n License: GNU General Public License v2 or later\n License URI: http://www.gnu.org/licenses/gpl-2.0.html\n Text Domain: hestia-pro"},{"sha":"31299bf6f85aa4c25b4e2efb4b5c233f28934898","filename":"functions.php","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/Codeinwp/hestia-pro/blob/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/functions.php","raw_url":"https://github.com/Codeinwp/hestia-pro/raw/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/functions.php","contents_url":"https://api.github.com/repos/Codeinwp/hestia-pro/contents/functions.php?ref=18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc","patch":"@@ -6,7 +6,7 @@\n * @since Hestia 1.0\n */\n \n-define( 'HESTIA_VERSION', '3.2.0' );\n+define( 'HESTIA_VERSION', '3.2.1' );\n define( 'HESTIA_VENDOR_VERSION', '1.0.2' );\n define( 'HESTIA_PHP_INCLUDE', trailingslashit( get_template_directory() ) . 'inc/' );\n define( 'HESTIA_CORE_DIR', HESTIA_PHP_INCLUDE . 'core/' );"},{"sha":"1876f40da6b9f34274a8317f779e62771e1618ba","filename":"package.json","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/Codeinwp/hestia-pro/blob/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/package.json","raw_url":"https://github.com/Codeinwp/hestia-pro/raw/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/package.json","contents_url":"https://api.github.com/repos/Codeinwp/hestia-pro/contents/package.json?ref=18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc","patch":"@@ -3,7 +3,7 @@\n \"nicename\": \"Hestia Pro\",\n \"litename\": \"hestia\",\n \"companion\": \"themeisle-companion\",\n- \"version\": \"3.2.0\",\n+ \"version\": \"3.2.1\",\n \"wpVersion\": \"1.1.18\",\n \"description\": \"Hestia theme by ThemeIsle\",\n \"category\": \"themes\","},{"sha":"6011ea046c9b1fe741745d06a770e882935a4d78","filename":"readme.md","status":"modified","additions":9,"deletions":0,"changes":9,"blob_url":"https://github.com/Codeinwp/hestia-pro/blob/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/readme.md","raw_url":"https://github.com/Codeinwp/hestia-pro/raw/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/readme.md","contents_url":"https://api.github.com/repos/Codeinwp/hestia-pro/contents/readme.md?ref=18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc","patch":"@@ -18,6 +18,15 @@ Hestia is distributed under the terms of the GNU GPLv2 or later\n \n ## Changelog ##\n \n+##### [Version 3.2.1](https://github.com/Codeinwp/hestia-pro/compare/v3.2.0...v3.2.1) (2024-10-10)\n+\n+- Fix welcome notice CSS layout\n+- Fix about page Getting Started tab layout\n+- Fix compatibility with WooCommerce booking plugin\n+\n+\n+\n+\n #### [Version 3.2.0](https://github.com/Codeinwp/hestia-pro/compare/v3.1.10...v3.2.0) (2024-10-09)\n \n - Added 3 new starter sites and removed legacy ones"},{"sha":"7a98269d56246dceb36d012c70d3eb6f2906d7b2","filename":"readme.txt","status":"modified","additions":9,"deletions":0,"changes":9,"blob_url":"https://github.com/Codeinwp/hestia-pro/blob/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/readme.txt","raw_url":"https://github.com/Codeinwp/hestia-pro/raw/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/readme.txt","contents_url":"https://api.github.com/repos/Codeinwp/hestia-pro/contents/readme.txt?ref=18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc","patch":"@@ -18,6 +18,15 @@ Hestia is distributed under the terms of the GNU GPLv2 or later\n \n == Changelog ==\n \n+##### [Version 3.2.1](https://github.com/Codeinwp/hestia-pro/compare/v3.2.0...v3.2.1) (2024-10-10)\n+\n+- Fix welcome notice CSS layout\n+- Fix about page Getting Started tab layout\n+- Fix compatibility with WooCommerce booking plugin\n+\n+\n+\n+\n #### [Version 3.2.0](https://github.com/Codeinwp/hestia-pro/compare/v3.1.10...v3.2.0) (2024-10-09)\n \n - Added 3 new starter sites and removed legacy ones"},{"sha":"36798bfdff5085613d8c55d2a176c0caa3f70fdb","filename":"style.css","status":"modified","additions":1,"deletions":1,"changes":2,"blob_url":"https://github.com/Codeinwp/hestia-pro/blob/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/style.css","raw_url":"https://github.com/Codeinwp/hestia-pro/raw/18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc/style.css","contents_url":"https://api.github.com/repos/Codeinwp/hestia-pro/contents/style.css?ref=18c07eecc7c4d7a7d3a11f4fb1779dc045cf7dbc","patch":"@@ -7,7 +7,7 @@ Author URI: https://themeisle.com\n Tested up to: 5.8.2\n Requires PHP: 5.4.0\n Description: Hestia Pro is a modern WordPress theme for professionals. It fits creative business, small businesses (restaurants, wedding planners, sport/medical shops), startups, corporate businesses, online agencies and firms, portfolios, ecommerce (WooCommerce), and freelancers. It has a multipurpose one-page design, widgetized footer, blog/news page and a clean look, is compatible with: Flat Parallax Slider, Photo Gallery, Travel Map and Elementor Page Builder . The theme is responsive, WPML, Retina ready, SEO friendly, and uses Material Kit for design.\n-Version: 3.2.0\n+Version: 3.2.1\n License: GNU General Public License v2 or later\n License URI: http://www.gnu.org/licenses/gpl-2.0.html\n Text Domain: hestia-pro"}]}
14 changes: 14 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,33 @@ Toolkit.run(async tools => {
storeUrl = new URL(storeUrl);
tools.log.debug('Starting commit verification!');
let commitMessage = tools.context.payload.head_commit.message || '';

console.log('COMMIT MESSAGE:', commitMessage);

if(ignoreNotes){
commitMessage = '';
}
if (commitMessage.length !== 0) {
tools.log.debug('No commit found!');
commitMessage = commitMessage.split(/\r?\n/);

console.log('Commit ARRAY:', commitMessage);

commitMessage.splice(0, stripedLines);
commitMessage = commitMessage.join("\n");

console.log('Commit JOINED:', commitMessage);

commitMessage = converter.makeHtml(commitMessage);

console.log('Commit HTML:', commitMessage);
}
const data = JSON.stringify({
"version": buildVersion, "id": productId, "body": escapeForJson(commitMessage), no_parsing: "yes"
});

console.log('DATA:', data);

const options = {
hostname: storeUrl.hostname,
path: '/wp-json/edd-so/v1/update_changelog/',
Expand Down

0 comments on commit 8fba135

Please sign in to comment.