Skip to content

Release: Remove 8.9 change files #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 21 commits into
base: trunk
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
052b7cb
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 6, 2024
fb63c18
Update test-assistant-release-highlight-tracker.yml
nigeljamesstevenson Apr 6, 2024
31d9ac5
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 6, 2024
1b8dd24
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 7, 2024
e7015b3
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 7, 2024
1b05fb2
Update README.md
nigeljamesstevenson Apr 8, 2024
99a43d4
Merge pull request #4 from nigeljamesstevenson/nigeljamesstevenson-pa…
nigeljamesstevenson Apr 8, 2024
8a4c6a9
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 8, 2024
d7269b0
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 8, 2024
e121fa8
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 8, 2024
4b17197
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 9, 2024
92bffc7
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 9, 2024
8a6c1d8
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 9, 2024
6f91f83
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 9, 2024
201d956
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 9, 2024
a1a26d7
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 9, 2024
3d47ae6
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 9, 2024
73def13
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 9, 2024
144b295
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 9, 2024
dd85e7b
Update test-assistant-api-rest-change-tracker.yml
nigeljamesstevenson Apr 9, 2024
a6c57a6
Delete changelog files from 8.9 release
Apr 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 75 additions & 18 deletions .github/workflows/test-assistant-api-rest-change-tracker.yml
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@ jobs:
if: "${{ github.event.label.name == 'contains: rest api change' && (github.event.pull_request.state == 'open' || github.event.pull_request.merged) }}"
runs-on: ubuntu-20.04
steps:
- name: Wait 2 minutes for other labelling jobs to finish
run: sleep 2m
- name: Wait 20sec for other labelling jobs to finish
run: sleep 10
shell: bash

- name: Calculate test date
@@ -42,25 +42,75 @@ jobs:
id: get_milestone_date
run: |
#!/bin/bash

#
# Generate Array with Milestones and dates
#

MILESTONE_TITLE="${{ github.event.pull_request.milestone.title }}"
MILESTONE_DATE="Undefined"
# Function to calculate the second Tuesday of the given month and year
# as the release day is always the 2nd Tuesday
calculate_second_tuesday() {
year=$1
month=$2

first_of_month="$year-$month-01"
day_of_week=$(date -d "$first_of_month" "+%u")
offset_to_first_tuesday=$(( (9 - day_of_week) % 7 ))
first_tuesday=$(date -d "$first_of_month +$offset_to_first_tuesday days" "+%Y-%m-%d")
# Calculate the second Tuesday by adding 7 days
second_tuesday=$(date -d "$first_tuesday +7 days" "+%Y-%m-%d")

echo $second_tuesday
}

# Set the initial values for version calculation
initial_version_major=8 # Major version start
initial_version_minor=8 # Minor version start
initial_year=2024
initial_month=4 # April, for the 8.8.0 release

# Mapping of milestone titles to release dates
# Assuming the script is run in or after 2024
current_year=$(date +%Y) # Get the current year

# Calculate the number of versions to generate based on the current year
additional_versions=$(( (current_year - 2024 + 1) * 12 ))

# Versions to calculate
versions_to_calculate=$additional_versions

# Declare the associative array outside the loop
declare -A MILESTONE_DATES
MILESTONE_DATES=(
["8.0.0"]="2023-08-08"
["8.1.0"]="2023-09-12"
["8.2.0"]="2023-10-10"
["8.3.0"]="2023-11-14"
["8.4.0"]="2023-12-12"
["8.5.0"]="2024-01-09"
["8.6.0"]="2024-02-13"
["8.7.0"]="2024-03-12"
["8.8.0"]="2024-04-09"
["8.9.0"]="2024-05-14"
["9.0.0"]="2024-06-11"
)

for (( i=0; i<versions_to_calculate; i++ )); do
# Calculate year and month offset
offset_year=$(( (initial_month + i - 1) / 12 ))
current_year=$(( initial_year + offset_year ))
current_month=$(( (initial_month + i - 1) % 12 + 1 ))

# Format current month correctly
current_month_formatted=$(printf "%02d" $current_month)

# Calculate the release date
release_date=$(calculate_second_tuesday $current_year $current_month_formatted)

# Calculate the total versions from start, adjusting for starting at 8.8.0
total_versions_from_start=$(( i + initial_version_minor ))

# Adjust version major and minor calculations
version_major=$(( initial_version_major + total_versions_from_start / 10 ))
version_minor=$(( total_versions_from_start % 10 ))

# Construct version string
version="$version_major.$version_minor.0"

# Populate the associative array with version as key and release_date as value
MILESTONE_DATES["$version"]=$release_date

echo "Version $version will be released on $release_date"
done

MILESTONE_TITLE="${{ github.event.pull_request.milestone.title }}"
MILESTONE_DATE="Undefined"

# Check if the milestone title exists in our predefined list and get the date
if [[ -v "MILESTONE_DATES[${MILESTONE_TITLE}]" ]]; then
@@ -70,6 +120,13 @@ jobs:
# Export for later steps
echo "MILESTONE_DATE=${MILESTONE_DATE}" >> $GITHUB_ENV

# Print the array in the desired format for display purposes
echo "MILESTONE_DATES=("
for version in "${!MILESTONE_DATES[@]}"; do
echo " [\"$version\"]=\"${MILESTONE_DATES[$version]}\""
done
echo ")"

# Notify Slack Step
- name: Notify Slack
uses: archive/github-actions-slack@d9dae40827adf93bddf939db6552d1e392259d7d
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@ jobs:
if: "${{ github.event.label.name == 'release: highlight' && (github.event.pull_request.state == 'open' || github.event.pull_request.merged) }}"
runs-on: ubuntu-20.04
steps:
- name: Wait 2 minutes for other labelling jobs to finish
run: sleep 2m
- name: Wait 1 minutes for other labelling jobs to finish
run: sleep 1m
shell: bash

- name: Calculate test date
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WooCommerce Monorepo
# WooCommerce Monorepo Nige

![WooCommerce](https://woo.com/wp-content/themes/woo/images/logo-woocommerce@2x.png)

This file was deleted.

4 changes: 0 additions & 4 deletions plugins/woocommerce/changelog/44593-add-wp-env-6.5

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions plugins/woocommerce/changelog/45356-45341-add-intro-e2e-tests

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions plugins/woocommerce/changelog/45551-fix-43967-43960-43890

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions plugins/woocommerce/changelog/45773-add-coming-soon-page

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions plugins/woocommerce/changelog/45781-fix-query-non-public-tax

This file was deleted.

4 changes: 0 additions & 4 deletions plugins/woocommerce/changelog/45791-tweak-45790

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions plugins/woocommerce/changelog/45859-dev-attempt-vendoring

This file was deleted.

4 changes: 0 additions & 4 deletions plugins/woocommerce/changelog/45862-patch-4

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions plugins/woocommerce/changelog/45926-add-e2e-color-picker

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions plugins/woocommerce/changelog/45979-frosso-patch-1

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions plugins/woocommerce/changelog/45999-add-e2e-add-logo-cys

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions plugins/woocommerce/changelog/46053-fix-update-rc-version

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading