You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

776 lines
23 KiB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
Squashed commit of the following: commit 0afcb843d7ffd596991c4885cab768273a6eb42c Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 17:13:29 2016 -0600 Removed Upload stats as the upload table is just a temporary table commit 7ecd73ff5535612d79d471409173ee7f1fcfa157 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:42:41 2016 -0600 Fix for CodeMirror mode commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:03:33 2016 -0600 Made tabbing in editor use spaces commit 23af384c53206a8a40e11e45bf49d7a149c4adcd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:56:46 2016 -0600 Fix for data-url commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9 Merge: 7fc8a89 991ce42 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:42:53 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit 7fc8a89cb495478225b02d613e647f99a1489634 Merge: fd3d86c c03d040 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:40:00 2016 -0600 Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:39:44 2016 -0600 Code cleanup commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 29 15:38:23 2016 -0600 Code cleanup commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:36:01 2016 -0600 Code cleanup and fixes commit c2895dc742f25f8412879c9fa15e18f27f42f194 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:24:04 2016 -0600 Fixes per Unknwon's requests commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef Merge: 889e9fa ad7ea88 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 17:13:43 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go modules/setting/setting.go commit 889e9faf1bd8559a4979c8f46005d488c1a234d4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:09:18 2016 -0600 Fix in gogs.js commit 47603edf223f147b114be65f3bd27bc1e88827a5 Merge: bb57912 cf85e9e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:07:36 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit bb5791255867a71c11a77b639db050ad09c597a4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:02:18 2016 -0600 Update for using CodeMirror mode addon commit d10d128c51039be19e2af9c66c63db66a9f2ec6d Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 16:12:57 2016 -0600 Update for Edit commit 34a34982025144e3225e389f7849eb6273c1d576 Merge: fa1b752 1c7dcdd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 11:52:02 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go commit fa1b752be29cd455c5184ddac2ffe80b3489763e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 15 18:35:42 2016 -0600 Feature for editing, creating, uploading and deleting files
8 years ago
Squashed commit of the following: commit 0afcb843d7ffd596991c4885cab768273a6eb42c Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 17:13:29 2016 -0600 Removed Upload stats as the upload table is just a temporary table commit 7ecd73ff5535612d79d471409173ee7f1fcfa157 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:42:41 2016 -0600 Fix for CodeMirror mode commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:03:33 2016 -0600 Made tabbing in editor use spaces commit 23af384c53206a8a40e11e45bf49d7a149c4adcd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:56:46 2016 -0600 Fix for data-url commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9 Merge: 7fc8a89 991ce42 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:42:53 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit 7fc8a89cb495478225b02d613e647f99a1489634 Merge: fd3d86c c03d040 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:40:00 2016 -0600 Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:39:44 2016 -0600 Code cleanup commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 29 15:38:23 2016 -0600 Code cleanup commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:36:01 2016 -0600 Code cleanup and fixes commit c2895dc742f25f8412879c9fa15e18f27f42f194 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:24:04 2016 -0600 Fixes per Unknwon's requests commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef Merge: 889e9fa ad7ea88 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 17:13:43 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go modules/setting/setting.go commit 889e9faf1bd8559a4979c8f46005d488c1a234d4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:09:18 2016 -0600 Fix in gogs.js commit 47603edf223f147b114be65f3bd27bc1e88827a5 Merge: bb57912 cf85e9e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:07:36 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit bb5791255867a71c11a77b639db050ad09c597a4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:02:18 2016 -0600 Update for using CodeMirror mode addon commit d10d128c51039be19e2af9c66c63db66a9f2ec6d Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 16:12:57 2016 -0600 Update for Edit commit 34a34982025144e3225e389f7849eb6273c1d576 Merge: fa1b752 1c7dcdd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 11:52:02 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go commit fa1b752be29cd455c5184ddac2ffe80b3489763e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 15 18:35:42 2016 -0600 Feature for editing, creating, uploading and deleting files
8 years ago
Squashed commit of the following: commit 0afcb843d7ffd596991c4885cab768273a6eb42c Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 17:13:29 2016 -0600 Removed Upload stats as the upload table is just a temporary table commit 7ecd73ff5535612d79d471409173ee7f1fcfa157 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:42:41 2016 -0600 Fix for CodeMirror mode commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:03:33 2016 -0600 Made tabbing in editor use spaces commit 23af384c53206a8a40e11e45bf49d7a149c4adcd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:56:46 2016 -0600 Fix for data-url commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9 Merge: 7fc8a89 991ce42 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:42:53 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit 7fc8a89cb495478225b02d613e647f99a1489634 Merge: fd3d86c c03d040 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:40:00 2016 -0600 Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:39:44 2016 -0600 Code cleanup commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 29 15:38:23 2016 -0600 Code cleanup commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:36:01 2016 -0600 Code cleanup and fixes commit c2895dc742f25f8412879c9fa15e18f27f42f194 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:24:04 2016 -0600 Fixes per Unknwon's requests commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef Merge: 889e9fa ad7ea88 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 17:13:43 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go modules/setting/setting.go commit 889e9faf1bd8559a4979c8f46005d488c1a234d4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:09:18 2016 -0600 Fix in gogs.js commit 47603edf223f147b114be65f3bd27bc1e88827a5 Merge: bb57912 cf85e9e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:07:36 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit bb5791255867a71c11a77b639db050ad09c597a4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:02:18 2016 -0600 Update for using CodeMirror mode addon commit d10d128c51039be19e2af9c66c63db66a9f2ec6d Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 16:12:57 2016 -0600 Update for Edit commit 34a34982025144e3225e389f7849eb6273c1d576 Merge: fa1b752 1c7dcdd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 11:52:02 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go commit fa1b752be29cd455c5184ddac2ffe80b3489763e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 15 18:35:42 2016 -0600 Feature for editing, creating, uploading and deleting files
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
Squashed commit of the following: commit 0afcb843d7ffd596991c4885cab768273a6eb42c Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 17:13:29 2016 -0600 Removed Upload stats as the upload table is just a temporary table commit 7ecd73ff5535612d79d471409173ee7f1fcfa157 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:42:41 2016 -0600 Fix for CodeMirror mode commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:03:33 2016 -0600 Made tabbing in editor use spaces commit 23af384c53206a8a40e11e45bf49d7a149c4adcd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:56:46 2016 -0600 Fix for data-url commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9 Merge: 7fc8a89 991ce42 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:42:53 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit 7fc8a89cb495478225b02d613e647f99a1489634 Merge: fd3d86c c03d040 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:40:00 2016 -0600 Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:39:44 2016 -0600 Code cleanup commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 29 15:38:23 2016 -0600 Code cleanup commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:36:01 2016 -0600 Code cleanup and fixes commit c2895dc742f25f8412879c9fa15e18f27f42f194 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:24:04 2016 -0600 Fixes per Unknwon's requests commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef Merge: 889e9fa ad7ea88 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 17:13:43 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go modules/setting/setting.go commit 889e9faf1bd8559a4979c8f46005d488c1a234d4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:09:18 2016 -0600 Fix in gogs.js commit 47603edf223f147b114be65f3bd27bc1e88827a5 Merge: bb57912 cf85e9e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:07:36 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit bb5791255867a71c11a77b639db050ad09c597a4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:02:18 2016 -0600 Update for using CodeMirror mode addon commit d10d128c51039be19e2af9c66c63db66a9f2ec6d Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 16:12:57 2016 -0600 Update for Edit commit 34a34982025144e3225e389f7849eb6273c1d576 Merge: fa1b752 1c7dcdd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 11:52:02 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go commit fa1b752be29cd455c5184ddac2ffe80b3489763e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 15 18:35:42 2016 -0600 Feature for editing, creating, uploading and deleting files
8 years ago
Squashed commit of the following: commit 0afcb843d7ffd596991c4885cab768273a6eb42c Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 17:13:29 2016 -0600 Removed Upload stats as the upload table is just a temporary table commit 7ecd73ff5535612d79d471409173ee7f1fcfa157 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:42:41 2016 -0600 Fix for CodeMirror mode commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:03:33 2016 -0600 Made tabbing in editor use spaces commit 23af384c53206a8a40e11e45bf49d7a149c4adcd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:56:46 2016 -0600 Fix for data-url commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9 Merge: 7fc8a89 991ce42 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:42:53 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit 7fc8a89cb495478225b02d613e647f99a1489634 Merge: fd3d86c c03d040 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:40:00 2016 -0600 Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:39:44 2016 -0600 Code cleanup commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 29 15:38:23 2016 -0600 Code cleanup commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:36:01 2016 -0600 Code cleanup and fixes commit c2895dc742f25f8412879c9fa15e18f27f42f194 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:24:04 2016 -0600 Fixes per Unknwon's requests commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef Merge: 889e9fa ad7ea88 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 17:13:43 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go modules/setting/setting.go commit 889e9faf1bd8559a4979c8f46005d488c1a234d4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:09:18 2016 -0600 Fix in gogs.js commit 47603edf223f147b114be65f3bd27bc1e88827a5 Merge: bb57912 cf85e9e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:07:36 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit bb5791255867a71c11a77b639db050ad09c597a4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:02:18 2016 -0600 Update for using CodeMirror mode addon commit d10d128c51039be19e2af9c66c63db66a9f2ec6d Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 16:12:57 2016 -0600 Update for Edit commit 34a34982025144e3225e389f7849eb6273c1d576 Merge: fa1b752 1c7dcdd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 11:52:02 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go commit fa1b752be29cd455c5184ddac2ffe80b3489763e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 15 18:35:42 2016 -0600 Feature for editing, creating, uploading and deleting files
8 years ago
Squashed commit of the following: commit 0afcb843d7ffd596991c4885cab768273a6eb42c Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 17:13:29 2016 -0600 Removed Upload stats as the upload table is just a temporary table commit 7ecd73ff5535612d79d471409173ee7f1fcfa157 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:42:41 2016 -0600 Fix for CodeMirror mode commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:03:33 2016 -0600 Made tabbing in editor use spaces commit 23af384c53206a8a40e11e45bf49d7a149c4adcd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:56:46 2016 -0600 Fix for data-url commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9 Merge: 7fc8a89 991ce42 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:42:53 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit 7fc8a89cb495478225b02d613e647f99a1489634 Merge: fd3d86c c03d040 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:40:00 2016 -0600 Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:39:44 2016 -0600 Code cleanup commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 29 15:38:23 2016 -0600 Code cleanup commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:36:01 2016 -0600 Code cleanup and fixes commit c2895dc742f25f8412879c9fa15e18f27f42f194 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:24:04 2016 -0600 Fixes per Unknwon's requests commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef Merge: 889e9fa ad7ea88 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 17:13:43 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go modules/setting/setting.go commit 889e9faf1bd8559a4979c8f46005d488c1a234d4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:09:18 2016 -0600 Fix in gogs.js commit 47603edf223f147b114be65f3bd27bc1e88827a5 Merge: bb57912 cf85e9e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:07:36 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit bb5791255867a71c11a77b639db050ad09c597a4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:02:18 2016 -0600 Update for using CodeMirror mode addon commit d10d128c51039be19e2af9c66c63db66a9f2ec6d Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 16:12:57 2016 -0600 Update for Edit commit 34a34982025144e3225e389f7849eb6273c1d576 Merge: fa1b752 1c7dcdd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 11:52:02 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go commit fa1b752be29cd455c5184ddac2ffe80b3489763e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 15 18:35:42 2016 -0600 Feature for editing, creating, uploading and deleting files
8 years ago
Squashed commit of the following: commit 0afcb843d7ffd596991c4885cab768273a6eb42c Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 17:13:29 2016 -0600 Removed Upload stats as the upload table is just a temporary table commit 7ecd73ff5535612d79d471409173ee7f1fcfa157 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:42:41 2016 -0600 Fix for CodeMirror mode commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:03:33 2016 -0600 Made tabbing in editor use spaces commit 23af384c53206a8a40e11e45bf49d7a149c4adcd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:56:46 2016 -0600 Fix for data-url commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9 Merge: 7fc8a89 991ce42 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:42:53 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit 7fc8a89cb495478225b02d613e647f99a1489634 Merge: fd3d86c c03d040 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:40:00 2016 -0600 Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:39:44 2016 -0600 Code cleanup commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 29 15:38:23 2016 -0600 Code cleanup commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:36:01 2016 -0600 Code cleanup and fixes commit c2895dc742f25f8412879c9fa15e18f27f42f194 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:24:04 2016 -0600 Fixes per Unknwon's requests commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef Merge: 889e9fa ad7ea88 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 17:13:43 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go modules/setting/setting.go commit 889e9faf1bd8559a4979c8f46005d488c1a234d4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:09:18 2016 -0600 Fix in gogs.js commit 47603edf223f147b114be65f3bd27bc1e88827a5 Merge: bb57912 cf85e9e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:07:36 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit bb5791255867a71c11a77b639db050ad09c597a4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:02:18 2016 -0600 Update for using CodeMirror mode addon commit d10d128c51039be19e2af9c66c63db66a9f2ec6d Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 16:12:57 2016 -0600 Update for Edit commit 34a34982025144e3225e389f7849eb6273c1d576 Merge: fa1b752 1c7dcdd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 11:52:02 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go commit fa1b752be29cd455c5184ddac2ffe80b3489763e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 15 18:35:42 2016 -0600 Feature for editing, creating, uploading and deleting files
8 years ago
Squashed commit of the following: commit 0afcb843d7ffd596991c4885cab768273a6eb42c Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 17:13:29 2016 -0600 Removed Upload stats as the upload table is just a temporary table commit 7ecd73ff5535612d79d471409173ee7f1fcfa157 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:42:41 2016 -0600 Fix for CodeMirror mode commit c29b9ab531e2e7af0fb5db24dc17e51027dd1174 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 08:03:33 2016 -0600 Made tabbing in editor use spaces commit 23af384c53206a8a40e11e45bf49d7a149c4adcd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:56:46 2016 -0600 Fix for data-url commit cfb8a97591cb6fc0a92e49563b7b764c524db0e9 Merge: 7fc8a89 991ce42 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:42:53 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit 7fc8a89cb495478225b02d613e647f99a1489634 Merge: fd3d86c c03d040 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:40:00 2016 -0600 Merge branch 'feature-create-and-edit-repo-file' of github.com:richmahn/gogs into feature-create-and-edit-repo-file commit fd3d86ca6bbc02cfda566a504ffd6b03db4f75ef Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Sun Jul 31 07:39:44 2016 -0600 Code cleanup commit c03d0401c1049eeeccc32ab1f9c3303c130be5ee Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 29 15:38:23 2016 -0600 Code cleanup commit 98e1206ccf9f9a4503c020e3a7830cf9f861dfae Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:36:01 2016 -0600 Code cleanup and fixes commit c2895dc742f25f8412879c9fa15e18f27f42f194 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 18:24:04 2016 -0600 Fixes per Unknwon's requests commit 6aa7e46b21ad4c96e562daa2eac26a8fb408f8ef Merge: 889e9fa ad7ea88 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Thu Jul 28 17:13:43 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go modules/setting/setting.go commit 889e9faf1bd8559a4979c8f46005d488c1a234d4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:09:18 2016 -0600 Fix in gogs.js commit 47603edf223f147b114be65f3bd27bc1e88827a5 Merge: bb57912 cf85e9e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:07:36 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go public/js/gogs.js commit bb5791255867a71c11a77b639db050ad09c597a4 Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 22 14:02:18 2016 -0600 Update for using CodeMirror mode addon commit d10d128c51039be19e2af9c66c63db66a9f2ec6d Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 16:12:57 2016 -0600 Update for Edit commit 34a34982025144e3225e389f7849eb6273c1d576 Merge: fa1b752 1c7dcdd Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Tue Jul 19 11:52:02 2016 -0600 Merge remote-tracking branch 'gogits/develop' into feature-create-and-edit-repo-file Conflicts: modules/bindata/bindata.go commit fa1b752be29cd455c5184ddac2ffe80b3489763e Author: Richard Mahn <richard_mahn@wycliffeassociates.org> Date: Fri Jul 15 18:35:42 2016 -0600 Feature for editing, creating, uploading and deleting files
8 years ago
  1. // Copyright 2015 The Gogs Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package models
  5. import (
  6. "fmt"
  7. )
  8. // ErrNameReserved represents a "reserved name" error.
  9. type ErrNameReserved struct {
  10. Name string
  11. }
  12. // IsErrNameReserved checks if an error is a ErrNameReserved.
  13. func IsErrNameReserved(err error) bool {
  14. _, ok := err.(ErrNameReserved)
  15. return ok
  16. }
  17. func (err ErrNameReserved) Error() string {
  18. return fmt.Sprintf("name is reserved [name: %s]", err.Name)
  19. }
  20. // ErrNamePatternNotAllowed represents a "pattern not allowed" error.
  21. type ErrNamePatternNotAllowed struct {
  22. Pattern string
  23. }
  24. // IsErrNamePatternNotAllowed checks if an error is an
  25. // ErrNamePatternNotAllowed.
  26. func IsErrNamePatternNotAllowed(err error) bool {
  27. _, ok := err.(ErrNamePatternNotAllowed)
  28. return ok
  29. }
  30. func (err ErrNamePatternNotAllowed) Error() string {
  31. return fmt.Sprintf("name pattern is not allowed [pattern: %s]", err.Pattern)
  32. }
  33. // ____ ___
  34. // | | \______ ___________
  35. // | | / ___// __ \_ __ \
  36. // | | /\___ \\ ___/| | \/
  37. // |______//____ >\___ >__|
  38. // \/ \/
  39. // ErrUserAlreadyExist represents a "user already exists" error.
  40. type ErrUserAlreadyExist struct {
  41. Name string
  42. }
  43. // IsErrUserAlreadyExist checks if an error is a ErrUserAlreadyExists.
  44. func IsErrUserAlreadyExist(err error) bool {
  45. _, ok := err.(ErrUserAlreadyExist)
  46. return ok
  47. }
  48. func (err ErrUserAlreadyExist) Error() string {
  49. return fmt.Sprintf("user already exists [name: %s]", err.Name)
  50. }
  51. // ErrUserNotExist represents a "UserNotExist" kind of error.
  52. type ErrUserNotExist struct {
  53. UID int64
  54. Name string
  55. KeyID int64
  56. }
  57. // IsErrUserNotExist checks if an error is a ErrUserNotExist.
  58. func IsErrUserNotExist(err error) bool {
  59. _, ok := err.(ErrUserNotExist)
  60. return ok
  61. }
  62. func (err ErrUserNotExist) Error() string {
  63. return fmt.Sprintf("user does not exist [uid: %d, name: %s, keyid: %d]", err.UID, err.Name, err.KeyID)
  64. }
  65. // ErrEmailAlreadyUsed represents a "EmailAlreadyUsed" kind of error.
  66. type ErrEmailAlreadyUsed struct {
  67. Email string
  68. }
  69. // IsErrEmailAlreadyUsed checks if an error is a ErrEmailAlreadyUsed.
  70. func IsErrEmailAlreadyUsed(err error) bool {
  71. _, ok := err.(ErrEmailAlreadyUsed)
  72. return ok
  73. }
  74. func (err ErrEmailAlreadyUsed) Error() string {
  75. return fmt.Sprintf("e-mail has been used [email: %s]", err.Email)
  76. }
  77. // ErrUserOwnRepos represents a "UserOwnRepos" kind of error.
  78. type ErrUserOwnRepos struct {
  79. UID int64
  80. }
  81. // IsErrUserOwnRepos checks if an error is a ErrUserOwnRepos.
  82. func IsErrUserOwnRepos(err error) bool {
  83. _, ok := err.(ErrUserOwnRepos)
  84. return ok
  85. }
  86. func (err ErrUserOwnRepos) Error() string {
  87. return fmt.Sprintf("user still has ownership of repositories [uid: %d]", err.UID)
  88. }
  89. // ErrUserHasOrgs represents a "UserHasOrgs" kind of error.
  90. type ErrUserHasOrgs struct {
  91. UID int64
  92. }
  93. // IsErrUserHasOrgs checks if an error is a ErrUserHasOrgs.
  94. func IsErrUserHasOrgs(err error) bool {
  95. _, ok := err.(ErrUserHasOrgs)
  96. return ok
  97. }
  98. func (err ErrUserHasOrgs) Error() string {
  99. return fmt.Sprintf("user still has membership of organizations [uid: %d]", err.UID)
  100. }
  101. // ErrReachLimitOfRepo represents a "ReachLimitOfRepo" kind of error.
  102. type ErrReachLimitOfRepo struct {
  103. Limit int
  104. }
  105. // IsErrReachLimitOfRepo checks if an error is a ErrReachLimitOfRepo.
  106. func IsErrReachLimitOfRepo(err error) bool {
  107. _, ok := err.(ErrReachLimitOfRepo)
  108. return ok
  109. }
  110. func (err ErrReachLimitOfRepo) Error() string {
  111. return fmt.Sprintf("user has reached maximum limit of repositories [limit: %d]", err.Limit)
  112. }
  113. // __ __.__ __ .__
  114. // / \ / \__| | _|__|
  115. // \ \/\/ / | |/ / |
  116. // \ /| | <| |
  117. // \__/\ / |__|__|_ \__|
  118. // \/ \/
  119. // ErrWikiAlreadyExist represents a "WikiAlreadyExist" kind of error.
  120. type ErrWikiAlreadyExist struct {
  121. Title string
  122. }
  123. // IsErrWikiAlreadyExist checks if an error is a ErrWikiAlreadyExist.
  124. func IsErrWikiAlreadyExist(err error) bool {
  125. _, ok := err.(ErrWikiAlreadyExist)
  126. return ok
  127. }
  128. func (err ErrWikiAlreadyExist) Error() string {
  129. return fmt.Sprintf("wiki page already exists [title: %s]", err.Title)
  130. }
  131. // __________ ___. .__ .__ ____ __.
  132. // \______ \__ _\_ |__ | | |__| ____ | |/ _|____ ___.__.
  133. // | ___/ | \ __ \| | | |/ ___\ | <_/ __ < | |
  134. // | | | | / \_\ \ |_| \ \___ | | \ ___/\___ |
  135. // |____| |____/|___ /____/__|\___ > |____|__ \___ > ____|
  136. // \/ \/ \/ \/\/
  137. // ErrKeyUnableVerify represents a "KeyUnableVerify" kind of error.
  138. type ErrKeyUnableVerify struct {
  139. Result string
  140. }
  141. // IsErrKeyUnableVerify checks if an error is a ErrKeyUnableVerify.
  142. func IsErrKeyUnableVerify(err error) bool {
  143. _, ok := err.(ErrKeyUnableVerify)
  144. return ok
  145. }
  146. func (err ErrKeyUnableVerify) Error() string {
  147. return fmt.Sprintf("Unable to verify key content [result: %s]", err.Result)
  148. }
  149. // ErrKeyNotExist represents a "KeyNotExist" kind of error.
  150. type ErrKeyNotExist struct {
  151. ID int64
  152. }
  153. // IsErrKeyNotExist checks if an error is a ErrKeyNotExist.
  154. func IsErrKeyNotExist(err error) bool {
  155. _, ok := err.(ErrKeyNotExist)
  156. return ok
  157. }
  158. func (err ErrKeyNotExist) Error() string {
  159. return fmt.Sprintf("public key does not exist [id: %d]", err.ID)
  160. }
  161. // ErrKeyAlreadyExist represents a "KeyAlreadyExist" kind of error.
  162. type ErrKeyAlreadyExist struct {
  163. OwnerID int64
  164. Content string
  165. }
  166. // IsErrKeyAlreadyExist checks if an error is a ErrKeyAlreadyExist.
  167. func IsErrKeyAlreadyExist(err error) bool {
  168. _, ok := err.(ErrKeyAlreadyExist)
  169. return ok
  170. }
  171. func (err ErrKeyAlreadyExist) Error() string {
  172. return fmt.Sprintf("public key already exists [owner_id: %d, content: %s]", err.OwnerID, err.Content)
  173. }
  174. // ErrKeyNameAlreadyUsed represents a "KeyNameAlreadyUsed" kind of error.
  175. type ErrKeyNameAlreadyUsed struct {
  176. OwnerID int64
  177. Name string
  178. }
  179. // IsErrKeyNameAlreadyUsed checks if an error is a ErrKeyNameAlreadyUsed.
  180. func IsErrKeyNameAlreadyUsed(err error) bool {
  181. _, ok := err.(ErrKeyNameAlreadyUsed)
  182. return ok
  183. }
  184. func (err ErrKeyNameAlreadyUsed) Error() string {
  185. return fmt.Sprintf("public key already exists [owner_id: %d, name: %s]", err.OwnerID, err.Name)
  186. }
  187. // ErrKeyAccessDenied represents a "KeyAccessDenied" kind of error.
  188. type ErrKeyAccessDenied struct {
  189. UserID int64
  190. KeyID int64
  191. Note string
  192. }
  193. // IsErrKeyAccessDenied checks if an error is a ErrKeyAccessDenied.
  194. func IsErrKeyAccessDenied(err error) bool {
  195. _, ok := err.(ErrKeyAccessDenied)
  196. return ok
  197. }
  198. func (err ErrKeyAccessDenied) Error() string {
  199. return fmt.Sprintf("user does not have access to the key [user_id: %d, key_id: %d, note: %s]",
  200. err.UserID, err.KeyID, err.Note)
  201. }
  202. // ErrDeployKeyNotExist represents a "DeployKeyNotExist" kind of error.
  203. type ErrDeployKeyNotExist struct {
  204. ID int64
  205. KeyID int64
  206. RepoID int64
  207. }
  208. // IsErrDeployKeyNotExist checks if an error is a ErrDeployKeyNotExist.
  209. func IsErrDeployKeyNotExist(err error) bool {
  210. _, ok := err.(ErrDeployKeyNotExist)
  211. return ok
  212. }
  213. func (err ErrDeployKeyNotExist) Error() string {
  214. return fmt.Sprintf("Deploy key does not exist [id: %d, key_id: %d, repo_id: %d]", err.ID, err.KeyID, err.RepoID)
  215. }
  216. // ErrDeployKeyAlreadyExist represents a "DeployKeyAlreadyExist" kind of error.
  217. type ErrDeployKeyAlreadyExist struct {
  218. KeyID int64
  219. RepoID int64
  220. }
  221. // IsErrDeployKeyAlreadyExist checks if an error is a ErrDeployKeyAlreadyExist.
  222. func IsErrDeployKeyAlreadyExist(err error) bool {
  223. _, ok := err.(ErrDeployKeyAlreadyExist)
  224. return ok
  225. }
  226. func (err ErrDeployKeyAlreadyExist) Error() string {
  227. return fmt.Sprintf("public key already exists [key_id: %d, repo_id: %d]", err.KeyID, err.RepoID)
  228. }
  229. // ErrDeployKeyNameAlreadyUsed represents a "DeployKeyNameAlreadyUsed" kind of error.
  230. type ErrDeployKeyNameAlreadyUsed struct {
  231. RepoID int64
  232. Name string
  233. }
  234. // IsErrDeployKeyNameAlreadyUsed checks if an error is a ErrDeployKeyNameAlreadyUsed.
  235. func IsErrDeployKeyNameAlreadyUsed(err error) bool {
  236. _, ok := err.(ErrDeployKeyNameAlreadyUsed)
  237. return ok
  238. }
  239. func (err ErrDeployKeyNameAlreadyUsed) Error() string {
  240. return fmt.Sprintf("public key already exists [repo_id: %d, name: %s]", err.RepoID, err.Name)
  241. }
  242. // _____ ___________ __
  243. // / _ \ ____ ____ ____ ______ _____\__ ___/___ | | __ ____ ____
  244. // / /_\ \_/ ___\/ ___\/ __ \ / ___// ___/ | | / _ \| |/ // __ \ / \
  245. // / | \ \__\ \__\ ___/ \___ \ \___ \ | |( <_> ) <\ ___/| | \
  246. // \____|__ /\___ >___ >___ >____ >____ > |____| \____/|__|_ \\___ >___| /
  247. // \/ \/ \/ \/ \/ \/ \/ \/ \/
  248. // ErrAccessTokenNotExist represents a "AccessTokenNotExist" kind of error.
  249. type ErrAccessTokenNotExist struct {
  250. SHA string
  251. }
  252. // IsErrAccessTokenNotExist checks if an error is a ErrAccessTokenNotExist.
  253. func IsErrAccessTokenNotExist(err error) bool {
  254. _, ok := err.(ErrAccessTokenNotExist)
  255. return ok
  256. }
  257. func (err ErrAccessTokenNotExist) Error() string {
  258. return fmt.Sprintf("access token does not exist [sha: %s]", err.SHA)
  259. }
  260. // ErrAccessTokenEmpty represents a "AccessTokenEmpty" kind of error.
  261. type ErrAccessTokenEmpty struct {
  262. }
  263. // IsErrAccessTokenEmpty checks if an error is a ErrAccessTokenEmpty.
  264. func IsErrAccessTokenEmpty(err error) bool {
  265. _, ok := err.(ErrAccessTokenEmpty)
  266. return ok
  267. }
  268. func (err ErrAccessTokenEmpty) Error() string {
  269. return fmt.Sprintf("access token is empty")
  270. }
  271. // ________ .__ __ .__
  272. // \_____ \_______ _________ ____ |__|____________ _/ |_|__| ____ ____
  273. // / | \_ __ \/ ___\__ \ / \| \___ /\__ \\ __\ |/ _ \ / \
  274. // / | \ | \/ /_/ > __ \| | \ |/ / / __ \| | | ( <_> ) | \
  275. // \_______ /__| \___ (____ /___| /__/_____ \(____ /__| |__|\____/|___| /
  276. // \/ /_____/ \/ \/ \/ \/ \/
  277. // ErrLastOrgOwner represents a "LastOrgOwner" kind of error.
  278. type ErrLastOrgOwner struct {
  279. UID int64
  280. }
  281. // IsErrLastOrgOwner checks if an error is a ErrLastOrgOwner.
  282. func IsErrLastOrgOwner(err error) bool {
  283. _, ok := err.(ErrLastOrgOwner)
  284. return ok
  285. }
  286. func (err ErrLastOrgOwner) Error() string {
  287. return fmt.Sprintf("user is the last member of owner team [uid: %d]", err.UID)
  288. }
  289. // __________ .__ __
  290. // \______ \ ____ ______ ____ _____|__|/ |_ ___________ ___.__.
  291. // | _// __ \\____ \ / _ \/ ___/ \ __\/ _ \_ __ < | |
  292. // | | \ ___/| |_> > <_> )___ \| || | ( <_> ) | \/\___ |
  293. // |____|_ /\___ > __/ \____/____ >__||__| \____/|__| / ____|
  294. // \/ \/|__| \/ \/
  295. // ErrRepoNotExist represents a "RepoNotExist" kind of error.
  296. type ErrRepoNotExist struct {
  297. ID int64
  298. UID int64
  299. Name string
  300. }
  301. // IsErrRepoNotExist checks if an error is a ErrRepoNotExist.
  302. func IsErrRepoNotExist(err error) bool {
  303. _, ok := err.(ErrRepoNotExist)
  304. return ok
  305. }
  306. func (err ErrRepoNotExist) Error() string {
  307. return fmt.Sprintf("repository does not exist [id: %d, uid: %d, name: %s]", err.ID, err.UID, err.Name)
  308. }
  309. // ErrRepoAlreadyExist represents a "RepoAlreadyExist" kind of error.
  310. type ErrRepoAlreadyExist struct {
  311. Uname string
  312. Name string
  313. }
  314. // IsErrRepoAlreadyExist checks if an error is a ErrRepoAlreadyExist.
  315. func IsErrRepoAlreadyExist(err error) bool {
  316. _, ok := err.(ErrRepoAlreadyExist)
  317. return ok
  318. }
  319. func (err ErrRepoAlreadyExist) Error() string {
  320. return fmt.Sprintf("repository already exists [uname: %s, name: %s]", err.Uname, err.Name)
  321. }
  322. // ErrInvalidCloneAddr represents a "InvalidCloneAddr" kind of error.
  323. type ErrInvalidCloneAddr struct {
  324. IsURLError bool
  325. IsInvalidPath bool
  326. IsPermissionDenied bool
  327. }
  328. // IsErrInvalidCloneAddr checks if an error is a ErrInvalidCloneAddr.
  329. func IsErrInvalidCloneAddr(err error) bool {
  330. _, ok := err.(ErrInvalidCloneAddr)
  331. return ok
  332. }
  333. func (err ErrInvalidCloneAddr) Error() string {
  334. return fmt.Sprintf("invalid clone address [is_url_error: %v, is_invalid_path: %v, is_permission_denied: %v]",
  335. err.IsURLError, err.IsInvalidPath, err.IsPermissionDenied)
  336. }
  337. // ErrUpdateTaskNotExist represents a "UpdateTaskNotExist" kind of error.
  338. type ErrUpdateTaskNotExist struct {
  339. UUID string
  340. }
  341. // IsErrUpdateTaskNotExist checks if an error is a ErrUpdateTaskNotExist.
  342. func IsErrUpdateTaskNotExist(err error) bool {
  343. _, ok := err.(ErrUpdateTaskNotExist)
  344. return ok
  345. }
  346. func (err ErrUpdateTaskNotExist) Error() string {
  347. return fmt.Sprintf("update task does not exist [uuid: %s]", err.UUID)
  348. }
  349. // ErrReleaseAlreadyExist represents a "ReleaseAlreadyExist" kind of error.
  350. type ErrReleaseAlreadyExist struct {
  351. TagName string
  352. }
  353. // IsErrReleaseAlreadyExist checks if an error is a ErrReleaseAlreadyExist.
  354. func IsErrReleaseAlreadyExist(err error) bool {
  355. _, ok := err.(ErrReleaseAlreadyExist)
  356. return ok
  357. }
  358. func (err ErrReleaseAlreadyExist) Error() string {
  359. return fmt.Sprintf("release tag already exist [tag_name: %s]", err.TagName)
  360. }
  361. // ErrReleaseNotExist represents a "ReleaseNotExist" kind of error.
  362. type ErrReleaseNotExist struct {
  363. ID int64
  364. TagName string
  365. }
  366. // IsErrReleaseNotExist checks if an error is a ErrReleaseNotExist.
  367. func IsErrReleaseNotExist(err error) bool {
  368. _, ok := err.(ErrReleaseNotExist)
  369. return ok
  370. }
  371. func (err ErrReleaseNotExist) Error() string {
  372. return fmt.Sprintf("release tag does not exist [id: %d, tag_name: %s]", err.ID, err.TagName)
  373. }
  374. // ErrInvalidTagName represents a "InvalidTagName" kind of error.
  375. type ErrInvalidTagName struct {
  376. TagName string
  377. }
  378. // IsErrInvalidTagName checks if an error is a ErrInvalidTagName.
  379. func IsErrInvalidTagName(err error) bool {
  380. _, ok := err.(ErrInvalidTagName)
  381. return ok
  382. }
  383. func (err ErrInvalidTagName) Error() string {
  384. return fmt.Sprintf("release tag name is not valid [tag_name: %s]", err.TagName)
  385. }
  386. // ErrRepoFileAlreadyExist represents a "RepoFileAlreadyExist" kind of error.
  387. type ErrRepoFileAlreadyExist struct {
  388. FileName string
  389. }
  390. // IsErrRepoFileAlreadyExist checks if an error is a ErrRepoFileAlreadyExist.
  391. func IsErrRepoFileAlreadyExist(err error) bool {
  392. _, ok := err.(ErrRepoFileAlreadyExist)
  393. return ok
  394. }
  395. func (err ErrRepoFileAlreadyExist) Error() string {
  396. return fmt.Sprintf("repository file already exists [file_name: %s]", err.FileName)
  397. }
  398. // __________ .__
  399. // \______ \____________ ____ ____ | |__
  400. // | | _/\_ __ \__ \ / \_/ ___\| | \
  401. // | | \ | | \// __ \| | \ \___| Y \
  402. // |______ / |__| (____ /___| /\___ >___| /
  403. // \/ \/ \/ \/ \/
  404. // ErrBranchNotExist represents a "BranchNotExist" kind of error.
  405. type ErrBranchNotExist struct {
  406. Name string
  407. }
  408. // IsErrBranchNotExist checks if an error is a ErrBranchNotExist.
  409. func IsErrBranchNotExist(err error) bool {
  410. _, ok := err.(ErrBranchNotExist)
  411. return ok
  412. }
  413. func (err ErrBranchNotExist) Error() string {
  414. return fmt.Sprintf("branch does not exist [name: %s]", err.Name)
  415. }
  416. // __ __ ___. .__ __
  417. // / \ / \ ____\_ |__ | |__ ____ ____ | | __
  418. // \ \/\/ // __ \| __ \| | \ / _ \ / _ \| |/ /
  419. // \ /\ ___/| \_\ \ Y ( <_> | <_> ) <
  420. // \__/\ / \___ >___ /___| /\____/ \____/|__|_ \
  421. // \/ \/ \/ \/ \/
  422. // ErrWebhookNotExist represents a "WebhookNotExist" kind of error.
  423. type ErrWebhookNotExist struct {
  424. ID int64
  425. }
  426. // IsErrWebhookNotExist checks if an error is a ErrWebhookNotExist.
  427. func IsErrWebhookNotExist(err error) bool {
  428. _, ok := err.(ErrWebhookNotExist)
  429. return ok
  430. }
  431. func (err ErrWebhookNotExist) Error() string {
  432. return fmt.Sprintf("webhook does not exist [id: %d]", err.ID)
  433. }
  434. // .___
  435. // | | ______ ________ __ ____
  436. // | |/ ___// ___/ | \_/ __ \
  437. // | |\___ \ \___ \| | /\ ___/
  438. // |___/____ >____ >____/ \___ >
  439. // \/ \/ \/
  440. // ErrIssueNotExist represents a "IssueNotExist" kind of error.
  441. type ErrIssueNotExist struct {
  442. ID int64
  443. RepoID int64
  444. Index int64
  445. }
  446. // IsErrIssueNotExist checks if an error is a ErrIssueNotExist.
  447. func IsErrIssueNotExist(err error) bool {
  448. _, ok := err.(ErrIssueNotExist)
  449. return ok
  450. }
  451. func (err ErrIssueNotExist) Error() string {
  452. return fmt.Sprintf("issue does not exist [id: %d, repo_id: %d, index: %d]", err.ID, err.RepoID, err.Index)
  453. }
  454. // __________ .__ .__ __________ __
  455. // \______ \__ __| | | |\______ \ ____ ________ __ ____ _______/ |_
  456. // | ___/ | \ | | | | _// __ \/ ____/ | \_/ __ \ / ___/\ __\
  457. // | | | | / |_| |_| | \ ___< <_| | | /\ ___/ \___ \ | |
  458. // |____| |____/|____/____/____|_ /\___ >__ |____/ \___ >____ > |__|
  459. // \/ \/ |__| \/ \/
  460. // ErrPullRequestNotExist represents a "PullRequestNotExist" kind of error.
  461. type ErrPullRequestNotExist struct {
  462. ID int64
  463. IssueID int64
  464. HeadRepoID int64
  465. BaseRepoID int64
  466. HeadBarcnh string
  467. BaseBranch string
  468. }
  469. // IsErrPullRequestNotExist checks if an error is a ErrPullRequestNotExist.
  470. func IsErrPullRequestNotExist(err error) bool {
  471. _, ok := err.(ErrPullRequestNotExist)
  472. return ok
  473. }
  474. func (err ErrPullRequestNotExist) Error() string {
  475. return fmt.Sprintf("pull request does not exist [id: %d, issue_id: %d, head_repo_id: %d, base_repo_id: %d, head_branch: %s, base_branch: %s]",
  476. err.ID, err.IssueID, err.HeadRepoID, err.BaseRepoID, err.HeadBarcnh, err.BaseBranch)
  477. }
  478. // _________ __
  479. // \_ ___ \ ____ _____ _____ ____ _____/ |_
  480. // / \ \/ / _ \ / \ / \_/ __ \ / \ __\
  481. // \ \___( <_> ) Y Y \ Y Y \ ___/| | \ |
  482. // \______ /\____/|__|_| /__|_| /\___ >___| /__|
  483. // \/ \/ \/ \/ \/
  484. // ErrCommentNotExist represents a "CommentNotExist" kind of error.
  485. type ErrCommentNotExist struct {
  486. ID int64
  487. IssueID int64
  488. }
  489. // IsErrCommentNotExist checks if an error is a ErrCommentNotExist.
  490. func IsErrCommentNotExist(err error) bool {
  491. _, ok := err.(ErrCommentNotExist)
  492. return ok
  493. }
  494. func (err ErrCommentNotExist) Error() string {
  495. return fmt.Sprintf("comment does not exist [id: %d, issue_id: %d]", err.ID, err.IssueID)
  496. }
  497. // .____ ___. .__
  498. // | | _____ \_ |__ ____ | |
  499. // | | \__ \ | __ \_/ __ \| |
  500. // | |___ / __ \| \_\ \ ___/| |__
  501. // |_______ (____ /___ /\___ >____/
  502. // \/ \/ \/ \/
  503. // ErrLabelNotExist represents a "LabelNotExist" kind of error.
  504. type ErrLabelNotExist struct {
  505. LabelID int64
  506. RepoID int64
  507. }
  508. // IsErrLabelNotExist checks if an error is a ErrLabelNotExist.
  509. func IsErrLabelNotExist(err error) bool {
  510. _, ok := err.(ErrLabelNotExist)
  511. return ok
  512. }
  513. func (err ErrLabelNotExist) Error() string {
  514. return fmt.Sprintf("label does not exist [label_id: %d, repo_id: %d]", err.LabelID, err.RepoID)
  515. }
  516. // _____ .__.__ __
  517. // / \ |__| | ____ _______/ |_ ____ ____ ____
  518. // / \ / \| | | _/ __ \ / ___/\ __\/ _ \ / \_/ __ \
  519. // / Y \ | |_\ ___/ \___ \ | | ( <_> ) | \ ___/
  520. // \____|__ /__|____/\___ >____ > |__| \____/|___| /\___ >
  521. // \/ \/ \/ \/ \/
  522. // ErrMilestoneNotExist represents a "MilestoneNotExist" kind of error.
  523. type ErrMilestoneNotExist struct {
  524. ID int64
  525. RepoID int64
  526. }
  527. // IsErrMilestoneNotExist checks if an error is a ErrMilestoneNotExist.
  528. func IsErrMilestoneNotExist(err error) bool {
  529. _, ok := err.(ErrMilestoneNotExist)
  530. return ok
  531. }
  532. func (err ErrMilestoneNotExist) Error() string {
  533. return fmt.Sprintf("milestone does not exist [id: %d, repo_id: %d]", err.ID, err.RepoID)
  534. }
  535. // _____ __ __ .__ __
  536. // / _ \_/ |__/ |______ ____ | |__ _____ ____ _____/ |_
  537. // / /_\ \ __\ __\__ \ _/ ___\| | \ / \_/ __ \ / \ __\
  538. // / | \ | | | / __ \\ \___| Y \ Y Y \ ___/| | \ |
  539. // \____|__ /__| |__| (____ /\___ >___| /__|_| /\___ >___| /__|
  540. // \/ \/ \/ \/ \/ \/ \/
  541. // ErrAttachmentNotExist represents a "AttachmentNotExist" kind of error.
  542. type ErrAttachmentNotExist struct {
  543. ID int64
  544. UUID string
  545. }
  546. // IsErrAttachmentNotExist checks if an error is a ErrAttachmentNotExist.
  547. func IsErrAttachmentNotExist(err error) bool {
  548. _, ok := err.(ErrAttachmentNotExist)
  549. return ok
  550. }
  551. func (err ErrAttachmentNotExist) Error() string {
  552. return fmt.Sprintf("attachment does not exist [id: %d, uuid: %s]", err.ID, err.UUID)
  553. }
  554. // .____ .__ _________
  555. // | | ____ ____ |__| ____ / _____/ ____ __ _________ ____ ____
  556. // | | / _ \ / ___\| |/ \ \_____ \ / _ \| | \_ __ \_/ ___\/ __ \
  557. // | |__( <_> ) /_/ > | | \ / ( <_> ) | /| | \/\ \__\ ___/
  558. // |_______ \____/\___ /|__|___| / /_______ /\____/|____/ |__| \___ >___ >
  559. // \/ /_____/ \/ \/ \/ \/
  560. // ErrLoginSourceNotExist represents a "LoginSourceNotExist" kind of error.
  561. type ErrLoginSourceNotExist struct {
  562. ID int64
  563. }
  564. // IsErrLoginSourceNotExist checks if an error is a ErrLoginSourceNotExist.
  565. func IsErrLoginSourceNotExist(err error) bool {
  566. _, ok := err.(ErrLoginSourceNotExist)
  567. return ok
  568. }
  569. func (err ErrLoginSourceNotExist) Error() string {
  570. return fmt.Sprintf("login source does not exist [id: %d]", err.ID)
  571. }
  572. // ErrLoginSourceAlreadyExist represents a "LoginSourceAlreadyExist" kind of error.
  573. type ErrLoginSourceAlreadyExist struct {
  574. Name string
  575. }
  576. // IsErrLoginSourceAlreadyExist checks if an error is a ErrLoginSourceAlreadyExist.
  577. func IsErrLoginSourceAlreadyExist(err error) bool {
  578. _, ok := err.(ErrLoginSourceAlreadyExist)
  579. return ok
  580. }
  581. func (err ErrLoginSourceAlreadyExist) Error() string {
  582. return fmt.Sprintf("login source already exists [name: %s]", err.Name)
  583. }
  584. // ErrLoginSourceInUse represents a "LoginSourceInUse" kind of error.
  585. type ErrLoginSourceInUse struct {
  586. ID int64
  587. }
  588. // IsErrLoginSourceInUse checks if an error is a ErrLoginSourceInUse.
  589. func IsErrLoginSourceInUse(err error) bool {
  590. _, ok := err.(ErrLoginSourceInUse)
  591. return ok
  592. }
  593. func (err ErrLoginSourceInUse) Error() string {
  594. return fmt.Sprintf("login source is still used by some users [id: %d]", err.ID)
  595. }
  596. // ___________
  597. // \__ ___/___ _____ _____
  598. // | |_/ __ \\__ \ / \
  599. // | |\ ___/ / __ \| Y Y \
  600. // |____| \___ >____ /__|_| /
  601. // \/ \/ \/
  602. // ErrTeamAlreadyExist represents a "TeamAlreadyExist" kind of error.
  603. type ErrTeamAlreadyExist struct {
  604. OrgID int64
  605. Name string
  606. }
  607. // IsErrTeamAlreadyExist checks if an error is a ErrTeamAlreadyExist.
  608. func IsErrTeamAlreadyExist(err error) bool {
  609. _, ok := err.(ErrTeamAlreadyExist)
  610. return ok
  611. }
  612. func (err ErrTeamAlreadyExist) Error() string {
  613. return fmt.Sprintf("team already exists [org_id: %d, name: %s]", err.OrgID, err.Name)
  614. }
  615. // ____ ___ .__ .___
  616. // | | \______ | | _________ __| _/
  617. // | | /\____ \| | / _ \__ \ / __ |
  618. // | | / | |_> > |_( <_> ) __ \_/ /_/ |
  619. // |______/ | __/|____/\____(____ /\____ |
  620. // |__| \/ \/
  621. //
  622. // ErrUploadNotExist represents a "UploadNotExist" kind of error.
  623. type ErrUploadNotExist struct {
  624. ID int64
  625. UUID string
  626. }
  627. // IsErrUploadNotExist checks if an error is a ErrUploadNotExist.
  628. func IsErrUploadNotExist(err error) bool {
  629. _, ok := err.(ErrAttachmentNotExist)
  630. return ok
  631. }
  632. func (err ErrUploadNotExist) Error() string {
  633. return fmt.Sprintf("attachment does not exist [id: %d, uuid: %s]", err.ID, err.UUID)
  634. }