You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tools/scripts/ReleaseAutomation/release_config.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -65,9 +65,9 @@ def __init__(self):
65
65
66
66
self.release_commit_message=f"Updated changelog and package version for Netcode in anticipation of v{self.package_version} release"
67
67
68
-
self.pr_branch_name=f"netcode-update-after-{self.package_version}-release-branch-creation"# Branch from which we will create PR to trigger branch with relevant changes after release branch is created
68
+
self.pr_branch_name=f"netcode-update-after-{self.package_version}-release-branch-creation"# Branch from which we will create PR to default branch with relevant changes after release branch is created
69
69
self.pr_commit_message=f"chore: Updated aspects of Netcode package in anticipation of v{self.package_version} release"
70
-
self.pr_body=f"This PR was created in sync with branching of {self.release_branch_name}. It includes changes that should land on the branch this job was triggered from which usually is {self.default_repo_branch} (please double check if the target branch is different if this was intended) to reflect the new state of the package after the v{self.package_version} release:\n" \
70
+
self.pr_body=f"This PR was created in sync with branching of {self.release_branch_name}. It includes changes that should land on the default Netcode branch ({self.default_repo_branch}) to reflect the new state of the package after the v{self.package_version} release:\n" \
71
71
f"1) Updated CHANGELOG.md by adding new [Unreleased] section template at the top and cleaning the Changelog for the current release.\n" \
72
72
f"2) Updated package version in package.json by incrementing the patch version to signify the current state of the package.\n" \
73
73
f"3) Updated package version in ValidationExceptions.json to match the new package version.\n\n" \
Creates a new branch with the specified name, performs specified action, commits the current changes and pushes it to the repo.
47
47
Note that command_to_run_on_release_branch (within the Config) should be a single command that will be executed using subprocess.run. For multiple commands consider using a Python script file.
48
-
49
-
IMPORTANT: The release branch is created from the trigger branch (the branch the job was triggered from).
50
-
This ensures the release branch is created from the branch that was validated and will be used for the PR.
51
-
Please double check if the target branch is different and if so the if this was intended.
error_messages.append(f"Condition not met: Today is not the scheduled release day. It should be weekday: {config.release_weekday}, every {config.release_week_cycle} weeks starting from {config.anchor_date}.")
101
94
102
-
# Pull latest changes from the trigger branch to ensure we're checking the latest state
103
-
# The release branch will be created from this trigger branch, and the PR will target this trigger branch
104
-
repo=get_local_repo()
105
-
trigger_branch=repo.active_branch.name
106
-
print(f"\nTrigger branch: {trigger_branch}")
107
-
print(f"Pulling latest changes from '{trigger_branch}' to verify changelog state...")
108
-
109
-
# Stash any uncommitted changes to allow pull
110
-
has_uncommitted_changes=repo.is_dirty()
111
-
ifhas_uncommitted_changes:
112
-
print("Uncommitted changes detected. Stashing before pull...")
113
-
repo.git.stash('push', '-m', 'Auto-stash before pull for release verification')
114
-
115
-
repo.git.fetch('--prune', '--prune-tags')
116
-
repo.git.pull("origin", trigger_branch)
117
-
print(f"Now on branch '{trigger_branch}' with latest changes pulled.")
118
-
119
95
ifis_changelog_empty(config.changelog_path):
120
96
error_messages.append("Condition not met: The [Unreleased] section of the changelog has no meaningful entries.")
0 commit comments