Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Prev Previous commit
chore: restore create platform release and generate-rc-commits
We will treat this in a separate PR with a different objective
  • Loading branch information
alucardzom committed Jul 14, 2025
commit bd9d9e7f48d14727636f049324903efe72bcef72
27 changes: 10 additions & 17 deletions .github/scripts/create-platform-release-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ if [[ -z $NEW_VERSION_NUMBER && $PLATFORM == "mobile" ]]; then
fi




# Helper Functions
# ---------------

Expand Down Expand Up @@ -72,15 +74,12 @@ get_release_branch_name() {
return 0
fi

# Use consistent release branch naming for all platforms
echo "release/${new_version}"

# Different release branch naming for different platforms, commented in case of need it
# if [[ "$platform" == "mobile" ]]; then
# echo "release/${new_version}"
# elif [[ "$platform" == "extension" ]]; then
# echo "Version-v${new_version}"
# fi
# Different release branch naming for different platforms
if [[ "$platform" == "mobile" ]]; then
echo "release/${new_version}"
elif [[ "$platform" == "extension" ]]; then
echo "Version-v${new_version}"
fi
}

# Main Script
Expand Down Expand Up @@ -225,13 +224,7 @@ cd ../
# Commit and Push Changelog Changes
# -------------------------------
echo "Adding and committing changes.."
# Add commits.csv file if it exists
if [ -f "./commits.csv" ]; then
echo "commits.csv found, adding to git..."
git add ./commits.csv
else
echo "--> commits.csv not found, skipping..."
fi
git add ./commits.csv


if ! (git commit -am "updated changelog and generated feature test plan");
Expand Down Expand Up @@ -261,4 +254,4 @@ else
echo "Changelog PR Created"
fi

echo "Changelog PR Ready"
echo "Changelog PR Ready"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Presumably this was a mistake? Not super important though

39 changes: 0 additions & 39 deletions .github/scripts/generate-rc-commits.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -80,45 +80,6 @@ async function filterCommitsByTeam(platform, branchA, branchB) {
try {
const git = simpleGit();

// Fetch all branches from remote to ensure we have the latest references
console.log('Fetching branches from remote...');
await git.fetch('origin', ['--all']);

// Check if branches exist
console.log(`Checking if branches exist: ${branchA} and ${branchB}`);

try {
await git.revparse(['--verify', branchA]);
console.log(`✓ Branch ${branchA} exists`);
} catch (error) {
console.error(`✗ Branch ${branchA} does not exist locally`);
// Try to check if it exists remotely
try {
await git.revparse(['--verify', `origin/${branchA}`]);
console.log(`✓ Branch origin/${branchA} exists, using remote reference`);
branchA = `origin/${branchA}`;
} catch (remoteError) {
console.error(`✗ Branch ${branchA} does not exists remotely either`);
throw new Error(`Branch ${branchA} not found locally or remotely`);
}
}

try {
await git.revparse(['--verify', branchB]);
console.log(`✓ Branch ${branchB} exists`);
} catch (error) {
console.error(`✗ Branch ${branchB} does not exist locally`);
// Try to check if it exists remotely
try {
await git.revparse(['--verify', `origin/${branchB}`]);
console.log(`✓ Branch origin/${branchB} exists, using remote reference`);
branchB = `origin/${branchB}`;
} catch (remoteError) {
console.error(`✗ Branch ${branchB} does not exists remotely either`);
throw new Error(`Branch ${branchB} not found locally or remotely`);
}
}

const logOptions = {
from: branchB,
to: branchA,
Expand Down
Loading