Skip to content

Conversation

@PandelisZ
Copy link

This PR introduces a new API endpoint that retrieves metadata for a user's most recent 100 commits from GitHub. The new endpoint is accessible at api/github/<username>/commits/, where <username> is the GitHub username of the user whose commit data is requested.

Key changes include:

  • Added recent_commits view in apps/misc/views.py to handle the logic for fetching commits using Octokit.
  • Introduced URL routing for the new API in apps/misc/urls.py.
  • Updated the main URL configuration in conf/urls.py to include the new API routes.
  • Included octokitpy as a dependency in pyproject.toml to facilitate the interaction with the GitHub API.

This implementation ensures that users can fetch their commit history and all related metadata with a simple API call.


This pull request was co-created with Cosine Genie

Original Task: django-starter-project/ay6li3wsadij
Author: Pandelis Zembashis

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

Successfully merging this pull request may close these issues.

1 participant