How to get contributor history and contributors in branch #60647
Answered
by
nirav-gajera
salah-elraies
asked this question in
API and Webhooks
-
Select Topic AreaQuestion BodyI'm building a website that has a feature that needs an API that gets all contributors to a branch with their data and an API that gets all branches that a contributor worked on. |
Beta Was this translation helpful? Give feedback.
Answered by
nirav-gajera
Jul 12, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Set up a Server: Choose a server-side technology stack such as Node.js with Express, Python with Flask/Django, or any other language/framework you're comfortable with. This will serve as the backend for your website.
Execute Git Commands: In your server-side code, use the appropriate functions or libraries to execute the Git commands programmatically. For example, you can use child_process module in Node.js or subprocess module in Python to execute shell commands.
Capture Command Output: After executing the Git commands, capture the output from the command execution. You can capture the output as a string or parse it into structured data as per your requirements. Make sure to handle…