
Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / tor-browser-build Commits: 1a3e3774 by Pier Angelo Vendrame at 2025-03-31T21:19:19+02:00 Bug 41420: Update the changelog script for label updates. - - - - - 1 changed file: - tools/fetch_changelogs.py Changes: ===================================== tools/fetch_changelogs.py ===================================== @@ -13,6 +13,7 @@ GITLAB = "https://gitlab.torproject.org" API_URL = f"{GITLAB}/api/v4" PROJECT_ID = 473 AUTH_HEADER = "PRIVATE-TOKEN" +MB_LABEL = "Project 131" class EntryType(enum.IntFlag): @@ -153,9 +154,9 @@ class ChangelogBuilder: return labels = "Apps::Type::ReleasePreparation" if is_mullvad: - labels += ",Sponsor 131" + labels += f",{MB_LABEL}" elif not is_mullvad and is_mullvad is not None: - labels += "¬[labels]=Sponsor 131" + labels += f"¬[labels]={MB_LABEL}" r = requests.get( f"{API_URL}/projects/{PROJECT_ID}/issues?labels={labels}&search={issue_or_version}&in=title&state=opened", headers=self.headers, @@ -192,13 +193,13 @@ class ChangelogBuilder: self._set_issue(issues[0], is_mullvad) def _set_issue(self, issue, is_mullvad): - has_s131 = "Sponsor 131" in issue["labels"] - if is_mullvad is not None and is_mullvad != has_s131: + has_mb = MB_LABEL in issue["labels"] + if is_mullvad is not None and is_mullvad != has_mb: raise ValueError( "Inconsistency detected: a browser was explicitly specified, but the issue does not have the correct labels." ) self.relprep_issue = issue["iid"] - self.is_mullvad = has_s131 + self.is_mullvad = has_mb if self.version is None: version_match = re.search(r"\b[0-9]+\.[.0-9a]+\b", issue["title"]) View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/1a... -- View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/1a... You're receiving this email because of your account on gitlab.torproject.org.
participants (1)
-
Pier Angelo Vendrame (@pierov)