1

I'm pretty new to the Ruby world and I'm working on a legacy ruby script that uses Octokit to which I need to add the support for running "git blame" command on a bunch of files to figure out the developers involved in causing conflicts.

I went through the documentation of Octokit - https://octokit.github.io/octokit.rb/Octokit/Client/Labels.html - but I can't seem to find a way to run git blame using Octokit. Can someone please provide me some guidance of how I should go about this? Thank you.

Enigma40
  • 11
  • 3
  • 1
    Do you really need to use Octokit for this? Ruby lets you execute arbitrary shell commands using backticks. – max pleaner Jan 07 '21 at 16:44
  • Octokit doesn't seem to provide blame interface. However, you might be interested in using Github GraphQL for this: https://github.community/t/retrieve-git-blame-data-using-the-github-graphql-api/149919 – borjagvo Jan 07 '21 at 20:21

0 Answers0