Commit Graph

85 Commits (e21fb903e3fd4be8a63d0e3dced7084d3d5a41bb)

Author SHA1 Message Date
Lunny Xiao e21fb903e3
Fix migration 2025-10-28 11:41:34 -07:00
Lunny Xiao ae282397be
Fix lint and fix wrong migrations 2025-10-25 16:30:27 -07:00
Lunny Xiao 12feb0ee26
Add unit test and integration test 2025-10-25 16:03:53 -07:00
Lunny Xiao 635649d3bd
add translations 2025-10-24 23:59:13 -07:00
Lunny Xiao 3d081b300f
Fix bug 2025-10-24 21:35:11 -07:00
Lunny Xiao 323a24e12c
Fix bug 2025-10-24 18:37:19 -07:00
Lunny Xiao 903d605fe1
improvements 2025-10-24 10:55:10 -07:00
Lunny Xiao c2419f8c5b
improvements 2025-10-23 22:24:52 -07:00
Lunny Xiao 822387aa38
support labels filter 2025-10-23 11:06:44 -07:00
Lunny Xiao 74fc30ff71
Support add labels and remove labels for issue's project column changed event 2025-10-23 00:47:34 -07:00
Lunny Xiao b191ded690
Fix 2025-10-22 22:40:49 -07:00
Lunny Xiao 990d8000fd
improvements 2025-09-04 10:01:53 -07:00
Lunny Xiao f681274e5d
enable/disable 2025-09-03 22:06:58 -07:00
Lunny Xiao af5ba854d9
improvements 2025-09-03 21:59:46 -07:00
Lunny Xiao 20b4ce5446
improvements 2025-09-03 16:24:42 -07:00
Lunny Xiao 6af504562b
new layout 2025-09-03 13:09:28 -07:00
Lunny Xiao 5481800fe8
some improvements 2025-09-02 21:42:47 -07:00
Lunny Xiao bf9511e63c Merge branch 'main' into lunny/project_workflow 2025-09-02 11:39:15 -07:00
wxiaoguang 0cbaa0b662
Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
Lunny Xiao 65cd3f5309
Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00
Lunny Xiao a4f8408190 Merge branch 'main' into lunny/project_workflow 2025-07-05 21:59:44 -07:00
TheFox0x7 eb36a4554e
enforce nolint scope (#34851)
enable nolintlint scope requirement
add comments to new directives so it's more obvious why they are in
place

---

I can also toggle the mandatory comments on if that's something of
interest.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
2025-06-27 07:59:55 +02:00
silverwind 1f35435b81
Run `gopls modernize` on codebase (#34751)
Recent modernize fixes:
https://github.com/golang/tools/commits/master/gopls/internal/analysis/modernize
2025-06-18 01:48:09 +00:00
Lunny Xiao 7c66abcd9d
Use database to store the project workflow data 2025-06-09 18:26:31 -07:00
Lunny Xiao e7365c7294 Merge branch 'main' into lunny/project_workflow 2025-04-12 21:45:39 -07:00
Lunny Xiao b37cb32ad6
Add web routers for project workflow 2025-04-06 12:41:25 -07:00
TheFox0x7 ee3c82f874
Enable addtional linters (#34085)
enable mirror, usestdlibbars and perfsprint 
part of: https://github.com/go-gitea/gitea/issues/34083

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-04-01 10:14:01 +00:00
TheFox0x7 0fde8ecd55
Enable testifylint rules (#34075)
enable testifylint rules disabled in:
https://github.com/go-gitea/gitea/pull/34054
2025-03-31 01:53:48 -04:00
Lunny Xiao 7fefa37271
Some work 2025-03-28 23:36:24 -07:00
Lunny Xiao 34dd91a476 Merge branch 'main' into lunny/project_workflow 2025-03-28 21:25:10 -07:00
Lunny Xiao 6c8fb8d455
Small refactor to reduce unnecessary database queries and remove duplicated functions (#33779) 2025-03-04 18:25:20 +00:00
Lunny Xiao 69de5a65c2
Fix project issues list and counting (#33594)
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-02-17 05:14:56 +00:00
John Smith a025fa70ab
Add alphabetical project sorting (#33504)
Fixes #33500
2025-02-05 19:09:43 +00:00
Lunny Xiao fb12ed211e
add workflow 2025-01-08 17:25:02 -08:00
Lunny Xiao f2c7d32484 Merge branch 'main' into lunny/project_workflow 2025-01-08 16:42:37 -08:00
Lunny Xiao 20c7fba601
Use project's redirect url instead of composing url (#33058)
Fix #32992

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-12-31 19:19:53 +08:00
wxiaoguang 9bfa9f450d
Refactor "string truncate" (#32984) 2024-12-26 11:56:03 +08:00
Lunny Xiao 9d0a599960 Merge branch 'main' into lunny/project_workflow 2024-12-23 11:02:01 -08:00
TheFox0x7 33e8e82c4b
Enable tenv and testifylint rules (#32852)
Enables tenv and testifylint linters
closes: https://github.com/go-gitea/gitea/issues/32842
2024-12-15 10:41:29 +00:00
Lunny Xiao 98d9a71ffe
Trim title before insert/update to database to match the size requirements of database (#32498)
Fix #32489
2024-11-14 07:19:14 +00:00
Edip Emre Bodur a4dac59643
Fixes for unreachable project issues when transfer repository from organization (#31770)
When transferring repositories that have issues linked to a project
board to another organization, the issues remain associated with the
original project board. This causes the columns in the project board to
become bugged, making it difficult to move other issues in or out of the
affected columns. As a solution, I removed the issue relations since the
other organization does not have this project table.

Fix for #31538

Co-authored-by: Jason Song <i@wolfogre.com>
2024-08-13 02:53:43 +00:00
Lunny Xiao 791d7fc76a
Add issue comment when moving issues from one column to another of the project (#29311)
Fix #27278
Replace #27816

This PR adds a meta-comment for an issue when dragging an issue from one
column to another of a project.

<img width="600" alt="image"
src="https://github.com/go-gitea/gitea/assets/81045/5fc1d954-430e-4db0-aaee-a00006fa91f5">

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: yp05327 <576951401@qq.com>
2024-08-09 01:29:02 +00:00
yp05327 75d0b61546
Fix the display of project type for deleted projects (#31732)
Fix: #31727
After:

![image](https://github.com/user-attachments/assets/1dfb4b31-3bd6-47f7-b126-650f33f453e2)
2024-07-30 04:37:43 +00:00
Lunny Xiao 5d78be4093 Merge branch 'main' into lunny/project_workflow 2024-05-28 17:43:23 +08:00
Lunny Xiao 98751108b1
Rename project board -> column to make the UI less confusing (#30170)
This PR split the `Board` into two parts. One is the struct has been
renamed to `Column` and the second we have a `Template Type`.

But to make it easier to review, this PR will not change the database
schemas, they are just renames. The database schema changes could be in
future PRs.

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: yp05327 <576951401@qq.com>
2024-05-27 08:59:54 +00:00
Lunny Xiao a303c973e0
Fix various problems around projects board view (#30696)
# The problem
The previous implementation will start multiple POST requests from the
frontend when moving a column and another bug is moving the default
column will never be remembered in fact.

# What's changed

- [x] This PR will allow the default column to move to a non-first
position
- [x] And it also uses one request instead of multiple requests when
moving the columns
- [x] Use a star instead of a pin as the icon for setting the default
column action
- [x] Inserted new column will be append to the end
- [x] Fix #30701 the newly added issue will be append to the end of the
default column
- [x] Fix when deleting a column, all issues in it will be displayed
from UI but database records exist.
- [x] Add a limitation for columns in a project to 20. So the sorting
will not be overflow because it's int8.

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-05-08 13:44:57 +00:00
silverwind 74f0c84fa4
Enable more `revive` linter rules (#30608)
Noteable additions:

- `redefines-builtin-id` forbid variable names that shadow go builtins
- `empty-lines` remove unnecessary empty lines that `gofumpt` does not
remove for some reason
- `superfluous-else` eliminate more superfluous `else` branches

Rules are also sorted alphabetically and I cleaned up various parts of
`.golangci.yml`.
2024-04-22 11:48:42 +00:00
Lunny Xiao 95cecbb294
Add NewIssue events 2024-04-05 14:18:51 +08:00
Lunny Xiao 64e0ba10de
Add project workflow feature so users can define how to execute steps when project related events fired 2024-03-31 11:57:14 +08:00
Lunny Xiao 40cdc84b36
Fix migration v292 (#30153)
Fix https://github.com/go-gitea/gitea/pull/29874#discussion_r1542227686

- The migration of v292 will miss many projects. These projects will
have no default board. This PR introduced a new migration number and
removed v292 migration.

- This PR also added the missed transactions on project-related
operations.

- Only `SetDefaultBoard` will remove duplicated defaults but not in
`GetDefaultBoard`
2024-03-28 16:14:30 +00:00