Ethan Koenig
66c803fae2
MySQL, Postgres integration tests in drone ( #1638 )
...
* MySQL, Postgres integration tests in drone
* Fix .drone.yml
* sign drone
* resign drone
8 years ago
Jonas Östanbäck
9a8ca3e877
Fix broken migration v27 ( #1504 )
...
Mirror.interval column type needed to be changed to bigint.
Correct interval where the interval set is < MinInterval.
8 years ago
Lunny Xiao
e31c02d4bf
fix bug on issue view when not login ( #1624 )
...
* fix bug on issue view when not login
* hide issue watch when not login
* update the tests
* fix test on issue
8 years ago
Jonas Östanbäck
e4a0a04829
Add create_at and updated_at in PR json ( #1616 )
...
* Move new fields to object creation (use reference)
* Vendor: Update SDK
8 years ago
Antoine GIRARD
8371f94d06
Rework SSH key management UI to add GPG ( #1293 )
...
* Rework SSH key management UI to add GPG
* Add more detail to gpg key display
* Update CHANGELOG.md
* Implement deletion UI
* Implement adding gpg UI
* Various fixes
- Fix duplicate entry in locale
- Re-generate hash before verification since they are consumed
* Add missing translation
* Split template
* Catch not found/verified email error
8 years ago
Ethan Koenig
c58708d3ee
Integration test framework ( #1290 )
...
* Integration test framework
* udpate drone sign
* Formatting fixes and move router.go to routers/
* update sign for drone
8 years ago
Lunny Xiao
3012971e92
fix bug on status API ( #1533 )
8 years ago
Kim "BKC" Carlbäcker
4bea219128
Status-API ( #1332 )
8 years ago
Bo-Yi Wu
fa2a513c62
feat: add download count field and unit testing for attachment. ( #1512 )
...
* feat: add download count field and unit testing.
* fix: unit testing
* refactor: improve testing.
* fix: update comment
* add default value.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
8 years ago
Lunny Xiao
2eeae84cbd
Add internal routes for ssh hook comands ( #1471 )
...
* add internal routes for ssh hook comands
* fix lint
* add comment on why package named private not internal but the route name is internal
* add comment above package private why package named private not internal but the route name is internal
* remove exp time on internal access
* move routes from /internal to /api/internal
* add comment and defer on UpdatePublicKeyUpdated
8 years ago
Kim "BKC" Carlbäcker
d409d3ab57
Sanitation fix from Gogs ( #1461 )
...
* Santiation fix from Gogs
* Linting
* Fix build-errors
* still not working
* Fix all the things!
* gofmt
* Add code-injection checks
8 years ago
Jonas
be6edaddcb
Repo size in admin panel ( #1482 )
...
* Implementation of the feature to view repository size in admin panel
* Move GetRepoSize to git module
* Repository.RepoSize -> Repository.Size
* RepoSize -> Size in template
* Redo a few bits and pieces
* Update size when syncing mirror or forking
* Remove GetRepoSize
* Changed fatal errors to error message
* Copy migration code from Gogs
* make fmt
8 years ago
Jonas
54f0293f0a
Mirror sync interval specified as duration string ( #1407 )
...
* Sync interval specifed as duration string
* Changed mirror interval text
* make fmt
* Add MinInterval for mirror sync
* Use duration internally
* Changed min default to 10m
* make fmt
* Incorrect default
* Removed defaults in MustDuration()
* Add Mirror interval migration
* Default values corrected
* Use transaction during migration
* Change http 500 to page with error message
* Cleanup session.commit()
8 years ago
Lunny Xiao
5c0bee9b20
refactor update ssh key use time ( #1466 )
8 years ago
Lunny Xiao
5acfc7c4bc
fix migrate failed and org dashboard failed on MSSQL database ( #1448 )
8 years ago
Jonas
e7493e953f
Corrected Mirror.NextUpdate not set ( #1388 )
8 years ago
Kuba Tyszko
5d6b71fdbb
fixes pull request hanging indefinitely when it contains normal and LFS file pointers ( #1425 )
8 years ago
Andrey Nering
37a34c1a28
Merge pull request #1410 from andreynering/notification/issue-watch
...
[Notifications Step 6] Per issue/PR watch/unwatch
8 years ago
Andrey Nering
f6e5ce65b2
Improve tests a little
8 years ago
Andrey Nering
e5c56fe30d
Code style fixes
8 years ago
agrn
88112a5324
Fix "Error: No issue number specified" when pushing ( #1393 )
...
* Fix "Error: No issue number specified" when pushing
* update pr
8 years ago
Mura Li
6a39250579
Add length check for the return string ( #1420 )
...
* Add length check for the return string
* Differentiate error paths and logging messages
* Rectify error message
8 years ago
Andrey Nering
e6781d5488
Add unit tests for issue_watch
8 years ago
Andrey Nering
a90ffffb1a
Use variables for times
8 years ago
Andrey Nering
18952c40f8
Add copyright headers
8 years ago
Andrey Nering
caed86fc6e
Fix lint
8 years ago
Andrey Nering
cb362513f0
Add updated_unix column on issue_watch
8 years ago
Andrey Nering
aa6e949b3d
Consider issue_watchers while sending notifications
8 years ago
Andrey Nering
b674460748
Add watch button on issue
8 years ago
Andrey Nering
a0d0de7233
Create issue_watch table
8 years ago
Bo-Yi Wu
08f7fded3c
refactor: remove workaround after the golang 1.7 release. ( #1349 )
...
* refactor: remove workaround after the golang 1.7 release.
* remove unused import.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* refactor: Add remove function.
* refactor: rename
* refactor: update build flag
8 years ago
Philippe Kueck
fe94032f74
rewrite pre-commit, post-commit and options hooks ( fixes #1250 ) ( #1257 )
...
* issue #1250 , replace {pre,post}-receive and update hooks with a single shell script that does not require custom hooks to be a sh-script
* issue #1250 , make script posix compilant
* v23, add migration script to update {pre,post}-receive and update hooks
* migration: use a more common name and rename v23 to v26 to avoid conflicts
* gofmt'ed and added copyright header
* fix SyncRepositoryHooks to also sync wiki repos
8 years ago
Lunny Xiao
d330a23ce1
fix migration failed when authorized_keys is not exist ( #1180 )
8 years ago
Kim "BKC" Carlbäcker
d349f059af
Cleaner IMO ( #1361 )
8 years ago
Antoine GIRARD
14fe9010ae
GPG commit validation ( #1150 )
...
* GPG commit validation
* Add translation
+ some little fix
* Move hash calc after retrieving of potential key + missing translation
* Add some little test
8 years ago
Sandro Santilli
f73e734411
Run "make fmt" with go-1.6 ( #1333 )
8 years ago
Lunny Xiao
888dee3b5f
fix delete user failed on sqlite ( #1321 )
8 years ago
Lunny Xiao
bd8fe49076
fix wiki bugs ( #1294 )
8 years ago
Sandro Santilli
9182a35f18
Show user OpenID URIs in their profile ( #1314 )
8 years ago
Lunny Xiao
608cd54a68
fix gpg wrong column types
8 years ago
Bo-Yi Wu
1c3bd436cc
feat: Only use issue and wiki on repo. ( #1297 )
8 years ago
Sandro Santilli
71d16f69ff
Login via OpenID-2.0 ( #618 )
8 years ago
Lunny Xiao
3cf0e513e6
fix wrong log when push to a new branch ( #1220 )
8 years ago
Sandro Santilli
447c9b428f
Send notifications to partecipants in issue comments ( #1217 )
...
* Send notifications to partecipants in issue comments
Closes #1216
Includes test (still failing)
* Do not include "labelers" to participants
Fix test to expect what GetParticipants return
8 years ago
Antoine GIRARD
ca1c3f1926
Implement GPG api ( #710 )
...
* Implement GPG API
* Better handle error
* Apply review recommendation + simplify database operations
* Remove useless comments
8 years ago
Ethan Koenig
09fe4a2ae9
Batch updates for issues ( #926 )
8 years ago
Ethan Koenig
021904e4e6
Fix typos in models/ and modules/ ( #1248 )
8 years ago
Ethan Koenig
ec0ae5d50c
Refactor and fix incorrect comment ( #1247 )
8 years ago
Sandro Santilli
8746fb3385
Fix migration comment ( #1241 )
8 years ago
Lunny Xiao
1ccdf19fae
fix forget migration for wiki hooks ( #1227 )
8 years ago
Sandro Santilli
0475e7351f
Reserve the "explore" user/org name ( #1222 )
8 years ago
Ethan Koenig
c99e7e1a62
Simplify RepositoryList.loadAttributes() ( #1211 )
8 years ago
Ethan Koenig
3803f257fb
Move user_follow to separate file ( #1210 )
...
Also add unit tests
8 years ago
Ethan Koenig
1e3548b7e7
Unit tests for issue_list ( #1209 )
8 years ago
Philippe Kueck
e2b2fd6e78
fix #1189 , commit messages containing a pipe ( #1203 )
8 years ago
Lunny Xiao
74cde12677
Fix upgrade failed after ever rollback ( #1194 )
...
* fix upgrade failed after rollback
* fix upgrade failed after rollback
* fix possible upgrade twice fail after rollback
8 years ago
Lunny Xiao
f5476bdbb1
bug fixed for delete repo failed ( #1193 )
8 years ago
Lunny Xiao
5d40db629c
fix random avatars ( #1147 )
8 years ago
Lunny Xiao
2215840363
fix avatar bug #1114 ( #1122 )
...
This PR fix the avatar bug described in #1114 . This will fix random avatar is blank problem and potential delete avatars dir problem.
8 years ago
Lunny Xiao
0376029241
fix del org avatar potential delete all avtars ( #1120 )
8 years ago
Lunny Xiao
7b64b2ddab
fix install submit crash caused by xorm log ( #1119 )
8 years ago
Bo-Yi Wu
d76d67de23
feat: expose url field on issue api. ( #982 )
...
* Add api url func.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* fix: Add unit testing.
* fix: conflicts
* fix: remove trim
* fix: revert test function name.
8 years ago
Lunny Xiao
ef13bbaf7d
Don't rewrite non-gitea public keys ( #906 )
...
* don't rewrite non-gitea public keys
* add comment for public key
8 years ago
Lunny Xiao
9cb08a3cf5
fix wrong num of user repos because of duplicated click delete button & performance optimization ( #1092 )
8 years ago
Ethan Koenig
d21d5fd736
Remove unnecessary loads in org_team ( #1090 )
8 years ago
Ethan Koenig
22f7aa6e9c
LableIDs -> LabelIDs ( #1088 )
8 years ago
Bo-Yi Wu
e83c8afc56
refactor: move SearchRepositoryByName testing. ( #1083 )
8 years ago
Lunny Xiao
c2eef171ff
fix some typos ( #1082 )
8 years ago
Ethan Koenig
4b286f282a
Consistency checks for action unit tests ( #1079 )
8 years ago
Ethan Koenig
cf80e19157
Optimize and unit test Issue_ReplaceLabels ( #1080 )
8 years ago
Ethan Koenig
136e6beb0f
Fix unused Engine bugs ( #1064 )
8 years ago
Lunny Xiao
e4134debd1
Remove unused vars ( #1063 )
...
* remove unused vars
* remove unused comment
8 years ago
Lunny Xiao
32faec00e6
move all repo list functions as a standalone file ( #1061 )
8 years ago
Lunny Xiao
d4e38cf129
fix setMerged for remove unnecessary db connection ( #1067 )
8 years ago
Lunny Xiao
522f194983
Bug fixed for org avatar caused by #1049 ( #1070 )
...
* bug fixed for org avatar caused by #1049
* use isfile only
8 years ago
Bo-Yi Wu
95574a3640
fix: Admin can see all private repositories on Explore page. ( #1026 )
...
* fix: Admin can see all private repositories on Explore page.
* refactor: fix session
8 years ago
Sandro Santilli
bf24099114
Allow migrating installations with no local avatars ( #1056 )
8 years ago
Lunny Xiao
80f900ebae
Fix avatar enumable ( #1049 )
...
* fix avatar enumable
* fix import style
8 years ago
Lunny Xiao
19b3c45ca7
fix 500 when use a duplicat email instead of giving an error tip ( #1040 )
8 years ago
Lunny Xiao
cd1821a7e2
Move push update to post-receive and protected branch check to pre-receive ( #1030 )
...
* move all push update to git hook post-receive and protected branch check to git hook pre-receive
* add SSH_ORIGINAL_COMMAND check back
* remove all unused codes
* fix the import
8 years ago
Lunny Xiao
e8e56da9ac
fix #13 ( #1042 )
8 years ago
Andrey Nering
ddb0287bf6
Merge pull request #970 from andreynering/api-repo-mirror
...
Add "mirror" field to repo API
8 years ago
Lunny Xiao
fc4f7e82f9
refactor for searching user ( #1038 )
...
* refactor for searching user
* fix like bug
* better format for builder cond
8 years ago
Andrey Nering
946f3078d3
Add "mirror" field to repo API
8 years ago
Bo-Yi Wu
f1412142e0
refactor: repo counts for SearchRepositoryByName func ( #1045 )
8 years ago
Lunny Xiao
c0ea3963be
fix delete repo will hang on postgres ( #1044 )
8 years ago
Andrew Boyarshin
0602a44b27
Fix URL handling in the whole markdown module, improve test coverage ( #1027 )
...
Amended with string to bool change in API SDK.
Signed-off-by: Andrew Boyarshin <andrew.boyarshin@gmail.com>
8 years ago
Ethan Koenig
76057105ca
Remove unnecessary loads in org_team ( #1035 )
8 years ago
Ethan Koenig
f1ab906c51
Unit tests for models/repo_collaboration ( #1032 )
8 years ago
bit
490d3771f7
s/fields/terms ( #1031 )
...
use terms instead of fields as variable name to avoid confusion: NewPhraseQuery(terms []string, field string)
8 years ago
Lunny Xiao
d077fd084a
added missing new struct sync ( #1021 )
8 years ago
Lunny Xiao
0e6b9ea786
Take back control of hooks ( #1006 )
...
* git: delegate all server-side Git hooks (#1623 )
* create hooks directories
* take control hooks back
* fix lint
* bug fixed and minor changes
* fix imports style
* fix migration scripts
8 years ago
Ethan Koenig
4f3880ff15
Bug fixes and unit tests for org_team ( #1016 )
8 years ago
Ethan Koenig
ec3a696e2d
Fix lint errors
8 years ago
Lunny Xiao
1f7837d6d6
Refactor for issues loadattributes of a repository ( #971 )
...
* refactor for issues loadattributes of a repository
* refactors
8 years ago
Bo-Yi Wu
83b6d03231
fix: Wrong repo list on Explore page if user already loggin. ( #1009 )
...
* fix: Wrong repo list on Explore page if user already loggin.
* fix: code readable.
* fix: declare variable
8 years ago
Willem van Dreumel
01d957677f
Oauth2 consumer ( #679 )
...
* initial stuff for oauth2 login, fails on:
* login button on the signIn page to start the OAuth2 flow and a callback for each provider
Only GitHub is implemented for now
* show login button only when the OAuth2 consumer is configured (and activated)
* create macaron group for oauth2 urls
* prevent net/http in modules (other then oauth2)
* use a new data sessions oauth2 folder for storing the oauth2 session data
* add missing 2FA when this is enabled on the user
* add password option for OAuth2 user , for use with git over http and login to the GUI
* add tip for registering a GitHub OAuth application
* at startup of Gitea register all configured providers and also on adding/deleting of new providers
* custom handling of errors in oauth2 request init + show better tip
* add ExternalLoginUser model and migration script to add it to database
* link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed
* remove the linked external account from the user his settings
* if user is unknown we allow him to register a new account or link it to some existing account
* sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers)
* from gorilla/sessions docs:
"Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!"
(we're using gorilla/sessions for storing oauth2 sessions)
* use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
8 years ago
Denis Denisov
fd941db246
Protected branches system ( #339 )
...
* Protected branches system
* Moved default branch to branches section (`:org/:reponame/settings/branches`).
* Initial support Protected Branch.
- Admin does not restrict
- Owner not to limit
- To write permission restrictions
* reformat tmpl
* finished the UI and add/delete protected branch response
* remove unused comment
* indent all the template files and remove ru translations since we use crowdin
* fix the push bug
8 years ago
Willem van Dreumel
5f234ce2a5
add missing copyright header ( #992 )
8 years ago
Lunny Xiao
04fdeb9d8d
Make Xorm log configurable ( #174 )
...
* make xorm log configable
* bug fixed for other sub commands except web
* rebase and fix xorm log
* bug fix for TrimSpace
8 years ago
Ethan Koenig
be48b32e63
Unit tests for repo watching ( #963 )
8 years ago
Lunny Xiao
847527fd6d
Fix all the bugs in issues and pulls on dashboard ( #943 )
...
* fix all the bugs in issues and pulls on dashboard
* small fix and refactor
* add method getRepoIDs for IssueList
8 years ago
Ethan Koenig
140967f002
Unit tests for repo redirects ( #961 )
8 years ago
Lunny Xiao
7fd14bf7bd
optimization for team get repos ( #953 )
8 years ago
Lunny Xiao
46320f9630
refactor notificationsForUser since xorm In support slice of customerize type ( #956 )
8 years ago
Lunny Xiao
0642cb330c
Small opitimization for getUserTeams ( #954 )
...
* Small opitimization for getUserTeams
* more compact
8 years ago
Bo-Yi Wu
43c94d0a6c
test: Add testing for GetUserFork function ( #944 )
8 years ago
Bo-Yi Wu
a31f64d639
fix: 500 error on /explore/repos page. ( #946 )
8 years ago
Bo-Yi Wu
9d2b830275
refactor: small optimize for sql query ( #940 )
...
* refactor: small optimize for sql query
* fix: get owner name if Searcher is not nil or user star page.
8 years ago
Lunny Xiao
837d346090
fix some older Gogs upgrade to Gitea ( #929 )
8 years ago
Lunny Xiao
9c645b54dc
bug fixed on issues and pulls
8 years ago
Lunny Xiao
4cfde304df
bug fixed for my repository ( #933 )
8 years ago
Lunny Xiao
7a9a5c8a69
Fix assigned issues dashboard ( #920 )
...
* Fix assigned/created issues in dashboard. (#3560 )
* Fix assigned/created issues in dashboard.
* Use GetUserIssueStats for getting all Dashboard stats.
* Use gofmt to format the file properly.
* Replace &Issue{} with new(Issue).
* Check if user has access to given repository.
* Remove unnecessary filtering of issues.
* Return 404 error if invalid repository is given.
* Use correct number of issues in paginater.
* fix issues on dashboard
8 years ago
Lunny Xiao
3a91ac51a9
fix bug of multiple forks ( #928 )
8 years ago
Bo-Yi Wu
d67b278a0d
feat: Able to disable non-admin to create new organization ( #927 )
8 years ago
Bo-Yi Wu
23aba523b5
feat: support search bar on star tab of user profile. ( #917 )
...
* feat: support search bar on star tab of user profile.
* fix: update testing.
* fix: Using loadAttributes
* fix: remove empty line.
* remove LOWER
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
8 years ago
Lunny Xiao
7eb8daffa3
Use fingerprint to check instead content for public key ( #911 )
...
* use fingerprint to check instead content for public key
* add fingerprint field for ErrKeyAlreadyExist
8 years ago
Lunny Xiao
55ae78208e
Small optimization for getTeamIDs ( #919 )
...
* small optimization for getTeamIDs
* rename getOrgTeamIDs to getUserTeamIDs and remove orderby
8 years ago
Bo-Yi Wu
1ec6b1a258
fix: gofmt error. ( #918 )
8 years ago
Bo-Yi Wu
5cc275b1de
feat: add git version on admin panel. ( #921 )
8 years ago
Ethan Koenig
076f940f1f
Fix logging bug
...
Error logged everytime an assignee was removed
8 years ago
Lunny Xiao
d76f34ef51
small optimization for get issue labels
8 years ago
Andrew
3f67676059
Implement basic Open Graph support. ( #901 )
8 years ago
Lunny Xiao
8a0be5e9f0
Bug fixed for deleted label in issue comment ( #904 )
...
* bug fixed for deleted label in issue comment
* fix indent
8 years ago
Morgan Bazalgette
442145dbd3
Fix public activity showing private repos ( #892 )
...
* Fix public activity showing private repos (#811 )
Signed-off-by: Morgan Bazalgette <the@howl.moe>
* error check after setting is_private to true
* Add test for UpdateRepository w/ visibility change
8 years ago
Andrew
42835c7f82
Implement archive cleanup ( #885 )
...
* Implement archive cleanup
Fixes #769
Signed-off-by: Andrew <write@imaginarycode.com>
* Make sure to close the directory file
* Resolve issues noted by @strk
* edit cheatsheet app.ini [ci skip]
* oops [ci skip]
8 years ago
Lunny Xiao
cf0f451c37
Add delete branch track on pull request comments ( #888 )
...
* add delete branch track on pull request comments
* don't change vendor
8 years ago
Lunny Xiao
b6dd6210ea
bug fixed for issue count ( #881 )
8 years ago
Ethan Koenig
a6751cec04
Unit tests for issue_milestone ( #878 )
8 years ago
Ethan Koenig
13973348df
Gogs -> Gitea ( #877 )
8 years ago
Ethan Koenig
e6b4448ba3
Fix bug in Issue.GetIsRead ( #876 )
8 years ago
Ethan Koenig
181c8d9c99
Fix consistency check ( #866 )
8 years ago
Ethan Koenig
d2329e1c26
Use assert in legacy unit tests ( #867 )
8 years ago
Ethan Koenig
5fbab97373
Fix broken test fixture ( #859 )
8 years ago
Bo-Yi Wu
b13232f524
feat: support paginater on star tab of user profile. ( #845 )
8 years ago
Ethan Koenig
ceae143e78
Consistency checks for unit tests ( #853 )
8 years ago
Bo-Yi Wu
71d35dae8c
fix: wrong pages number which includes private repository count. ( #844 )
8 years ago
Ethan Koenig
438e1a7d46
Fix inconsistencies in unit test fixtures
8 years ago
Lunny Xiao
f35b20b042
track issue title changes ( #841 )
8 years ago
Ethan Koenig
027591a3a5
Redirects for renamed repos ( #807 )
...
* Redirects for renamed repos
* Remove unused phrase from locales
8 years ago
Bwko
bf647ce143
Check for manual merging of a pull request ( #719 )
...
When an open pull request got manually merged mark the pull request as
merged
8 years ago
Andrey Nering
7c3dc51655
Merge pull request #839 from ethantkoenig/fix/remove_org_repo
...
Fix bug in removeOrgRepo
8 years ago
Ethan Koenig
f82ea42679
Fix bug in removeOrgRepo
8 years ago
Ethan Koenig
5972aa9af3
Fix inconsistencies in test fixtures
8 years ago
Lunny Xiao
8a421b1fd7
Add units concept for modulable functions of a repository ( #742 )
...
* Add units concept for modulable functions of a repository
* remove unused comment codes & fix lints and tests
* remove unused comment codes
* use struct config instead of map
* fix lint
* rm wrong files
* fix tests
8 years ago
Ethan Koenig
d0960b8035
Move IssueUser code to separate file ( #836 )
...
Also add unit tests
8 years ago
Andrey Nering
d4035d1cb1
Merge pull request #830 from appleboy/patch-2001
...
refactor: set default order by recently star on start tab
8 years ago
Bo-Yi Wu
a90a215662
feat: Add search bar on user profile page. ( #787 )
8 years ago
Bo-Yi Wu
b6da658553
test: Add user mail testing. ( #833 )
8 years ago
Lunny Xiao
3e0525b47d
Track assignee for issue ( #808 )
...
* track assignee for issue
* fix lint
* use getUserByID instead Get
8 years ago
Ethan Koenig
68bdaf0a6b
Drop redundant columns from issue_user table ( #638 )
8 years ago
Bo-Yi Wu
e2de16065a
refactor: set default order by recently star.
8 years ago
Gabriel Jackson
bf6f61cc69
Cleanup log messaging
...
This change corrects a few logging issues:
* Standardized formatting errors with '%v'.
* Standardized failure warning word usage.
* Corrected an instance of using the standard log library when
the gitea log library should be used instead.
8 years ago
Bo-Yi Wu
d7d094bd8a
fix: ignore email notifications if user is not active. ( #820 )
8 years ago
Anton Skorokhod
79ab69fe30
Add X-GitHub-* headers for webhook to get clubhouse.io integration working ( #809 )
8 years ago
Lunny Xiao
081485ecfd
add milestone changed traker on issue view ( #804 )
8 years ago
Ethan Koenig
10644d6dd7
Bug fixes and unit tests for models/issue_label ( #802 )
8 years ago
Ethan Koenig
0a02fb3c4f
Windows compatibility for unit tests ( #800 )
8 years ago
Ethan Koenig
2eb15f4a61
Unit tests and remove unused functions in models/notification ( #796 )
...
* Unit tests and remove unused functions in models/notification
* Read -> Unread
8 years ago
Lunny Xiao
f94869d2d1
Track labels changed on issue view & resolved #542 ( #788 )
...
* track labels changed on issue view & resolved #542
* add missing head comment & sort & fix refresh
8 years ago
Ethan Koenig
7765593018
Better settings for unit tests ( #795 )
8 years ago
Thomas Boerger
78535fb08e
Allow custom public files ( #782 )
...
* Allow custom public files
* Gofmt code, lots of places not related to this pr
8 years ago
Andrey Nering
cc31a21192
Merge pull request #781 from andreynering/notifications-step-5
...
Notifications step 5
8 years ago
Andrey Nering
5348e8b71a
Fix color: closed PR was showing as purple instead of red
8 years ago
Andrey Nering
31c717f579
Merge pull request #777 from ethantkoenig/tests/wiki
...
Unit tests for models/wiki
8 years ago
Ethan Koenig
bb76285762
Unit tests for models/wiki
8 years ago
Ethan Koenig
a2412492da
Unit tests and bug fix for models/org
8 years ago
Lunny Xiao
bb5a6b7a07
fix xorm NewSession uncorrected usages ( #774 )
8 years ago
Bo-Yi Wu
25663b5816
refactor: Remove unnecessary type conversions ( #772 )
8 years ago
Ethan Koenig
da1b6164fe
Fix FIXME and remove superfluous queries in models/org ( #749 )
8 years ago
Bo-Yi Wu
691fbdf1d3
fix: delete attachment after remove comment.
8 years ago
Ethan Koenig
0934d1b1ea
Bug fixes and unit tests for models/webhook ( #751 )
8 years ago
Ethan Koenig
a6832c234d
Unit tests for models/star ( #752 )
8 years ago
Lunny Xiao
8c2381103a
bug fixed issues 500 resolved #754 ( #756 )
8 years ago
Ethan Koenig
8093b3372e
Less boilerplate in models/ unit tests ( #725 )
8 years ago
Ethan Koenig
833f8b94c2
Search bar for issues/pulls ( #530 )
8 years ago
Andrey Nering
521d429b58
Fix link of some repos on stars page ( #737 )
...
Link was wrong the repo was of another owner
8 years ago
Bwko
74ed6dc3ad
Add option to app.ini to enable local import paths ( #724 )
8 years ago
Bwko
1257d43e14
Add a reserved path check to the wiki ( #720 )
8 years ago
Lunny Xiao
f8c2903484
fixed bugs on Wiki and resolved #667 ( #674 )
8 years ago
Philip Couling
1610b9f547
Spun attachments into seperate go file ( #701 )
...
Moved attachments into seperate go file
8 years ago
Ethan Koenig
74bbec3bf9
Fix permission bugs in team API ( #647 )
8 years ago
Ethan Koenig
fcf02e4961
API Endpoints for organization members ( #645 )
8 years ago
Matthias Loibl
d1006150fb
Refactor process package and introduce ProcessManager{} with tests ( #75 )
...
* Add a process.Manager singleton with process.GetManager()
* Use process.GetManager everywhere
* Fix godoc comments for process module
* Increment process counter id after locking the mutex
8 years ago
Andrew
6dd096b7f0
Two factor authentication support ( #630 )
...
* Initial commit for 2FA support
Signed-off-by: Andrew <write@imaginarycode.com>
* Add vendored files
* Add missing depends
* A few clean ups
* Added improvements, proper encryption
* Better encryption key
* Simplify "key" generation
* Make 2FA enrollment page more robust
* Fix typo
* Rename twofa/2FA to TwoFactor
* UNIQUE INDEX -> UNIQUE
8 years ago
Philip Couling
64375d875b
Attach to release ( #673 )
...
* Moved attachaments POST url from /issues/attachments to /attachments
* Implemented attachment upload on release page
* Implemented downloading attachments on the release page
* Added zip and gzip files to default allowed attachments
* Implemented uploading attachments on edit release
* Renamed UploadIssueAttachment to UploadAttachment
8 years ago
btrepp
302fa42980
Removes reliance on server specific SQL ( #393 )
...
Breaks the retrieval of repositories into two queries
This fetches the paged ids in one go, then the
actual repository information in a second query
Some databases do not support SELECT with *
when group by is used.
8 years ago
Ethan Koenig
a6f5efa0bb
Fix ambiguity bug in getCommentsByRepoIDSince ( #665 )
8 years ago
Ethan Koenig
27fcf8d30a
Bug fixes for webhook API ( #650 )
8 years ago
Lunny Xiao
87ad4961f6
bug fixed for update repository ( #664 )
8 years ago
Andrey Nering
769e0a3ea6
Notifications: mark as read/unread and pin ( #629 )
...
* Use relative URLs
* Notifications - Mark as read/unread
* Feature of pinning a notification
* On view issue, do not mark as read a pinned notification
8 years ago
Bo-Yi Wu
cbf2a967c5
refactor: Add new deleteOrg func. ( #633 )
8 years ago
Ethan Koenig
b316b2e740
Unit tests for models/admin
8 years ago
Ethan Koenig
973282dae2
Better coverage in pull_test ( #615 )
8 years ago
Ethan Koenig
862948ab88
Better coverage and TODOs for update_test ( #616 )
8 years ago
Ethan Koenig
4b23e6a694
Unit tests for models/action ( #619 )
8 years ago
derSuessmann
51d578ff33
Add Keep email private (see issue #571 ). ( #571 )
...
- Add site-wide option DEFAULT_KEEP_EMAIL_PRIVATE.
- Add the new option to the install and admin/config pages.
- Add the new option to app.ini in the service section.
- Add the new option to the settings struct.
- Add English text strings to i18n.
- Add field KeepEmailPrivate to user struct.
- Add field KeepEmailPrivate to user form.
- Add option to UI.
- Add using noreply email address if user has "Keep Email Private".
An email address <LowerName>@<NO_REPLY_ADDRESS> is now used in commit
messages (and hopefully all other git log relevant places). The
change relies on the fact that git commands should use
user.NetGitSig().
- Add hiding of email address in UI, if user has set "Keep Email Private".
- Add condition to show email address only on explore/users and user
pages, if user has not set "Keep Email Private".
- Add noreply email in API if set "Keep Email Private".
- Add a new service setting NO_REPLY_ADDRESS. The value of this
setting is used as the domain part for the user's email address in
git log, iff he decides to keep his email address private.
If the user decides to keep his email address private and this
option is not set 'noreply.example.org' is used, which no MTA
should send email to.
Add NO_REPLY_ADDRESS to conf/app.ini.
8 years ago
Ethan Koenig
6072b03291
Unit tests for models/access.go ( #606 )
8 years ago
Ethan Koenig
8422ab542c
API endpoint for subscribers ( #598 )
8 years ago
Andrey Nering
03b45284e1
Merge pull request #555 from ethantkoenig/tests/pull
...
Unit tests for models/pull.go
8 years ago