From b19e4cb1235557b621ed7913a4d44d0d4c6c902c Mon Sep 17 00:00:00 2001 From: Andrew Lee <1517745+andrewrlee@users.noreply.github.com> Date: Wed, 27 Nov 2024 09:54:41 +0000 Subject: [PATCH] Updating most recent commit (#45) --- github_discovery.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/github_discovery.py b/github_discovery.py index d9062eb..ea8ff22 100644 --- a/github_discovery.py +++ b/github_discovery.py @@ -350,6 +350,10 @@ def process_repo(**component): data.update({'description': repo.description}) data.update({'github_project_visibility': repo.visibility}) data.update({'github_repo': repo.name}) + data.update({'latest_commit': { + 'sha': default_branch.commit.sha, + 'date_time': default_branch.commit.commit.committer.date, + }}) # GitHub teams access, branch protection etc. branch_protection_restricted_teams = []