K
K
Karim2015-08-26 11:31:29
Email
Karim, 2015-08-26 11:31:29

How to get folder archive from Github to mail?

There is a repository on Github with many folders, each folder has files, files are edited and updated by someone. There is no periodicity and order in the update - files in some folders can be edited 2 times a week, another time a year - as anyone wants. I say right away that the repository is not mine, there are no write / access rights, but the repository is open for reading. The question is: if files have been edited in a certain folder, how can I get a zip archive of this folder by mail? That is, the condition for triggering is to change the files in the folder, as soon as any file in the folder is updated, you immediately need to receive the archive of the folder by mail. Is that possible?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nazar Mokrinsky, 2015-08-26
@nazarpc

Directly to the mail out of the box, no, I can’t imagine who needs it.
But you can subscribe/check the Atom feed and respond to commits, here's an example feed: https://github.com/nazar-pc/CleverStyle-CMS/commit...
When a new commit appears, just do it git pull, a simple script can be dispensed with. And the archive ... you come up with some nonsense. You can, of course, load the zipball of the entire repository, but you can’t go by folders, and there’s no point if you can load everything incrementally.
Oh, yes, you can write a script that will check the feed, download the zipball and send it by mail, but this is really idiotic.

P
Puma Thailand, 2015-08-26
@opium

make a gitpool
script through inotifi to monitor changes in the folder and then send it to the archive if it was.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question