Skip to content

feature: Enhanced Client Awareness (v5) #6537

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

Merged
merged 17 commits into from
Jun 10, 2025
Merged
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
13 changes: 13 additions & 0 deletions scripts/release.main.kts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ println("Tag pushed.")
val bumpVersionBranchName = "release-$versionToRelease-bump-snapshot"
runCommand("git", "checkout", "-b", bumpVersionBranchName)
setCurrentVersion(nextSnapshot)
setVersionInFixtures(nextSnapshot)
runCommand("git", "commit", "-a", "-m", "version is now $nextSnapshot")
runCommand("git", "push", "origin", bumpVersionBranchName)
runCommand("gh", "pr", "create", "--base", startBranch, "--fill")
Expand Down Expand Up @@ -243,6 +244,18 @@ fun setVersionInIntelliJPlugin(version: String) {
}
}

fun setVersionInFixtures(nextSnapshot: String) {
Copy link
Member Author

Choose a reason for hiding this comment

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

🎉

for (file in File("tests/integration-tests/testFixtures").walk()) {
if (file.isDirectory || !file.name.endsWith(".json")) continue
val content = file.readText()
.replace(Regex("""\{"name":"apollo-kotlin","version":"(.+)"\}""")) {
"""{"name":"apollo-kotlin","version":"$nextSnapshot"}"""
}
file.writeText(content)
}
}


fun mergeAndWait(branchName: String) {
runCommand("gh", "pr", "merge", branchName, "--squash", "--auto", "--delete-branch")
println("Waiting for the PR to be merged...")
Expand Down
Loading