• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Tatsh / wiswa-vcs / 25984604115 / 2
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 17 May 2026 07:26AM UTC
Files 6
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 May 2026 05:13AM UTC coverage: 95.21%. First build
25984604115.2

push

github

Tatsh
wiswa_vcs: adopt wiswa.typing namespace and add GitLab configure flow

Drop the in-package wiswa.vcs.typing module and import the shared
TypedDicts from the new wiswa.typing namespace package
(wiswa.typing.github.Repository, wiswa.typing.gitlab.{Badge,
BranchProtectionOverrides, ProjectApprovals, ProjectSettings,
PushRules, RemoteSettings}). github.py, sync.py,
commands/sync_gh_gl.py, gitlab.py, and tests/test_gitlab.py all
follow the new import paths. The CLI's gitlab_config table now
resolves to RemoteSettings (the umbrella container) instead of the
removed GitLabConfig alias.

Add the GitLab project configure flow used by Wiswa to provision
mirrored projects from a Settings mapping:

- wiswa/vcs/auth.py exposes GITLAB_TOKEN_ENV and get_gitlab_token,
  resolving a token from the environment first and then the system
  keyring under wiswa-gitlab:<host> (user-keyed or host-keyed).
- wiswa/vcs/configure.py adds configure_gitlab_project, which
  derives the GitLab host from settings.repository_uri, picks up the
  token via auth.get_gitlab_token, and applies project settings,
  approvals, push rules, default-branch protection, and the Wiswa
  badge set in one async pass. gitlab_merged_remote_tables pulls the
  four GitLab API tables out of a Settings mapping for callers that
  want to apply them directly.
- gitlab.py grows three helpers used by the configure flow:
  repository_uri_hostname returns the host portion of a repository
  URI, fetch_project_default_branch reads the project's default
  branch via GET /projects/:id, and patch_protected_branch issues
  PATCH /projects/:id/protected_branches/:name with a
  BranchProtectionOverrides body.

Signed-off-by: Andrew Udvare <audvare@gmail.com>

38 of 39 branches covered (97.44%)

Branch coverage included in aggregate %.

280 of 295 relevant lines covered (94.92%)

0.95 hits per line

Source Files on job 25984604115.2
  • Tree
  • List 6
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 25984604115
  • 918dd3b5 on github
  • Next Job for on master (#25984973385.1)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc