[PR #4733] [MERGED] added IsValidNamespace function #11574

Closed
opened 2026-04-12 23:32:36 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/4733
Author: @joshyan1
Created: 5/30/2024
Status: Merged
Merged: 5/31/2024
Merged by: @joshyan1

Base: mainHead: jyan/isvalidname


📝 Commits (3)

  • 298c996 added IsValidNamespace function
  • c365f19 directly use isvalidpart
  • 2e4da8e added tests for IsValidNamespace

📊 Changes

2 files changed (+31 additions, -0 deletions)

View changed files

📝 types/model/name.go (+4 -0)
📝 types/model/name_test.go (+27 -0)

📄 Description

added function to the package for purpose of validating new usernames on the website


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/4733 **Author:** [@joshyan1](https://github.com/joshyan1) **Created:** 5/30/2024 **Status:** ✅ Merged **Merged:** 5/31/2024 **Merged by:** [@joshyan1](https://github.com/joshyan1) **Base:** `main` ← **Head:** `jyan/isvalidname` --- ### 📝 Commits (3) - [`298c996`](https://github.com/ollama/ollama/commit/298c996e54c4d562c25c2e88e42432a68b1661b7) added IsValidNamespace function - [`c365f19`](https://github.com/ollama/ollama/commit/c365f195a88cdc5c121878e0dde40274ac71a78e) directly use isvalidpart - [`2e4da8e`](https://github.com/ollama/ollama/commit/2e4da8eec2d19d671df5f58c81dfdfa35de8679c) added tests for IsValidNamespace ### 📊 Changes **2 files changed** (+31 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `types/model/name.go` (+4 -0) 📝 `types/model/name_test.go` (+27 -0) </details> ### 📄 Description added function to the package for purpose of validating new usernames on the website --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:32:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#11574