Skip to content

Add parents field to timeline events - #2566

Merged
gmlewis merged 2 commits into
google:masterfrom
lyoung-confluent:patch-1
Nov 15, 2022
Merged

gmlewis merged 2 commits into
google:masterfrom
lyoung-confluent:patch-1

Conversation

@lyoung-confluent

Copy link
Copy Markdown
Contributor

The committed events from the timeline API can have a parents field containing the parent commits:

    "parents": [
      {
        "sha": "29480ba555d614487fddba278d32d19102e86527",
        "url": "https://api.github.com/repos/google/go-github/git/commits/29480ba555d614487fddba278d32d19102e86527",
        "html_url": "https://github.com/google/go-github/commit/29480ba555d614487fddba278d32d19102e86527"
      }
    ],

This is also documented on the issue event payload: https://docs.github.com/en/developers/webhooks-and-events/events/issue-event-types#event-object-properties-7

@codecov

codecov Bot commented Nov 15, 2022

Copy link
Copy Markdown

Codecov Report

Merging #2566 (35caea3) into master (ddfa307) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2566   +/-   ##
=======================================
  Coverage   97.98%   97.98%           
=======================================
  Files         125      125           
  Lines       10875    10875           
=======================================
  Hits        10656    10656           
  Misses        150      150           
  Partials       69       69           
Impacted Files Coverage Δ
github/issues_timeline.go 100.00% <ø> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@gmlewis gmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @lyoung-confluent !
LGTM.
Merging.

@gmlewis
gmlewis merged commit 155b546 into google:master Nov 15, 2022
@lyoung-confluent
lyoung-confluent deleted the patch-1 branch November 15, 2022 15:22
jlaportebot added a commit to jlaportebot/go-github that referenced this pull request Jun 28, 2026
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.

2 participants