Commit Graph

948 Commits (df339ad8b0c4f8858a53a4890ded97a1e3208b13)

Author SHA1 Message Date
Unknwon a329bbc215 new org dashboard issues
Unknwon f808df5a7b new user dahsboard issues
Unknwon 260301bf2e Removing deploy key does not remove key
Unknwon 87152f89ba fix release created timezone issue
Yixin Hao 5f25553b0d Modify minimumKeySize of RSA to 1024 for old keys.
Unknwon aa65761d81 new commits table
Unknwon 062adbed8a add confirmation to delete ssh key
Unknwon 9b42f53aa8 more on
Unknwon 371572cf5f allow edit issue and comment
Unknwon f114f78743 fix timezone!
Unknwon 6c2536b89c fix timezone
Unknwon a5b09b30d0 print time to debug
Unknwon b846f195c1 work
Unknwon 1453e91f41 minor fix on API response
Girish Ramakrishnan 24d7a86a8d Set IsAdmin using LDAP
The IsAdmin flag is set based on whether the admin filter
returned any result. The admin filter is applied with the user dn
as the search root.

In the future, we should update IsAdmin as well on each login.
Alternately, we can have a periodic sync operation.
Unknwon 03b85b73af token recent activity
Unknwon 47ac579f09 only assign auto-admin when sign up by web
Unknwon 4c7b6414eb new access token UI
Unknwon 6235bd1fe9 work on and fix a LDAP crash
Unknwon b1696665bd make cron task configurable
Unknwon 407385db7e work on
Unknwon 55ccb00a47 Merge branch 'develop' of https://github.com/SergioBenitez/gogs into develop
# Conflicts:
#	modules/bindata/bindata.go
无闻 ce8864c69a Merge pull request from donbowman/master
Fix race condition on ssh key delete, and revert re-revert of hard line break
Don Bowman 1d52793faf remove empty line as per https://github.com/gogits/gogs/pull/1475
Unknwon a52324a5f9 able sort issues
Unknwon a24141ec9c more on
Unknwon 30b428bf0e : 500 when visit a issue with issue/comments of deleted user
Unknwon e4d6b5d488 Creates hooks directory when init update hook
Unknwon cec38f2a8c able edit issue labels/milestone/assignee
Unknwon 2cc9bc8969 delete attachments when delete repo
Unknwon 817b48ed1e Show owner/poster tags of comments and fix
Unknwon 1fb53067f4 finish close/reopen issue
Unknwon 133b19d0c5 finish view comments on issue page
Sergio Benitez 7d84d4a8f0 Significantly enhanced LDAP support in Gogs.
Don Bowman ab0247b4dc race condition on keydelete
Unknwon ab2d0b3b44 add comment form UI
Unknwon b4c0b7b98b finish view issue without comments and ops
Unknwon cafde1287e delete avatar when del user
Unknwon 34f6cbfc2a finish attachments when create issue
Unknwon 1ce4543a94 Merge branch 'develop' of github.com:gogits/gogs into feature/pull_request2
Unknwon 64985c7faa fix template error
无闻 9c0c16bb5a Merge pull request from jamesa/hide-gravatar-tooltip
Hide avatar tooltips unless you're looking at your own profile
James Anderson e5146155a0 Resize avatars to the same size they are displayed
Unknwon cbc7b7132f finish new issue action and mentions
Unknwon 887bc1b594 Merge branch 'develop' of github.com:gogits/gogs into feature/pull_request2
# Conflicts:
#	modules/bindata/bindata.go
#	public/css/gogs.min.css
Unknwon 2aea247208 minor fix on
Unknwon 884bc4ffd8 rename functions
Unknwon 75aff60c90 finish create issue with milestone and assignee
Unknwon 09a1b2a1f5 finish create issue with milestone
Unknwon 922f3f3062 finish create issue with labels
Unknwon 17de3ab0a3 add migrate from issue.label_ids to issue_label
Unknwon a79586cc54 Merge branch 'develop' of github.com:gogits/gogs into feature/pull_request2
# Conflicts:
#	modules/bindata/bindata.go
#	public/css/gogs.min.css
#	templates/repo/header.tmpl
Unknwon 7372042441 list view: issue, label, milestone
Unknwon 590c464c56 UI: create issue with title and content
Unknwon 68b9d78386 remove sync.Pool and support go1.2 again
Unknwon 4b43ffc96c Generate random avatar based on e-mail when disable Gravatar
Unknwon dea3a8c6a4 WIP: create PR - choose branch
Unknwon e3bdfd51ff better fork permission check
Unknwon 9db4acc62e improve fork process
Unknwon 45adb9b7a3 fix
Unknwon b1f08d3218 more on
Unknwon d922b7e504 set first user to be admin
...not just ID=1
Unknwon 02877f1a69 remove useless code
Unknwon 9d414d4dd9 remove Index field of milestone
Unknwon 0acf209e2a fix UNIQUE
Unknwon 39a3b768bc : Add Deployment Key Support
Unknwon 34795770c3 fix issue stats with milestone filter
Unknwon 81d01aa308 fix mysql parsetime arg
Unknwon 2c507667bf Merge branch 'develop' of github.com:gogits/gogs into feature/milestone
# Conflicts:
#	gogs.go
#	models/issue.go
#	templates/.VERSION
Unknwon 0705f55ce0 finish new milestone page
Unknwon 74bd6b939c milestone: edit
Unknwon b9527cd1bf force downcase e-mail
Unknwon 3e4cdccf6b milestone: create page
Unknwon ce4dcf1e83 fix naming
Unknwon e50982f5ec allow anonymous SSH clone
Unknwon 9311a9858a milestone: pagination
Unknwon 04458d49a0 milestone: list view
Unknwon cbb78b6a63 better wording
Unknwon c44e1c7ca9 fix
Unknwon 42a2c5ca54 use new connstr format for postgres
Vladimir Vissoultchev 4917d29c12 Partial impl of git diff encoding
Vladimir Vissoultchev fac4e27882 Allow spaces in file/dir names on parsing git diff
Unknwon f83519b452 report error when migration auth failed
Unknwon 686dd59916 fix with migration and update locale
Unknwon 6f8e388b55 fix
- prevent create reop on existed path
Unknwon fa298a2c30 : Realtime webhooks
Unknwon 2b1442f3df fix sql
Unknwon 2e7b38db9f fix paging links and issue count
Unknwon c0883a51a0 mirror fix on
无闻 b838e94980 Merge pull request from vitalvas/develop
Add function in cron to autofix counters in repository
Unknwon 1ba837a055 new issue and label page
Unknwon 54b58e988d Merge branch 'develop' of github.com:gogits/gogs into feature/page_issues
Unknwon dc4aab9925 UI: CURD labels
- fix update lable break connection with repository
Unknwon ac95f6d50f UI: basic label list
- create new label
Unknwon 04e596f984 : nil pointer when add repo to team
Unknwon 86dbda0b42 UI: basci issue list without filters
- fix isRead check
- fix paging
Unknwon d6cdd49c16 fixes on
Unknwon 663c28beb6 : Removing user from collaboration removes repositiory
Unknwon c6531c4882 check master as default branch when migrate
Lunny Xiao f92bdf875b Merge pull request from nice-software/wip/pam
Add PAM authentication
Paolo Borelli 182003aa41 Add PAM authentication
Lunny Xiao 673a76d638 Merge pull request from mephux/hotfix/type-fix-ValidatePassword
Hotfix/type fix validate password
William Roush 8363c9dd0f Fixes issue with LDAP inserting users with blank names.
Tony Narlock 6a0fec77ea Allow an SSHDomain configuration option. Defaults to Domain, preserves legacy behavior
Dustin Willis Webber e57594dc31 typo fix for comment
Dustin Willis Webber f78046fc3b typo fix
Unknwon 9fb2d49b93 issue ID constraint failed
Unknwon 698b9e2acc Clearer error message for illegal characters
Unknwon 99b774e741 auto fix locale file name change
Unknwon ab730a91f0 mirror info not updated when transfer mirro repo
Unknwon aae74c793a add config option [service] DISABLE_MINIMUM_KEY_SIZE_CHECK
Unknwon 9c67a19332 change to fake local email account
Unknwon 6f81c05dde Team member access lost when adding repository collaborator
- fix bug when add a repo to team, all other team members gets access as well
Unknwon 484175f702 lower_name of LDAP user not assigned
Unknwon 2bb982dada : Remove footer ads/branding from default template
Vitaliy Vasilenko 20a8d651f3 add func to autofix couters in repository
Unknwon 7cf0564587 update gopmfile
Unknwon e6cf83b8c0 Put default config into binary
Unknwon 82f7a01ded : X-Gogs-Event header is empty
Unknwon 466facc009 : Deleting users should remove them from collaborator lists
- fix delete user but repository watches are not decreased
Unknwon fc6db829b2 fix read access team visibility of private repo
Unknwon 588f3215c6 : dashboard no longer accessible when repo is missing
Unknwon 80b23854bc : Bad permissions on authorized_keys after rewrite
Tomcat 2bfe2ddb6d Add mysql unix socket support.
If the host setting looks like a unix socket (leading by char '/'), will use unix(host) as connection string
Unknwon b72e75e522 : OFFLINE_MODE Still Uses Gravatar
Unknwon b668fc7aad : Update hooks is missing for forked repository
Unknwon 0720d3988f : GetRepoLink already contains AppSubUrl
Unknwon 6b70a0c0d9 : legacy code can have duplicated IDs for same repository
Unknwon 4aafeace23 fix HTTP/HTTPS push update func call panic and `http: multiple response.WriteHeader calls`
Unknwon 18c0697329 routers/repo/setting.go: fix LDAP cannot validate password
Unknwon 63a73b43b4 models/migrations: fix update error
Unknwon a6a2f59d1d Merge branch 'access' of github.com:gogits/gogs into dev
Unknwon d446be9f5f models: mirror fix on
无闻 8d17ff8ce7 Merge pull request from phsmit/access_rewriteserv
Rewrite/simplify gogs serve
Unknwon b0b11fd7b1 Merge branch 'access' of github.com:gogits/gogs into dev
Unknwon f44204e944 REAMDE: update
Unknwon 473e265727 models: done testing on new access system
Unknwon 8896c82d34 models: fix issue with transfer repository
README: fix typo
Raphael Randschau 1f61340fa3 Properly calculate the number of open issues per label
无闻 cd8b43d984 Merge pull request from Lafriks/dev
Get username, name, surname and e-mail from LDAP server
Peter Smit 556881964f Merge branch 'access' into access_rewriteserv
Unknwon ee68a826a5 v4 migration, merge 'dev', clean code and mirror fix
Unknwon e90f014e4a Merge branch 'access' of github.com:gogits/gogs into access
Unknwon 10e4b5b6c6 Merge branch 'access' of github.com:gogits/gogs into access
Unknwon 7ccab9cd09 Merge branch 'dev' of github.com:gogits/gogs into access
Conflicts:
	gogs.go
	models/models.go
	models/user.go
	templates/.VERSION
	templates/org/home.tmpl
Unknwon 04164eada3 models: able to rename user with diff letter cases
- templates/org: mirror fix on name output
- routers: add missing error check
Unknwon 3fcc39c26b Merge branch 'dev' of github.com:gogits/gogs into dev
Unknwon 1654e9ecab templates/user/settings/emial.tmpl: little fix on UI
- routers/user: little code format
- conf/locale: update French locale
Raphael Randschau 4f567edc6e Fix
Not sure why, but xorm ignores the num_issues and num_closed_issues
columns when updating, even though the values changed.

Listing them explicitly fixes the issue with the wrong issue counts
Peter Smit e6fc58a744 Remove GoGet option from repository and handle it with ?go-get=1 instead
The normal go get protocol is to show the go-import meta tag when ?go-get=1 is appended to the url. This commit implements that behaviour and cleans the go-get option from the repository settings page.
Peter Smit aa68e86206 Rewrite/simplify gogs serve
Peter Smit b6519f78c7 Remove collaborators when removing and transferring repository
Unknwon 685ed1f807 models: fix XORM API break
cmd/web.go: check version after load config
Peter Smit 0009a1d2b1 Fix access for team mode update
Peter Smit ddf7014b9b Rewrite of access migration
The old migration had a few issues:
 - It left old column names around
 - It did not give the right access levels for owners and admins

Also, this includes a migration that fixes the authorization of owner teams, which was previously ORG_ADMIN (instead of ORG_OWNER)
Unknwon 25f5a8d798 some fixes, but not done yet!
Unknwon 6b7d35eade fix mirror issues uncaught
Unknwon 6d0f3a07d4 code fix caution: undertest
Unknwon b99c4baab2 models/migrations: finish accessRefactor
无闻 7fda0cdb93 Merge pull request from phsmit/access_refactor
Access refactor
Unknwon 0b3722c359 models/migrations: fix little logic error
Unknwon 67a9416ae5 templates/user/auth/signin.tmpl: hide sign up prompt when registration is disabled
Peter Smit 6c1ee384f1 Merge remote-tracking branch 'mine/access_refactor' into access_refactor
Conflicts:
	cmd/serve.go
	models/access.go
	models/migrations/migrations.go
	models/org.go
	models/repo.go
	models/user.go
	modules/middleware/org.go
	modules/middleware/repo.go
	routers/api/v1/repo.go
	routers/org/teams.go
	routers/repo/http.go
	routers/user/home.go
Peter Smit 0a4cda0dd4 Refactoring of the Access Table
This commit does a lot of the work of refactoring the access table in a table with id's instead of strings.

The result does compile, but has not been tested. It may eat your kittens.
Peter Smit 2804784df9 Some comments and improvements for migrations
Unknwon 876a856759 models/migartions: make Migration as interface and use session
Unknwon 7e7160eefd first pass work on migration
Unknwon c5c467a9cd Merge branch 'dev' of github.com:gogits/gogs into access
Unknwon c7a042ef36 Merge branch 'access' of github.com:gogits/gogs into access
无闻 e805fdb29c Merge pull request from phsmit/newcollaboration
Collaboration
Unknwon d02e45f985 better naming on
Unknwon 485ea6f14f models: make code change for session issue with SQLite3
Unknwon 6a23252edc able to allow insecure certification of webhook for
Unknwon bad533a219 models/repo.go: add update hook when migrate for
Peter Smit 0d158e569b Change constants to UPPERCASE_WITH_UNDERSCORE style
Peter Smit aa35be975f Fix
无闻 6ed96b7a20 Merge pull request from TonyTsangHK/dev
Link to previous commited source file (diff.view_file button) instead of returning 404 for deleted files.
Unknwon f15fa9167a cmd: code fix for
- routers/admin: add rewrite update hook operation
- conf/locale: update locale file due to ini behavior changes
- cmd/cert_stub.go: remove useless code
- cmd/fix.go: no longer need fix command(at least now)
无闻 cd0ee35b3f Merge pull request from phsmit/conf_on_cli
Add option to provide configuration file on command line
Lauris BH 00653e52ee Get username, name, surname and e-mail from LDAP server
Unknwon ba77a3b0b4 routers/repo/http.go: allow HTTP push/pull by token for
无闻 19525abfc4 Merge pull request from compressed/token_http
allow http push by token - 
Unknwon 2a2596fe61 able to disable SSH for
Unknwon 5a99e9a37b models/action.go: add action reopen for
- models/issue.go: format comment type names
Unknwon afccd0a3ee models/action.go: mirror fix on
- modules/base/markdown.go: fix issue link issue
- routers/repo/view.go: remove useless code
Peter Smit 4e79adf6b5 Refactoring of the Access Table
This commit does a lot of the work of refactoring the access table in a table with id's instead of strings.

The result does compile, but has not been tested. It may eat your kittens.
Tony Tsang fc6d80d619 Link to previous commited source file (diff.view_file button) instead of returning 404 for deleted files.
Peter Smit 1ab09e4f1b Add option to provide configuration file on command line
Peter Smit 03af37554e Merge branch 'dev' into newcollaboration
无闻 02c5bade0f Merge pull request from EtienneBruines/commit_reference
Referencing issues from commit messages is now possible.
Unknwon f706102890 models: sanitize user full name when update settings
Peter Smit fd1df86c44 Fix dashboard issue after collaboration migration
Peter Smit bef38d9d3f Fix collaboration migration code
Unknwon 4de0b19cec models: mirro code fix for
无闻 902f19f70b Merge pull request from phsmit/fix_819
Fix  by fetching the repository from db before updating
Etienne Bruines 5c4b85c029 Referencing issues from commit messages is now possible.
Code-wise: the fixing-part of the code now doesn't reference the issue any more, because this is done by the referencing-part of the code, which is called just before.

Fixes , , .
Unknwon 0a2068d7fb models: code fix on
无闻 cd6376f093 Merge pull request from fzerorubigd/master
add a function to rewrite all public keys on admin request
Unknwon b293b6eaa6 cmd: CMD option for port number of `gogs web` to prevent first time run conflict
- routers: use new binding convention to simplify code
- templates: able to set HTTP port number in install page
Unknwon ee6786216a modules/base: clean code with