Commit Graph
135 Commits
Author SHA1 Message Date
Jason Song c355172878 fix: check reqRepoActionsWriter 2022-12-28 13:30:17 +08:00
Jason Song d183b32aa8 Merge branch 'main' into feature/bots 2022-12-22 12:00:41 +08:00
ReoandGitHub 48d71b7d6b Add Feed for Releases and Tags (#21696)
Fixes #19091

Add Feed for Releases and Tags, can be accessed through
`reponame/releases.rss`, `reponame/releases.atom`, `reponame/tags.rss`,
and `reponame/tags.atom`

Signed-off-by: Reo <reo_999@proton.me>
2022-12-21 15:06:26 -06:00
659055138b Secrets storage with SecretKey encrypted (#22142)
Fork of #14483, but [gave up
MasterKey](https://github.com/go-gitea/gitea/pull/14483#issuecomment-1350728557),
and fixed some problems.

Close #12065.
Needed by #13539.

Featrues:
- Secrets for repo and org, not user yet.
- Use SecretKey to encrypte/encrypt secrets.
- Trim spaces of secret value.
- Add a new locale ini block, to make it easy to support secrets for
user.

Snapshots:

Repo level secrets:

![image](https://user-images.githubusercontent.com/9418365/207823319-b8a4903f-38ca-4af7-9d05-336a5af906f3.png)

Rrg level secrets

![image](https://user-images.githubusercontent.com/9418365/207823371-8bd02e93-1928-40d1-8c76-f48b255ace36.png)

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
2022-12-20 17:07:13 +08:00
Jason SongandGitHub 6c622137f1 Merge branch 'main' into feature/bots 2022-12-13 09:50:18 +08:00
Lunny XiaoandGitHub 87c64f655a Fix permission check on issue/pull lock (#22110)
Fix #21826
2022-12-12 23:02:51 +08:00
Jason Song ef20a02af0 fix: use web.Bind 2022-12-12 18:55:23 +08:00
Jason SongandGitHub cc19ab5ced Merge branch 'main' into feature/bots 2022-12-12 17:29:51 +08:00
Lunny XiaoandGitHub 6398ca745a refactor bind functions based on generics (#22055) 2022-12-12 16:09:26 +08:00
Jason Song 223782ca4c refactor: rename to actions 2022-12-06 15:16:25 +08:00
Jason Song 704f72017d refactor: rename packages 2022-12-05 15:45:38 +08:00
Jason Song b2745bff43 feat: support disable bots completely 2022-12-01 15:27:28 +08:00
Jason SongandGitHub 66b558017f Merge branch 'main' into feature/bots 2022-11-28 17:23:53 +08:00
e81ccc406b Implement FSFE REUSE for golang files (#21840)
Change all license headers to comply with REUSE specification.

Fix #16132

Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2022-11-27 18:20:29 +00:00
Jason Song ef4b3673dd chore: golang lint 2022-11-26 22:12:52 +08:00
Jason Song 378e1f8d01 chore: fix problems caused by rebase 2022-11-25 17:58:34 +08:00
Lunny XiaoandJason Song 2ecb59c092 rename builds -> bots 2022-11-25 17:48:48 +08:00
Jason Song 736275f0b1 feat: support cancel button 2022-11-25 17:48:48 +08:00
fuxiaoheiandJason Song 0c3f283a84 fix(runner-view): missing runner delete modal and routing 2022-11-25 17:48:47 +08:00
Jason Song 0b62e1da74 feat: rerun jobs 2022-11-25 17:48:47 +08:00
fuxiaoheiandJason Song 6a0614f4a5 feat(runner): add repo runners ui pages 2022-11-25 17:48:46 +08:00
fuxiaoheiandJason Song 888b4c8313 feat(runner): finish org runners ui 2022-11-25 17:48:46 +08:00
wxiaoguangandJason Song ea5e769428 fix build view ui 2022-11-25 17:48:46 +08:00
Lunny XiaoandJason Song 5b55fd0d36 org secrets 2022-11-25 17:48:46 +08:00
Lunny XiaoandJason Song fa5b8e9eba org secrets 2022-11-25 17:48:46 +08:00
Jason Song dee4f2470b feat: inner build view UI 2022-11-25 17:48:46 +08:00
Jason Song 3d4d44dadf fix: use index of run 2022-11-25 17:48:46 +08:00
fuxiaoheiandJason Song 25fe4f6d9e feat(runner): make admin runner template as common template, use for org runners setting 2022-11-25 17:48:46 +08:00
fuxiaoheiandJason Song 38b36edc5c feat(runner): add runner page in repo and org settings 2022-11-25 17:48:45 +08:00
fuxiaoheiandJason Song f633ec9704 feat(runner): create new token for creating new runner 2022-11-25 17:48:45 +08:00
Lunny XiaoandJason Song 482832da76 delete unused structs 2022-11-25 17:48:45 +08:00
Jason Song 1cba52376a feat: use run id and job id in page view 2022-11-25 17:48:45 +08:00
Jason Song d320eb66f4 feat: fetch job data 2022-11-25 17:48:45 +08:00
Jason Song 027d748fe2 feat: api for fetch job state 2022-11-25 17:48:45 +08:00
fuxiaoheiandJason Song fbb9f437a6 feat(runner): delete runner from admin html page 2022-11-25 17:48:45 +08:00
fuxiaoheiandJason Song 206b2a104e feat(runner): begin runner view ui 2022-11-25 17:48:44 +08:00
wxiaoguangandJason Song 4f2330623e view logs 2022-11-25 17:48:44 +08:00
wxiaoguangandJason Song 92d15afd18 database-filesystem, demo log tailing in term 2022-11-25 17:48:43 +08:00
Lunny XiaoandJason Song 931d8c2c21 add runners management ui 2022-11-25 17:48:43 +08:00
Lunny XiaoandJason Song 2c4f6fd42f add most tables 2022-11-25 17:48:43 +08:00
Lunny XiaoandJason Song 5a479bb034 Add builds UI 2022-11-25 17:48:43 +08:00
b4802b9b2e Allow disable RSS/Atom feed (#21622)
This patch provide a mechanism to disable RSS/Atom feed.

Signed-off-by: Xinyu Zhou <i@sourcehut.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
2022-11-21 13:14:58 +08:00
32db62515f Add package registry cleanup rules (#21658)
Fixes #20514
Fixes #20766
Fixes #20631

This PR adds Cleanup Rules for the package registry. This allows to
delete unneeded packages automatically. Cleanup rules can be set up from
the user or org settings.
Please have a look at the documentation because I'm not a native english
speaker.

Rule Form

![grafik](https://user-images.githubusercontent.com/1666336/199330792-c13918a6-e196-4e71-9f53-18554515edca.png)

Rule List

![grafik](https://user-images.githubusercontent.com/1666336/199331261-5f6878e8-a80c-4985-800d-ebb3524b1a8d.png)

Rule Preview

![grafik](https://user-images.githubusercontent.com/1666336/199330917-c95e4017-cf64-4142-a3e4-af18c4f127c3.png)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-11-20 16:08:38 +02:00
KN4CK3RandGitHub 43ab9324c5 Fix setting HTTP headers after write (#21833)
The headers can't be modified after it was send to the client.
2022-11-18 01:55:15 +08:00
2cbea23d70 Add configuration for CORS allowed headers (#21747)
This PR enhances the CORS middleware usage by allowing for the headers
to be configured in `app.ini`.

Fixes #21746

Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-11-11 14:39:27 +08:00
GustedandGitHub 7b45092d66 Remove template previewer (#21701)
- Remove "unused" code, I don't think anyone ever used this or was aware
of this feature. It doesn't even work properly as most fields/data are
empty.
2022-11-06 20:13:54 +00:00
100448a007 Allow disable sitemap (#21617)
This patch provide a mechanism to disable
[sitemap](https://github.com/go-gitea/gitea/pull/18407).

Signed-off-by: Xinyu Zhou <i@sourcehut.net>
Co-authored-by: 6543 <6543@obermui.de>
2022-10-28 11:17:38 -04:00
rock2dustandGitHub cd33979f5a Added check for disabled Packages (#21540)
At the moment, If admin disable Packages, still show the Packages on the
admin dashboard

This patch added a check to hide the Packages entry

Signed-off-by: baronbunny <its@baronbunny.cn>

Signed-off-by: baronbunny <its@baronbunny.cn>
2022-10-22 11:24:09 +08:00
c3b2e44392 Add team member invite by email (#20307)
Allows to add (not registered) team members by email.

related #5353

Invite by mail:

![grafik](https://user-images.githubusercontent.com/1666336/178154779-adcc547f-c0b7-4a2a-a131-4e41a3d9d3ad.png)

Pending invitations:

![grafik](https://user-images.githubusercontent.com/1666336/178154882-9d739bb8-2b04-46c1-a025-c1f4be26af98.png)

Email:

![grafik](https://user-images.githubusercontent.com/1666336/178164716-f2f90893-7ba6-4a5e-a3db-42538a660258.png)

Join form:

![grafik](https://user-images.githubusercontent.com/1666336/178154840-aaab983a-d922-4414-b01a-9b1a19c5cef7.png)

Co-authored-by: Jack Hay <jjphay@gmail.com>
2022-10-19 14:40:28 +02:00
Lunny XiaoandGitHub f860a6d2e4 Add system setting table with cache and also add cache supports for user setting (#18058) 2022-10-17 07:29:26 +08:00