all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* getting current repo info
@ 2021-10-05  4:43 Ag Ibragimov
  2021-10-05  7:30 ` Omar Polo
  2021-10-05  8:07 ` Tassilo Horn
  0 siblings, 2 replies; 3+ messages in thread
From: Ag Ibragimov @ 2021-10-05  4:43 UTC (permalink / raw)
  To: emacs-devel


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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-05  8:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-05  4:43 getting current repo info Ag Ibragimov
2021-10-05  7:30 ` Omar Polo
2021-10-05  8:07 ` Tassilo Horn

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.