mirror of
https://code.naskya.net/repos/ndqEd
synced 2025-01-11 05:06:45 +09:00
3c01f4136c
Here's how it works: - When Vervis starts, it writes a config file and it writes post-receive hooks into all the repos it manages - When a git push is accepted, git runs the post-receive hook, which is a trivial shell script that executes the actual Haskell program implementing the hook logic - The Haskell hook program generates a Push JSON object and HTTP POSTs it to Vervis running on localhost - Vervis currently responds with an error, the next step is to implement the actual publishing of ForgeFed Push activities
27 lines
737 B
Haskell
27 lines
737 B
Haskell
{- This file is part of Vervis.
|
|
-
|
|
- Written in 2019 by fr33domlover <fr33domlover@riseup.net>.
|
|
-
|
|
- ♡ Copying is an act of love. Please copy, reuse and share.
|
|
-
|
|
- The author(s) have dedicated all copyright and related and neighboring
|
|
- rights to this software to the public domain worldwide. This software is
|
|
- distributed without any warranty.
|
|
-
|
|
- You should have received a copy of the CC0 Public Domain Dedication along
|
|
- with this software. If not, see
|
|
- <http://creativecommons.org/publicdomain/zero/1.0/>.
|
|
-}
|
|
|
|
module Data.DList.Local
|
|
(
|
|
)
|
|
where
|
|
|
|
import Data.Graph.Inductive.Query.Topsort
|
|
|
|
import qualified Data.DList as D
|
|
|
|
instance ResultList D.DList where
|
|
emptyList = D.empty
|
|
appendItem = flip D.snoc
|