Lunny Xiao
a619bd08b0
Add more webhooks support and refactor webhook templates directory ( #3929 )
* add more webhook support
* move hooks templates to standalone dir and add more webhooks ui
* fix tests
* update vendor checksum
* add more webhook support
* move hooks templates to standalone dir and add more webhooks ui
* fix tests
* update vendor checksum
* update vendor
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* load attributes when created release
* update comparsion doc
7 years ago
Bwko
4a72b5b500
Set default branchname on first push ( #3715 )
7 years ago
Bo-Yi Wu
b491d2e450
refactor: reduce sql query in retrieveFeeds ( #3547 )
7 years ago
Lunny Xiao
a5c212cd1e
Refactor struct's time to remove unnecessary memory usage ( #3142 )
* refactor struct's time to remove unnecessary memory usage
* use AsTimePtr simple code
* fix tests
* fix time compare
* fix template on gpg
* use AddDuration instead of Add
7 years ago
Ethan Koenig
d6b1f1fec3
Fix ref parsing in commit messages ( #3067 )
7 years ago
cstyles
711c5f1ee6
Use RelAvatarLink() in GetActAvatar() ( #2800 )
7 years ago
Lunny Xiao
c2b107fcb0
Use AfterLoad instead of AfterSet on Structs ( #2628 )
* use AfterLoad instead of AfterSet on Structs
* fix the comments on AfterLoad
* fix the comments on action AfterLoad
7 years ago
David Schneiderbauer
fab64e9241
Complete push webhooks ( #2530 )
* implemented missing 'delete' push webhooks
moreover created ActionDeleteBranch and ActionDeleteTag
* add CommitRepoAction tests for tag/branch creation/deletion
* fixed error where push webhook not called if is new branch or tag
removed unnecessary code
* moved prepare unit test environment into separate method to be used across unit tests
* add missing if clause in pushUpdate
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
7 years ago
Ethan Koenig
fb9d616fb3
Use named ActionType constants in template helper ( #2545 )
7 years ago
Lunny Xiao
d00b7dab75
Use created & updated instead BeforeInsert & BeforeUpdate ( #2482 )
* use created & updated instead BeforeInsert & BeforeUpdate
* fix vendor checksum
* only show generated SQL when development mode
* remove extra update column updated_unix
* remove trace config
7 years ago
Lunny Xiao
48312b2c58
fix duplicated feed ( #2370 )
7 years ago
Lunny Xiao
622e693cc4
Add more test for login links and fix a bug on action retrieve ( #2361 )
* add more test for login links and fix a bug on action retrieve
7 years ago
Ethan Koenig
a2fc1ad0b5
Fix SQL condition bug in GetFeeds(..) ( #2360 )
7 years ago
Bwko
b26bcf9b11
Add collaborative repositories to the dashboard ( #2205 )
* Add collaborative repositories to the dashboard
Remove some unused code from the Dashboard func
* fix some bug and some refactor
* fix tests
7 years ago
Lauris BH
009d54b145
Ignore invalid issue numbers in commit messages. Fixes #2022 ( #2150 )
8 years ago
Jonas Franz
4ae5b416b7
Fix "Dashboard shows deleted comments" ( #1995 )
8 years ago
Ethan Koenig
6fa177ef4c
Fix bug in Action.loadRepo() ( #1959 )
8 years ago
Andrey Nering
7bb3cec80d
Merge pull request #1829 from ethantkoenig/no_branches
Commitless repos should be bare
8 years ago
Ethan Koenig
57c91032f3
Fix user profile activity feed ( #1848 )
* Fix user profile activity feed
* gofmt, and avoid overlapping database connections
8 years ago
Ethan Koenig
74f13ec07b
Commitless repos should be bare
8 years ago
Ethan Koenig
ab3b136cce
Fix invalid reference in feeds template ( #1820 )
* Fix invalid reference in feeds template
* Comment for GetActAvatar
* Add integration test
8 years ago
Ethan Koenig
66ee05fd53
Fix activity feed ( #1779 )
* Fix activity feed
Preserve actions after user/repo name change
* Add missing comment
* Fix migration, and remove fields completely
* Tests
8 years ago
agrn
ca68b6b276
Fix "Error: No issue number specified" when pushing ( #1393 )
* Fix "Error: No issue number specified" when pushing
* update pr
8 years ago
Lunny Xiao
6e4413b23d
fix wrong log when push to a new branch ( #1220 )
8 years ago
Ethan Koenig
6c8f6ede64
Fix FIXME and remove superfluous queries in models/org ( #749 )
8 years ago
Andrey Nering
57b5bd07c9
Create missing database indexes ( #596 )
8 years ago
Ethan Koenig
feb1506600
Fix typos in models/ ( #576 )
8 years ago
Lunny Xiao
5e531a7e64
fix tag webhook 404 error ( #420 )
8 years ago
Lunny Xiao
301dcd4876
update code.gitea.io/git ( #450 )
8 years ago
Lunny Xiao
4f165ac458
bug fixed branch name for pushupdate ( #380 )
8 years ago
Ethan Koenig
2872b66e89
Bug fixes for repo permissions in API
Also move duplicated code into repo.APIFormat(..)
8 years ago
Kim "BKC" Carlbäcker
6fb9644a74
CreateBranch-hook has shasum. Use the full ref for fetching shasum
8 years ago
Kim "BKC" Carlbäcker
49af1343ab
Tag-webhooks are useless without shasums
8 years ago
Lunny Xiao
b5a7692d63
Golint fixed for modules/setting ( #262 )
* golint fixed for modules/setting
* typo fixed and renamed UNIXSOCKET to UnixSocket
8 years ago
Sandro Santilli
70a8e6cb35
Lint action.go
8 years ago
Sandro Santilli
827c85ad85
Fix import path of go-sdk ( #141 )
From code.gitea.io/go-sdk/gitea
To code.gitea.io/sdk/gitea
8 years ago
Thibault Meyer
b747797b29
Merge remote-tracking branch 'upstream/master' into feature/rewrite-xorm-queries
# Conflicts:
# models/git_diff.go
# models/issue.go
# models/org.go
# models/pull.go
# models/repo.go
8 years ago
Thibault Meyer
5d29fda874
Rewrite XORM queries
8 years ago
Sandro Santilli
cb1b3cc148
Update import paths from github.com/go-gitea to code.gitea.io ( #135 )
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis
See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
8 years ago
Sandro Santilli
8212aa70ba
Use MixedCase constant names
See https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
8 years ago
Thomas Boerger
a2f2fa9326
Replaced go-gogs-client with go-sdk imports
8 years ago
Sandro Santilli
3c9693defb
Replace gogits/git-module dependency with go-gitea/git ( #94 )
* Replace gogits/git-module dependency with go-gitea/git
Fixes #92
* Remove git alias for git module import (not needed)
8 years ago
Rémy Boulanouar
9712d5ee89
Change import reference to match gitea instead of gogs ( #37 )
8 years ago
Unknwon
cc9a66db51
General code quality improvement
8 years ago
Unknwon
38c02e6ece
#2246 add HTMLURL to webhook type
- Fill Milestone and Assignee field when available in webhook payload
8 years ago
Unknwon
e3b20a093b
models/repo_editor: improve code quality
8 years ago
Unknwon
559cbcdc6f
Fix empty repository panic on send test webhook
8 years ago
Unknwon
6e37e3f3d7
Replace convert.To with APIFormat calls
8 years ago
Unknwon
f60f4fc56e
#2246 fully support of webhooks for pull request
8 years ago
lstahlman
3bc40ec99b
Add committer information to API and Webhooks. Also fixes #3271 ( #3414 )
8 years ago