Skip to content

Commit

Permalink
Merge branch 'release/G23.beans'
Browse files Browse the repository at this point in the history
  • Loading branch information
Camwyn committed Feb 10, 2023
2 parents 0c84a2c + f530cdb commit 962d10b
Show file tree
Hide file tree
Showing 57 changed files with 2,515 additions and 365 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tests-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
matrix:
suite:
# - acceptance
- ct1_integration
- functional
- integration
- restv1 --group="capacity"
Expand Down
63 changes: 50 additions & 13 deletions .github/workflows/zip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
description: 'Zip type: 0 = dev, 1 = production'
required: false
default: '0'
slack_channel:
description: 'Slack channel ID to post to'
required: false
slack_thread:
description: 'Slack thread to post to'
required: false
jobs:
zip:
runs-on: ubuntu-latest
Expand All @@ -25,18 +31,16 @@ jobs:
- name: Setup branch for consumption in subsequent steps
id: settings
run: |
echo "::set-output name=branch::${JOB_BRANCH}"
echo "branch=${JOB_BRANCH}" >> $GITHUB_OUTPUT
# -----------------------------------------------------------------------------
# Setup SSH keys and known_hosts
# ------------------------------------------------------------------------------
- name: Setup SSH keys and known_hosts
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
mkdir -p ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.GH_ACTIONS_SSH_KEY }}"
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.GH_ACTIONS_SSH_KEY }}
name: id_rsa
known_hosts: github.com
# ------------------------------------------------------------------------------
# Checkout the repo and tut
# ------------------------------------------------------------------------------
Expand All @@ -55,6 +59,14 @@ jobs:
ref: main
path: tut
fetch-depth: 1
- name: Checkout jenkins-scripts
uses: actions/checkout@v2
with:
token: ${{ secrets.GH_BOT_TOKEN }}
repository: the-events-calendar/jenkins-scripts
ref: main
path: jenkins-scripts
fetch-depth: 1
# ------------------------------------------------------------------------------
# Determine if we need to zip
# ------------------------------------------------------------------------------
Expand All @@ -74,10 +86,11 @@ jobs:
if [ "${JOB_FINAL}" == "1" ]; then
FILENAME="${ZIP_NAME}.${VERSION}.zip"
fi
echo "::set-output name=value::${FILENAME}"
echo "value=${FILENAME}" >> $GITHUB_OUTPUT
echo $FILENAME
- name: Check if zip already exists
uses: the-events-calendar/action-s3-utility@main
if: github.event.inputs.final != '1'
id: s3_zip
continue-on-error: true
env:
Expand All @@ -95,7 +108,7 @@ jobs:
if: steps.s3_zip.outcome != 'success'
id: get-composer-cache-dir
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v2
if: steps.s3_zip.outcome != 'success'
id: composer-cache
Expand Down Expand Up @@ -130,6 +143,11 @@ jobs:
working-directory: ./tut
run: |
composer install --no-dev -o --ignore-platform-reqs
- name: Install jenkins-scripts composer dependencies
working-directory: ./jenkins-scripts
run: |
composer install --no-dev -o --ignore-platform-reqs
cp script-config-sample.yml script-config.yml
# ------------------------------------------------------------------------------
# Zip
# ------------------------------------------------------------------------------
Expand All @@ -144,10 +162,13 @@ jobs:
REPO_NAME=$( echo $GITHUB_REPOSITORY | sed "s/the-events-calendar\///")
mkdir zip
if [ "${JOB_FINAL}" == "1" ]; then
$TUT_BIN package --plugin=$REPO_NAME --branch="${{ steps.settings.outputs.branch }}" --ignore-view-versions --output="./zip" --final -v
output=$($TUT_BIN package --plugin=$REPO_NAME --branch="${{ steps.settings.outputs.branch }}" --ignore-view-versions --output=./zip --final -v)
else
$TUT_BIN package --plugin=$REPO_NAME --branch="${{ steps.settings.outputs.branch }}" --ignore-view-versions --output="./zip" -v
output=$($TUT_BIN package --plugin=$REPO_NAME --branch="${{ steps.settings.outputs.branch }}" --ignore-view-versions --output=./zip -v)
fi
echo "$output"
touch ${GITHUB_WORKSPACE}/results.txt
echo "$output" > ${GITHUB_WORKSPACE}/results.txt
mv zip ${GITHUB_WORKSPACE}/zip
- uses: the-events-calendar/action-s3-utility@main
if: steps.s3_zip.outcome != 'success'
Expand All @@ -161,3 +182,19 @@ jobs:
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
COMMAND: sync
SOURCE_DIR: /github/workspace/zip
- name: Maybe prep data for Slack message
if: github.event_name == 'workflow_dispatch' && github.event.inputs.slack_channel != '' && github.event.inputs.slack_thread != '' && steps.s3_zip.outcome == 'success'
working-directory: ../
run: |
touch ${GITHUB_WORKSPACE}/results.txt
echo "Packaging results" >> ${GITHUB_WORKSPACE}/results.txt
echo "-----------------" >> ${GITHUB_WORKSPACE}/results.txt
echo "" >> ${GITHUB_WORKSPACE}/results.txt
echo "Successfully packaged:" >> ${GITHUB_WORKSPACE}/results.txt
echo "* ./zip/\"${{ steps.file_name.outputs.value }}\"" >> ${GITHUB_WORKSPACE}/results.txt
echo "" >> ${GITHUB_WORKSPACE}/results.txt
- name: Maybe notify in Slack
if: github.event_name == 'workflow_dispatch' && github.event.inputs.slack_channel != '' && github.event.inputs.slack_thread != ''
working-directory: ../
run: |
php ${GITHUB_WORKSPACE}/jenkins-scripts/mt-jenkins package:send-results --channel ${{ github.event.inputs.slack_channel }} --ts ${{ github.event.inputs.slack_thread }} --results-file "${GITHUB_WORKSPACE}/results.txt" --slack-token ${{ secrets.SLACK_TOKEN }} --build-url https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}
15 changes: 14 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
== Changelog ==

= [TBD] TBD =
= [5.5.7] TBD =

* Fix - Resolve provisional IDs properly on the event edit screen for ticket management actions. [ET-1632]
* Fix - Fixed Ticket Commerce cart cookies not getting saved. [ET-1629]
* Tweak - Updated Currency options in Tickets Commerce settings for Croatian users from Kuna (HRK) to Euro (EUR). [ET-1625]
* Tweak - Updated Attendee Registration Fields upsell notice to only display in admin dashboard. [CT-67]
* Enhancement - Added currency format options to alter currency decimal separator, thousand separator, and number of decimal places. [ET-1608]

= [5.5.6] 2023-01-16 =

* Tweak - Updated the settings description for stock handling options. [ET-1603]
* Tweak - Added the `tribe-tickets__tickets-item--shared-capacity` wrapper class for tickets having shared capacity. [ETP-841]
* Tweak - Added a dashboard notice for sites running PHP versions lower than 7.4 to alert them that the minimum version of PHP is changing to 7.4 in February 2023.
* Enhancement - Added search capabilities to the Tickets Commerce Orders report page. [ET-1259]
* Fix - Allow loading attendance page with `event_id` params that use The Events Calendar provisional IDs. [ET-1624]
* Language - 4 new strings added, 43 updated, 0 fuzzied, and 2 obsoleted

= [5.5.5] 2022-12-08 =

Expand Down
2 changes: 1 addition & 1 deletion common
Submodule common updated 36 files
+3 −0 .gitignore
+0 −0 bin/.gitkeep
+25 −1 composer.json
+625 −97 composer.lock
+196 −168 lang/tribe-common.pot
+2 −2 package-lock.json
+4 −0 package-safelist.json
+1 −1 package.json
+21 −0 readme.txt
+43 −0 src/Common/Libraries/Installer/Provider.php
+40 −0 src/Common/Libraries/Provider.php
+198 −0 src/Common/Translations_Loader.php
+16 −2 src/Tribe/Admin/Activation_Page.php
+1 −0 src/Tribe/Admin/Help_Page.php
+12 −11 src/Tribe/App_Shop.php
+28 −0 src/Tribe/Log/Service_Provider.php
+9 −2 src/Tribe/Main.php
+20 −0 src/Tribe/Plugins_API.php
+60 −26 src/Tribe/Rewrite.php
+58 −0 src/Tribe/Utils/Color.php
+2 −2 src/Tribe/Utils/Taxonomy.php
+1 −0 src/resources/images/logo/event-automator.svg
+1 −0 src/resources/images/shop/automator.svg
+5 −0 src/resources/postcss/app-shop.pcss
+1 −0 src/resources/postcss/tribe-common-admin/_fields.pcss
+2 −2 src/resources/postcss/tribe-common-admin/_main.pcss
+2 −0 tests/_bootstrap.php
+61 −1 tests/_support/Traits/With_Uopz.php
+35 −0 tests/wpunit/TEC/Common/Translations_LoaderTest.php
+2 −0 tests/wpunit/TEC/Common/__text-domain-plugin/.gitignore
+29 −0 tests/wpunit/TEC/Common/__text-domain-plugin/README.md
+ tests/wpunit/TEC/Common/__text-domain-plugin/test-text-domain-it_IT.mo
+10 −0 tests/wpunit/TEC/Common/__text-domain-plugin/test-text-domain.php
+102 −1 tests/wpunit/Tribe/Log/ProviderTest.php
+75 −0 tests/wpunit/Tribe/RewriteTest.php
+1 −1 tribe-common.php
2 changes: 1 addition & 1 deletion event-tickets.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Event Tickets
Plugin URI: https://evnt.is/1acb
Description: Event Tickets allows you to sell basic tickets and collect RSVPs from any post, page, or event.
Version: 5.5.6
Version: 5.5.7
Author: The Events Calendar
Author URI: https://evnt.is/1aor
License: GPLv2 or later
Expand Down
Loading

0 comments on commit 962d10b

Please sign in to comment.