emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting current repo info


From: Ag Ibragimov
Subject: getting current repo info
Date: Mon, 04 Oct 2021 23:43:11 -0500
User-agent: mu4e 1.6.6; emacs 28.0.50

I'm trying to write a tiny helper for my own needs. It would have to fetch some
data from GitHub. But I can't figure out how to get information about
the current project.

i.e., I have opened a file that belongs to a repository hosted on GitHub, for
example, I cloned `github.com/emacs-mirror/emacs`, and I'm browsing through
the files locally. To send some data to GitHub API, I need to know:

- the owner            :: emacs-mirror
- repo name            :: emacs
- current branch-name  :: master
- path to the file     :: let's say it's lisp/calculator.el

What is the best way to get all that using magit, forge, or maybe some other 
package?

--
Thanks,
Ag



reply via email to

[Prev in Thread] Current Thread [Next in Thread]