Commit Graph

823 Commits

Author SHA1 Message Date
hang a4ae6c7d65 banches slice 2022-04-25 11:35:41 +08:00
yystopf 364a2c1366 fix: tag count error 2022-04-07 18:11:42 +08:00
yystopf 88b3eafe77 fix: wiki repo is not closed 2022-04-02 09:39:45 +08:00
yystopf 0c2be1c244 fix: gitrepo need defer closed 2022-03-11 09:39:26 +08:00
yystopf 67a6b37966 fix: get tag use tagCount action 2022-03-10 17:27:26 +08:00
yystopf 60b3497005 fix: simple content use blackfriday 2022-02-10 15:37:44 +08:00
hang cbf43fea5d fix:create webhook 2022-01-12 15:27:47 +08:00
hang 1e85e2511c add: branch name set 2022-01-07 14:47:56 +08:00
hang 894c765608 add diff of commit 2021-12-31 15:25:43 +08:00
hang 0dddf30c1c fix: add content for the src/commit/* 2021-12-29 16:05:41 +08:00
hang 2dace145f7 add:branch for the commit page 2021-12-29 09:55:52 +08:00
yystopf db331d40d4 Merge pull request '添加接口:pulls/indext/files' (#41) from wonderful/gitea-1156:develop into develop 2021-12-28 16:15:22 +08:00
hang 681d9724cd add: pulls/index/files 2021-12-28 16:11:24 +08:00
yystopf 5384e2fdd1 Merge pull request '给content 添加latest_commit 字段' (#40) from wonderful/gitea-1156:develop into develop 2021-12-28 15:04:28 +08:00
hang 6f0748a71c add latest_commit for contents 2021-12-28 15:00:29 +08:00
yystopf 5fafa1c529 fix: compare return follow old version 2021-12-23 10:07:19 +08:00
yystopf d26561512f fix: compare api error 2021-12-20 11:48:51 +08:00
hang 838a992730 add:compare/* 2021-12-20 11:34:04 +08:00
hang 4a55172452 fix: edit user 2021-12-15 16:21:39 +08:00
hang dac17ab26c API fix:modify org name 2021-12-09 15:04:45 +08:00
hang 876a08fe06 add:file_commit 2021-12-06 13:56:39 +08:00
hang f2238e4fcd add:count 2021-12-03 13:40:13 +08:00
hang ba6eebdd42 add:contributors 2021-12-02 10:56:54 +08:00
hang 73c2a16921 fix:heatmap 2021-11-26 11:41:47 +08:00
hang 74f827c430 add:/src/commit/* 2021-11-25 16:06:21 +08:00
hang 860faebbd9 add:/compare/* 2021-11-25 11:03:10 +08:00
hang 05a30b4a41 add:modif and add five api 2021-11-24 15:28:01 +08:00
hang bd1c13569c add:/releases/latest 2021-11-24 09:41:33 +08:00
hang ad65d78976 fix:/org 2021-11-23 17:02:55 +08:00
hang 3919b05285 add:api /{repo}/find 2021-11-23 15:20:13 +08:00
hang 448848d02c add:api /activity/develop 2021-11-23 10:47:00 +08:00
hang a02afaf830 add:API /activity/project 2021-11-23 10:26:04 +08:00
hang a60ff19252 add:API /activity 2021-11-23 10:00:04 +08:00
hang 27b4478da0 add:hooktasks 2021-11-22 15:33:54 +08:00
hang b3399ea04d add:branch_tag_count 2021-11-22 09:49:23 +08:00
hang 3e44c82aea fix: add count of commit and changedfiles of the pull 2021-11-19 17:03:54 +08:00
hang 498cae0562 fix:tags 2021-11-18 16:20:19 +08:00
hang b6f5985693 add:Contents of READMD.md of the dir 2021-11-18 15:06:04 +08:00
hang 6aeadbdb7d add:Content of the README.md of the repo 2021-11-18 10:51:07 +08:00
hang 537056b48a add: branches group and sort 2021-11-17 17:00:46 +08:00
hang 9c200b91ad add:GetAllCommitsSliceByTime 2021-11-17 14:47:45 +08:00
hang 4920cd6040 add:Delete Wiki 2021-11-17 10:25:29 +08:00
hang 37b73aa99b add:EditWiki 2021-11-17 10:03:29 +08:00
hang 653eb66ff5 add:GetWiki 2021-11-16 18:08:31 +08:00
hang 44cfd79573 add:fix CreateWiki 2021-11-16 15:22:12 +08:00
hang 75627d0ceb add: CreaeWiki 2021-11-16 15:05:26 +08:00
hang 4884fe093f add: wikiPages 2021-11-16 11:13:39 +08:00
zeripath ef12b8de80
Ensure that restricted users can access repos for which they are members (#17460) (#17464)
Backport #17460

There is a small bug in the way that repo access is checked in
repoAssignment: Accessibility is checked by checking if the user has a
marked access to the repository instead of checking if the user has any
team granted access.

This PR changes this permissions check to use HasAccess() which does the
correct test. There is also a fix in the release api ListReleases where
it should return draft releases if the user is a member of a team with
write access to the releases.

The PR also adds a testcase.

Signed-off-by: Andrew Thornton <art27@cantab.net>
2021-10-28 11:33:18 +08:00
Norwin c927ebd119
API: don't allow merged PRs to be reopened (#17271) 2021-10-08 13:54:26 -04:00
pricly-yellow 7b1153e943
API pull's head/base have correct permission(#17214) (#17245)
* for all pull requests API return permissions of caller
* for all webhook return empty permissions

Signed-off-by: Danila Kryukov <pricly_yellow@dismail.de>

* Fix incorrect error handler

Co-authored-by: delvh <dev.lh@web.de>

* Fix wrong assumption in tests

* Change paramenter name to doer to indicate source

Co-authored-by: 6543 <6543@obermui.de>

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: 6543 <6543@obermui.de>
2021-10-07 12:39:23 +03:00