`git bug bridge pull` fails for gitlab

Labels: area/bridge/gitlab kind/bug lifecycle/stale

Timeline

Yurii Zinets (yznts) opened

Seems like a specific issue with labels:

new issue: 7b62f91505eb4064c4207474ac8f624c5178d06b
changed title: c41234f65c6d58b5559056ca6ee514009b24f9c3a874769b5cbcb36beff3b6de
import error at id 79554243: label event creation: added label: empty
imported 1 issues and 0 identities with default bridge

Yurii Zinets (yznts) commented

Using latest master version: git-bug version: 0.7.1-dev-cd52872475

Yurii Zinets (yznts) commented

@MichaelMure
Please, could you give me some kind of intro to this? I'll try to explore that.

Michael Muré (MichaelMure) commented

Roughly what's happening is that the importer of the gitlab bridge is doing a bunch of requests to read the remote state of a gitlab ticket, and try to execute the same changes in git-bug. Included in those changes are label changes (https://github.com/MichaelMure/git-bug/blob/master/bridge/gitlab/import.go#L296-L318). Something is going wrong in there as the importer is trying to add a empty string label on a bug. The core of git-bug is validating the data and refusing to do so.

So, the big question is why is there an empty string label. Once you have figured that out, the fix should be easy-ish.

Michael Muré (MichaelMure) added label area/cli

Michael Muré (MichaelMure) removed label area/cli

Michael Muré (MichaelMure) added label kind/bug

Michael Muré (MichaelMure) added label area/bridge

Michael Muré (MichaelMure) added label Easy pick

github-actions (github-actions) commented

This bot triages untriaged issues and PRs according to the following rules:

  • After 90 days of inactivity, the lifecycle/stale label is applied
  • After 30 days of inactivity since lifecycle/stale was applied, the issue is closed

To remove the stale status, you can:

  • Remove the lifecycle/stale label
  • Comment on this issue

github-actions (github-actions) added label lifecycle/stale

sudoforge added label area/bridge/gitlab

sudoforge removed label area/bridge

github-actions (github-actions) removed label lifecycle/stale

sudoforge removed label Easy pick

github-actions (github-actions) commented

This bot triages issues in order to help the maintainers identify what needs attention, according to the following lifecycle rules:

  • After 90 days of inactivity, lifecycle/stale is applied
  • After 90 days of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied

This bot will not automatically close stale issues.

To remove the stale status, you can:

  • Remove the stale label from this issue
  • Comment on this issue
  • Close this issue
  • Offer to help out with triaging

To avoid automatic lifecycle management of this issue, add lifecycle/frozen.

github-actions (github-actions) added label lifecycle/stale

github-actions (github-actions) removed label lifecycle/idle