@@ -335,6 +335,8 @@ func parseGraphQLResponse(data []byte, urlStr, _ string) (*profile.Profile, erro
335335 Company string `json:"company"`
336336 WebsiteURL string `json:"websiteUrl"`
337337 TwitterUser string `json:"twitterUsername"`
338+ CreatedAt string `json:"createdAt"`
339+ UpdatedAt string `json:"updatedAt"`
338340 SocialAccounts struct {
339341 Nodes []struct {
340342 URL string `json:"url"`
@@ -410,6 +412,14 @@ func parseGraphQLResponse(data []byte, urlStr, _ string) (*profile.Profile, erro
410412 }
411413 }
412414
415+ // Add account timestamps
416+ if user .CreatedAt != "" {
417+ prof .CreatedAt = user .CreatedAt
418+ }
419+ if user .UpdatedAt != "" {
420+ prof .UpdatedAt = user .UpdatedAt
421+ }
422+
413423 return prof , nil
414424}
415425
@@ -450,10 +460,10 @@ func (c *Client) doAPIRequest(ctx context.Context, req *http.Request) ([]byte, e
450460 }
451461 defer func () { _ = resp .Body .Close () }() //nolint:errcheck // error ignored intentionally
452462
453- // Parse rate limit headers (GitHub uses non-canonical casing, parse errors default to 0)
454- //nolint:errcheck,canonicalheader // GitHub uses non-canonical header casing
463+ // Parse rate limit headers (parse errors default to 0)
464+ //nolint:errcheck,canonicalheader // GitHub uses non-canonical header casing, parse errors acceptable
455465 rateLimitRemain , _ := strconv .Atoi (resp .Header .Get ("X-RateLimit-Remaining" ))
456- //nolint:errcheck,canonicalheader // GitHub uses non-canonical header casing
466+ //nolint:errcheck,canonicalheader // GitHub uses non-canonical header casing, parse errors acceptable
457467 rateLimitReset , _ := strconv .ParseInt (resp .Header .Get ("X-RateLimit-Reset" ), 10 , 64 )
458468 resetTime := time .Unix (rateLimitReset , 0 )
459469
@@ -638,6 +648,8 @@ func parseJSON(data []byte, urlStr, _ string) (*profile.Profile, error) {
638648 AvatarURL string `json:"avatar_url"`
639649 HTMLURL string `json:"html_url"`
640650 Type string `json:"type"`
651+ CreatedAt string `json:"created_at"`
652+ UpdatedAt string `json:"updated_at"`
641653 }
642654
643655 if err := json .Unmarshal (data , & ghUser ); err != nil {
@@ -722,6 +734,14 @@ func parseJSON(data []byte, urlStr, _ string) (*profile.Profile, error) {
722734 prof .Fields ["type" ] = ghUser .Type
723735 }
724736
737+ // Add account timestamps
738+ if ghUser .CreatedAt != "" {
739+ prof .CreatedAt = ghUser .CreatedAt
740+ }
741+ if ghUser .UpdatedAt != "" {
742+ prof .UpdatedAt = ghUser .UpdatedAt
743+ }
744+
725745 return prof , nil
726746}
727747
0 commit comments