Skip to content

Commit

Permalink
mockapi: set the project organization when creating a subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcdawkins committed Dec 12, 2024
1 parent 8bf7272 commit 789668d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/mockapi/subscriptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ func (h *Handler) handleCreateSubscription(w http.ResponseWriter, req *http.Requ
Links: MakeHALLinks("self=/projects/" + projectID),
Repository: ProjectRepository{URL: projectID + "@git.example.com:" + projectID + ".git"},
SubscriptionID: sub.ID,
Organization: chi.URLParam(req, "id"),
}
h.store.Unlock()

Expand Down

0 comments on commit 789668d

Please sign in to comment.