Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions .github/workflows/ko-build-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
---
name: Publish Tagged Release

on:
'on':
push:
tags:
- v*
Expand Down Expand Up @@ -89,7 +89,8 @@ jobs:

- name: Publish Chart to GHCR
id: publish-ghcr
uses: linuxfoundation/lfx-public-workflows/.github/actions/helm-chart-oci-publisher@c465d6571fa0b8be9d551d902955164ea04a00af # main
# yamllint disable-line rule:line-length
uses: linuxfoundation/lfx-public-workflows/.github/actions/helm-chart-oci-publisher@c465d6571fa0b8be9d551d902955164ea04a00af # main
with:
name: ${{ needs.publish.outputs.chart_name }}
repository: ${{ github.repository }}/chart
Expand All @@ -100,12 +101,12 @@ jobs:
registry_password: ${{ secrets.GITHUB_TOKEN }}

- name: Install Cosign
uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2
uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 # v3.9.2
with:
cosign-release: "${{ env.COSIGN_VERSION }}"

- name: Login to GitHub
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand Down
54 changes: 50 additions & 4 deletions api/project/v1/design/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,17 +222,63 @@ func ProjectRepositoryURLAttribute() {
})
}

// UserInfo is the DSL type for user information.
var UserInfo = Type("UserInfo", func() {
Description("User information including profile details.")

Attribute("name", String, "The full name of the user", func() {
Example("John Doe")
})
Attribute("email", String, "The email address of the user", func() {
Example("john.doe@example.com")
Format(FormatEmail)
})
Attribute("username", String, "The username/LFID of the user", func() {
Example("johndoe123")
})
Attribute("avatar", String, "The avatar URL of the user", func() {
Example("https://example.com/avatar.jpg")
Format(FormatURI)
})
})

// ProjectAuditorsAttribute is the DSL attribute for a project auditors.
func ProjectAuditorsAttribute() {
Attribute("auditors", ArrayOf(String), "A list of project auditors by their LFIDs (usernames)", func() {
Example([]string{"user123", "user456"})
Attribute("auditors", ArrayOf(UserInfo), "A list of project auditors with their profile information", func() {
Example([]map[string]interface{}{
{
"name": "John Doe",
"email": "john.doe@example.com",
"username": "johndoe123",
"avatar": "https://example.com/avatar1.jpg",
},
{
"name": "Jane Smith",
"email": "jane.smith@example.com",
"username": "janesmith456",
"avatar": "https://example.com/avatar2.jpg",
},
})
})
}

// ProjectWritersAttribute is the DSL attribute for a project writers.
func ProjectWritersAttribute() {
Attribute("writers", ArrayOf(String), "A list of project writers by their LFIDs (usernames)", func() {
Example([]string{"user123", "user456"})
Attribute("writers", ArrayOf(UserInfo), "A list of project writers with their profile information", func() {
Example([]map[string]interface{}{
{
"name": "Alice Johnson",
"email": "alice.johnson@example.com",
"username": "alicejohnson789",
"avatar": "https://example.com/avatar3.jpg",
},
{
"name": "Bob Wilson",
"email": "bob.wilson@example.com",
"username": "bobwilson101",
"avatar": "https://example.com/avatar4.jpg",
},
})
})
}

Expand Down
56 changes: 48 additions & 8 deletions api/project/v1/gen/http/cli/lfx_v2_project_service/cli.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/project/v1/gen/http/openapi.json

Large diffs are not rendered by default.

Loading
Loading