How to get the last commit push time of a PR #68347
Replies: 2 comments 2 replies
-
If you're trying to get the push time of the last commit in a given pull request (PR) and you're concerned about limitations due to API constraints and the potential issue with the pushedDate being deprecated, you can use the following approach: Clone the Repository Check the Last Commit For example:
This will display information about the last commit, including the commit hash and the commit date. |
Beta Was this translation helpful? Give feedback.
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
Trying to understand how to get the push time of the last commit in a given PR.
It seems both APIs mentioned here have limitation of how much data can be retrieved (e.g. within 90days or 300 events)
From this https://github.com/orgs/community/discussions/24730 the pushedDate is deprecated and will not work if a branch is deleted after merge.
Beta Was this translation helpful? Give feedback.
All reactions