Skip to content

Commit 1be66dc

Browse files
committed
use a proper token when creating statuses
1 parent e669578 commit 1be66dc

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

buildbot_nix/buildbot_nix/gitlab_project.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def create_reload_builder(self, worker_names: list[str]) -> BuilderConfig:
144144

145145
def create_reporter(self) -> ReporterBase:
146146
return GitLabStatusPush(
147-
token=Interpolate(self.config.token),
147+
token=self.config.token,
148148
context=Interpolate("buildbot/%(prop:status_name)s"),
149149
baseURL=self.config.instance_url,
150150
generators=[
@@ -309,11 +309,3 @@ def create_project_hook(
309309
resource_access_token_events=False,
310310
),
311311
)
312-
313-
314-
if __name__ == "__main__":
315-
c = GitlabConfig(
316-
topic=None,
317-
)
318-
319-
print(refresh_projects(c, Path("deleteme-gitlab-cache")))

0 commit comments

Comments
 (0)