Skip to content

Commit

Permalink
Merge pull request #3292 from Engleonardorm7/main
Browse files Browse the repository at this point in the history
Reto #17 - Python
  • Loading branch information
Roswell468 authored May 1, 2023
2 parents 00819a0 + 6190974 commit 801fa92
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Retos/Reto #17 - GIT Y GITHUB [Difícil]/python/Engleonardorm7.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from github import Github

g = Github("pon tu access token aqui...")
repo = g.get_repo("mouredev/retos-programacion-2023")

commits = repo.get_commits()[:10]

for i, commit in enumerate(commits):
sha = commit.sha[:7]
author = commit.commit.author.name
message = commit.commit.message
date = commit.commit.author.date.strftime("%d/%m/%Y %H:%M")
print(f"Commit {i+1} | {sha} | {author} | {message} | {date}")

0 comments on commit 801fa92

Please sign in to comment.