March 2025 posted on 03.22.2025 Home Papers Essays Blog Verse Fiction Get last modified date using GitHub GraphQL API Query the first item in the history of that path and return the committedDate: query CommittedDate($name: String!, $owner: String!, $path: String!) { repository(owner: $owner, name: $name) { ref(qualifiedName: "refs/heads/master") { target { ... on Commit { history(first: 1, path: $path) { edges { node { committedDate } } } } } } } } No reactions yet
Get last modified date using GitHub GraphQL API
Query the first item in the history of that path and return the
committedDate: