Change stable branch to 24.11
This commit is contained in:
@@ -9,8 +9,9 @@ from nixprstatus.output import OutputFormat
|
||||
DEFAULT_HEADERS = {
|
||||
"Accept": "application/vnd.github.text+json",
|
||||
}
|
||||
DEFAULT_BRANCHES = ["master", "nixos-unstable-small", "nixos-unstable", "nixos-24.05"]
|
||||
BACKPORT_LABEL = "backport release-24.05"
|
||||
DEFAULT_BRANCHES = ["master", "nixos-unstable-small", "nixos-unstable", "nixos-24.11"]
|
||||
STABLE_BRANCH = "nixos-24.11"
|
||||
BACKPORT_LABEL = "backport release-24.11"
|
||||
|
||||
|
||||
class PRStatus(BaseModel):
|
||||
@@ -110,7 +111,7 @@ def pr_merge_status(
|
||||
in_branch = commit_in_branch(commit_sha, branch)
|
||||
results[branch] = in_branch
|
||||
|
||||
if check_backport and has_backport_label and "nixos-24.05" in branches:
|
||||
if check_backport and has_backport_label and STABLE_BRANCH in branches:
|
||||
# Check comments for message about backport
|
||||
comment_url = f"https://api.github.com/repos/NixOS/nixpkgs/issues/{pr}/comments"
|
||||
comment_response = requests.get(comment_url, headers=DEFAULT_HEADERS)
|
||||
@@ -128,12 +129,12 @@ def pr_merge_status(
|
||||
backport_response = requests.get(backport_url, headers=DEFAULT_HEADERS)
|
||||
backport_sha = backport_response.json().get("merge_commit_sha")
|
||||
if backport_sha is None:
|
||||
results[f"nixos-24.05 (#{backport_pr})"] = False
|
||||
results[f"{STABLE_BRANCH} (#{backport_pr})"] = False
|
||||
return PRStatus(title=title, merged=True, branches=results)
|
||||
|
||||
results.pop("nixos-24.05")
|
||||
results[f"nixos-24.05 (#{backport_pr})"] = commit_in_branch(
|
||||
backport_sha, "nixos-24.05"
|
||||
results.pop(STABLE_BRANCH)
|
||||
results[f"{STABLE_BRANCH} (#{backport_pr})"] = commit_in_branch(
|
||||
backport_sha, STABLE_BRANCH
|
||||
)
|
||||
|
||||
return PRStatus(title=title, merged=True, branches=results)
|
||||
|
||||
Reference in New Issue
Block a user