Skip to content

feat(contacts): add support for additional fields (urls, org, note, custom)#199

Open
phuctm97 wants to merge 1 commit intosteipete:mainfrom
phuctm97:feature/contacts-additional-fields
Open

feat(contacts): add support for additional fields (urls, org, note, custom)#199
phuctm97 wants to merge 1 commit intosteipete:mainfrom
phuctm97:feature/contacts-additional-fields

Conversation

@phuctm97
Copy link

@phuctm97 phuctm97 commented Feb 7, 2026

Summary

Adds support for additional contact fields in gog contacts create and gog contacts update commands.

New Flags

Flag Description
--org Organization/company name
--title Job title
--url URL (can be repeated for multiple URLs)
--note Note/biography
--custom Custom field as key=value (can be repeated)

Usage Examples

# Create contact with organization and URLs
gog contacts create --given "Vu" --family "Nguyen" \
  --email "vu@example.com" \
  --org "SparkNamer" --title "Co-founder" \
  --url "https://github.com/tricknguyen" \
  --url "https://linkedin.com/in/vu" \
  --note "Met at HRG batch 0"

# Add custom fields
gog contacts create --given "John" --family "Doe" \
  --custom "github=johndoe" \
  --custom "telegram=@johnd"

# Update existing contact
gog contacts update people/c123 \
  --org "New Company" \
  --url "https://newsite.com"

Changes

  • Updated ContactsCreateCmd and ContactsUpdateCmd structs with new fields
  • Updated contactsReadMask to include organizations,urls
  • Updated contactsGetReadMask to include biographies,userDefined
  • Added helper functions: primaryOrganization, primaryURL, allURLs, primaryBio, userDefinedFields
  • Updated ContactsGetCmd to display new fields

Tests

All existing tests pass.

Closes #198

Add support for the following contact fields in create/update commands:
- --org: Organization/company name
- --title: Job title
- --url: URLs (can be repeated for multiple)
- --note: Note/biography
- --custom: Custom key=value fields (can be repeated)

Also updates the read mask to include these fields in list/get output.

Closes steipete#198
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Support additional contact fields (urls, organizations, biographies, etc.)

1 participant