Repository navigation
Expand file tree
/
Copy pathforge-revnote.el
More file actions
45 lines (37 loc) · 1.5 KB
/
Copy pathforge-revnote.el
File metadata and controls
45 lines (37 loc) · 1.5 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
45
;;; forge-revnote.el --- Revnote 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 'forge)
(require 'forge-post)
(require 'forge-topic)
;;; Class
(defclass forge-revnote (forge-topic)
((closql-table :initform revnote)
(closql-primary-key :initform id)
;; (closql-order-by :initform [(desc number)])
(closql-foreign-key :initform repository)
(closql-class-prefix :initform "forge-")
(id :initarg :id)
(repository :initarg :repository)
(commit :initarg :commit)
(file :initarg :file)
(line :initarg :line)
(author :initarg :author)
(body :initarg :body)))
;;; _
(provide 'forge-revnote)
;;; forge-revnote.el ends here