Repository navigation
Expand file tree
/
Copy pathforge-gogs.el
More file actions
44 lines (36 loc) · 1.81 KB
/
Copy pathforge-gogs.el
File metadata and controls
44 lines (36 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
;;; forge-gogs.el --- Gogs support -*- lexical-binding: t -*-
;; Copyright (C) 2018-2020 Jonas Bernoulli
;; Author: Jonas Bernoulli <jonas@bernoul.li>
;; Maintainer: Jonas Bernoulli <jonas@bernoul.li>
;; Forge is free software; you can redistribute it and/or modify it
;; under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;;
;; Forge is distributed in the hope that it will be useful, but WITHOUT
;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
;; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
;; License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with Forge. If not, see http://www.gnu.org/licenses.
;;; Code:
(require 'gogs)
(require 'forge)
;;; Class
(defclass forge-gogs-repository (forge-unusedapi-repository)
((issues-url-format :initform "https://%h/%o/%n/issues")
(issue-url-format :initform "https://%h/%o/%n/issues/%i")
(issue-post-url-format :initform "https://%h/%o/%n/issues/%i#issuecomment-%I")
(pullreqs-url-format :initform "https://%h/%o/%n/pulls")
(pullreq-url-format :initform "https://%h/%o/%n/pulls/%i")
(pullreq-post-url-format :initform "https://%h/%o/%n/pulls/%i#issuecomment-%I")
(commit-url-format :initform "https://%h/%o/%n/commit/%r")
(branch-url-format :initform "https://%h/%o/%n/commits/%r")
(remote-url-format :initform "https://%h/%o/%n")
(create-issue-url-format :initform "https://%h/%o/%n/issues/new")
(create-pullreq-url-format :initform "https://%h/%o/%n/pulls") ; sic
(pullreq-refspec :initform "+refs/pull/*/head:refs/pullreqs/*")))
;;; _
(provide 'forge-gogs)
;;; forge-gogs.el ends here