From 870d45bba70c8795290bd3913bec255bbcd734c3 Mon Sep 17 00:00:00 2001 From: sudoforge Date: Wed, 11 Mar 2026 15:50:46 -0700 Subject: [PATCH] test: use work_items url for gitlab issues (#1529) Gitlab has made a breaking change in that issues are returned from their API with the new `work_items` URL schema. That is, what used to be: https://gitlab.com/:group/:project/-/issues/:id is now: https://gitlab.com/:group/:project/-/work_items/:id This caused TestGitlabImport to fail, because we are using the hardcoded URL in the test structures to match against issues fetched from the API. Change-Id: I2aad98118fe4da7c56bdf2a83412ea753e1bbd23 --- bridge/gitlab/import_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bridge/gitlab/import_test.go b/bridge/gitlab/import_test.go index 56feee4640d990e3a92a56ce16a6c62272dcb4e0..96eb10d771f223e99e233e32d8338ad2db099c9c 100644 --- a/bridge/gitlab/import_test.go +++ b/bridge/gitlab/import_test.go @@ -49,7 +49,7 @@ func TestGitlabImport(t *testing.T) { }{ { name: "simple issue", - url: "https://gitlab.com/git-bug/test/-/issues/1", + url: "https://gitlab.com/git-bug/test/-/work_items/1", bug: &bug.Snapshot{ Operations: []dag.Operation{ bug.NewCreateOp(author, 0, "simple issue", "initial comment", nil), @@ -60,7 +60,7 @@ func TestGitlabImport(t *testing.T) { }, { name: "empty issue", - url: "https://gitlab.com/git-bug/test/-/issues/2", + url: "https://gitlab.com/git-bug/test/-/work_items/2", bug: &bug.Snapshot{ Operations: []dag.Operation{ bug.NewCreateOp(author, 0, "empty issue", "", nil), @@ -69,7 +69,7 @@ func TestGitlabImport(t *testing.T) { }, { name: "complex issue", - url: "https://gitlab.com/git-bug/test/-/issues/3", + url: "https://gitlab.com/git-bug/test/-/work_items/3", bug: &bug.Snapshot{ Operations: []dag.Operation{ bug.NewCreateOp(author, 0, "complex issue", "initial comment", nil), @@ -86,7 +86,7 @@ func TestGitlabImport(t *testing.T) { }, { name: "editions", - url: "https://gitlab.com/git-bug/test/-/issues/4", + url: "https://gitlab.com/git-bug/test/-/work_items/4", bug: &bug.Snapshot{ Operations: []dag.Operation{ bug.NewCreateOp(author, 0, "editions", "initial comment edited", nil),