Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of commits in the selected repository #8

Open
ivarprudnikov opened this issue Mar 7, 2021 · 0 comments
Open

List of commits in the selected repository #8

ivarprudnikov opened this issue Mar 7, 2021 · 0 comments
Assignees

Comments

@ivarprudnikov
Copy link
Member

ivarprudnikov commented Mar 7, 2021

Depends on (#3 )

List logged-in user commits in the selected repository. Use the token to query the Github REST API or Github graph API

In the shell script this is achieved by cloning the repo and running the log command https://github.com/ivarprudnikov/my_commit_history/blob/master/main.sh#L81-L84

git --git-dir=${FOLDER_NAME}/.git log --all --after=${SINCE} --author=${AUTHOR} --pretty=format:'%aD %ar, branch: %d message: %s'

which produces

Fri, 22 Feb 2019 18:56:51 +0000 3 days ago, branch:  (HEAD -> master, tag: 10.5.0, origin/master, origin/HEAD) message: #2 fix typo on homepage
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

No branches or pull requests

1 participant