]> source.dussan.org Git - gitea.git/log
gitea.git
13 months ago[skip ci] Updated licenses and gitignores
GiteaBot [Mon, 28 Aug 2023 00:22:48 +0000 (00:22 +0000)]
[skip ci] Updated licenses and gitignores

13 months agoUse docs.gitea.com instead of docs.gitea.io (#26739)
Lunny Xiao [Sun, 27 Aug 2023 11:59:12 +0000 (19:59 +0800)]
Use docs.gitea.com instead of docs.gitea.io (#26739)

13 months agoAdding hint `Archived` to archive label. (#26741)
puni9869 [Sun, 27 Aug 2023 09:32:54 +0000 (15:02 +0530)]
Adding hint `Archived` to archive label. (#26741)

Followup  https://github.com/go-gitea/gitea/pull/26478
## Archived labels UI

Changed:
* Enhanced the Filtered UI page to seamlessly incorporate a list of
archived labels.

Outsourced:
* Defer the implementation of specialized handling for archived labels
to upcoming pull requests. This step will be undertaken subsequent to
the successful merge of this pull request.

Screenshots

![image](https://github.com/go-gitea/gitea/assets/80308335/1f33cfb2-2bac-46f0-9103-9e62d235b1d2)

![image](https://github.com/go-gitea/gitea/assets/80308335/3609acd0-b1ba-4ee9-8c4e-1a34dbc37dd7)

![image](https://github.com/go-gitea/gitea/assets/80308335/9860196d-2391-409b-a9a0-1205ab4b412b)

---

Part of https://github.com/go-gitea/gitea/issues/25237

---------

Co-authored-by: Giteabot <teabot@gitea.io>
Co-authored-by: silverwind <me@silverwind.io>
13 months agoMove `modules/mirror` to `services` (#26737)
Chongyi Zheng [Sun, 27 Aug 2023 02:24:45 +0000 (22:24 -0400)]
Move `modules/mirror` to `services` (#26737)

To solve the cyclic imports in a better way

Closes #20261

13 months ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 27 Aug 2023 00:27:26 +0000 (00:27 +0000)]
[skip ci] Updated translations via Crowdin

13 months agoFix template bugs in recently_pushed_new_branches.tmpl (#26744)
wxiaoguang [Sun, 27 Aug 2023 00:16:02 +0000 (08:16 +0800)]
Fix template bugs in recently_pushed_new_branches.tmpl (#26744)

Fix some bugs from #25715, fix #25830

1. `$.locale.Tr ... Safe` needs `Escape`, but not `PathEscapeSegments`
2. The attribute should be `role`
3. The `ComposeBranchCompareURL` already does escaping correctly

13 months agoFix incorrect "tabindex" attributes (#26733)
wxiaoguang [Sat, 26 Aug 2023 02:44:00 +0000 (10:44 +0800)]
Fix incorrect "tabindex" attributes (#26733)

Fix #26731

Almost all "tabindex" in code are incorrect.

1. All "input/button" by default are focusable, so no need to use "tabindex=0"
2. All "div/span" by default are not focusable, so no need to use "tabindex=-1"
3. All "dropdown" are focusable by framework, so no need to use "tabindex"
4. Some tabindex values are incorrect (eg: `new_form.tmpl`), so remove them

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoSimplify helper CSS classes and avoid abuse (#26728)
wxiaoguang [Fri, 25 Aug 2023 23:35:10 +0000 (07:35 +0800)]
Simplify helper CSS classes and avoid abuse (#26728)

Removed CSS helper classes (some of them are not useful while some of
them are abused often)

* `gt-db`: in most cases it could be replaced by `gt-df` and the flex
layout should be encouraged. Other cases: either it does need the
`gt-df` (eg: by using `div` directly) or it is an abuse (eg: the warning
message in a form)
* `gt-di`: it doesn't seem useful, or it could be replaced by `gt-dib`
in most cases.
* `gt-dif`: not useful, it could be replaced by `flex-text-inline` or
`gt-df`
* `gt-js`: never used
* All `<i class="icon gt-df gt-ac gt-jc">` could be written as `<i
class="icon">`

## Some UI samples

### Admin Notice

![image](https://github.com/go-gitea/gitea/assets/2114189/d02010d4-dc7d-463f-bc99-dcc9b6e2e2ac)

### Admin Stacktrace

![image](https://github.com/go-gitea/gitea/assets/2114189/4045695c-a8c4-4e37-b720-e77a61b1e965)

### Org Home

![image](https://github.com/go-gitea/gitea/assets/2114189/069f02d0-76ad-4052-8a80-700d7e501d40)

### Org Team Repo

![image](https://github.com/go-gitea/gitea/assets/2114189/dc8d6106-bb6b-4f60-83ac-06cb28df3ab5)

### Release List

![image](https://github.com/go-gitea/gitea/assets/2114189/0845e8a5-d1a9-487a-9d25-3c200ad54c17)

### User Setting Application Token Scope

![image](https://github.com/go-gitea/gitea/assets/2114189/fffbde27-432b-49c6-827e-17b8cd3457ff)

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoRemove fomantic loader module (#26670)
silverwind [Fri, 25 Aug 2023 16:03:14 +0000 (18:03 +0200)]
Remove fomantic loader module (#26670)

Replace Fomantic `loader` CSS module with our existing `is-loading`
spinner. Only three places in the UI used this module, which are
pictured here:

imagediff:
<img width="1237" alt="Screenshot 2023-08-22 at 22 18 01"
src="https://github.com/go-gitea/gitea/assets/115237/b0d82531-f05e-43c6-9e5b-1bfc268c056d">

webauthn:
<img width="894" alt="Screenshot 2023-08-22 at 22 05 05"
src="https://github.com/go-gitea/gitea/assets/115237/7b583425-d944-474a-a57a-22a65bbd8b29">

heatmap (I removed the previous loading text, it was unreadable because
it was tiny and on fast machines only visible for a fraction of a
second):
<img width="764" alt="Screenshot 2023-08-22 at 22 18 44"
src="https://github.com/go-gitea/gitea/assets/115237/1c7472d6-3e17-4224-a992-d8c0b380cc73">

Also, heatmap container does not resize any more after loading now and
previous duplicate id `user-heatmap` is gone.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
13 months agoFix link in mirror docs (#26719)
silverwind [Fri, 25 Aug 2023 15:13:07 +0000 (17:13 +0200)]
Fix link in mirror docs (#26719)

Fix hash fragment in this link

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoAdd `eslint-plugin-vue-scoped-css` (#26720)
silverwind [Fri, 25 Aug 2023 13:47:27 +0000 (15:47 +0200)]
Add `eslint-plugin-vue-scoped-css` (#26720)

Adds
[eslint-plugin-vue-scoped-css](https://github.com/future-architect/eslint-plugin-vue-scoped-css)
and fixes discovered issues which are:

- 1 unused selector
- 3 selectors with `.full.height` parent in a `<style scoped>` block so
the rule could not find the parent. Move these into the unscoped block
instead. They worked before and after.

13 months agoFixed text overflow in dropdown menu (#26694)
Viktor Suprun [Fri, 25 Aug 2023 11:15:21 +0000 (22:15 +1100)]
Fixed text overflow in dropdown menu (#26694)

Fixes #26622

![image](https://github.com/go-gitea/gitea/assets/683358/168b7e4d-97ba-4b5f-a5f5-33ee67e8b4be)

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoMake web context initialize correctly for different cases (#26726)
wxiaoguang [Fri, 25 Aug 2023 11:07:42 +0000 (19:07 +0800)]
Make web context initialize correctly for different cases (#26726)

The web context (modules/context.Context) is quite complex, it's
difficult for the callers to initialize correctly.

This PR introduces a `NewWebContext` function, to make sure the web
context have the same behavior for different cases.

13 months agoRemove incorrect CSS helper classes (#26712)
wxiaoguang [Fri, 25 Aug 2023 06:47:59 +0000 (14:47 +0800)]
Remove incorrect CSS helper classes (#26712)

13 months agoFocus editor on "Write" tab click (#26714)
silverwind [Fri, 25 Aug 2023 05:26:32 +0000 (07:26 +0200)]
Focus editor on "Write" tab click (#26714)

Focus the editor when clicking the "Write" tab. Works for both Textarea
and EasyMDE. Does for some reason not work without the
`requestAnimationFrame`.

13 months agoFix review bar misalignment (#26711)
wxiaoguang [Thu, 24 Aug 2023 15:46:30 +0000 (23:46 +0800)]
Fix review bar misalignment (#26711)

13 months agoUse "small-loading-icon" insead of "btn-octicon is-loading" (#26710)
wxiaoguang [Thu, 24 Aug 2023 14:21:41 +0000 (22:21 +0800)]
Use "small-loading-icon" insead of "btn-octicon is-loading" (#26710)

The "btn-octicon is-loading" was introduced by #21842 , it is only used
by the "Copy Content" button, but the "btn-octicon" selector would
affect too many uncertain elements.

Now there is a general "small-loading-icon" class, so the "btn-octicon
is-loading" could be removed.

13 months agoImprove Image Diff UI (#26696)
wxiaoguang [Thu, 24 Aug 2023 12:13:23 +0000 (20:13 +0800)]
Improve Image Diff UI (#26696)

1. Use `is-loading` instead of `ui loader`
2. Introduce class name `image-diff-tabs`, instead of searching `gt-hidden`, which is fragile
3. Align the UI elements, see the screenshots.

13 months agoMake issue template field template access correct template data (#26698)
wxiaoguang [Thu, 24 Aug 2023 11:09:36 +0000 (19:09 +0800)]
Make issue template field template access correct template data (#26698)

Regression of #23092, the `{{$field := .}}` was missing during that refactoring.

13 months agoadd Upload URL to release API (#26663)
Earl Warren [Thu, 24 Aug 2023 10:36:10 +0000 (12:36 +0200)]
add Upload URL to release API (#26663)

- Resolves https://codeberg.org/forgejo/forgejo/issues/580
- Return a `upload_field` to any release API response, which points to
the API URL for uploading new assets.
- Adds unit test.
- Adds integration testing to verify URL is returned correctly and that
upload endpoint actually works

---------

Co-authored-by: Gusted <postmaster@gusted.xyz>
13 months agoAdd merge files files to GetCommitFileStatus (#20515)
Laurent Cahour [Thu, 24 Aug 2023 10:03:49 +0000 (12:03 +0200)]
Add merge files files to GetCommitFileStatus (#20515)

Hi,

We'd like to add merge files files to GetCommitFileStatus fucntions so
API returns the list of all the files associated to a merged pull
request commit, like GitHub API does.
The list of affectedFiles for an API commit is fetched from toCommit()
function in routers/api/v1/repo/commits.go, and API was returning no
file in case of a pull request with no conflict, or just files
associated to the confict resolution, but NOT the full list of merged
files.

This would lead to situations where a CI polling a repo for changes
could miss some file changes due to API returning an empty / partial
list in case of such merged pull requests. (Hope this makes sense :) )

NOTE: I'd like to add a unittest in
integrations/api_repo_git_commits_test.go but failed to understand how
to add my own test bare repo so I can make a test on a merged pull
request commit to check for affectedFiles.
Is there a merged pull request in there that I could use maybe?
Could someone please direct me to the relevant ressources with
informations on how to do that please?

Thanks for your time,
Laurent.

---------

Co-authored-by: Thomas Desveaux <desveaux.thomas@gmail.com>
13 months agoPATCH branch-protection updates check list even when checks are disabled (#26351)
Infinoid [Thu, 24 Aug 2023 05:36:04 +0000 (01:36 -0400)]
PATCH branch-protection updates check list even when checks are disabled (#26351)

Fixes: #26333.
Previously, this endpoint only updates the `StatusCheckContexts` field
when `EnableStatusCheck==true`, which makes it impossible to clear the
array otherwise.

This patch uses slice `nil`-ness to decide whether to update the list of
checks. The field is ignored when either the client explicitly passes in
a null, or just omits the field from the json ([which causes
`json.Unmarshal` to leave the struct field
unchanged](https://go.dev/play/p/Z2XHOILuB1Q)). I think this is a better
measure of intent than whether the `EnableStatusCheck` flag was set,
because it matches the semantics of other field types.

Also adds a test case. I noticed that [`testAPIEditBranchProtection`
only checks the branch
name](https://github.com/go-gitea/gitea/blob/c1c83dbaec840871c1247f4bc3f875309b0de6bb/tests/integration/api_branch_test.go#L68)
and no other fields, so I added some extra `GET` calls and specific
checks to make sure the fields are changing properly.

I added those checks the existing integration test; is that the right
place for it?

13 months agoAdd `member`, `collaborator`, `contributor`, and `first-time contributor` roles and...
yp05327 [Thu, 24 Aug 2023 05:06:17 +0000 (14:06 +0900)]
Add `member`, `collaborator`, `contributor`, and `first-time contributor` roles and tooltips (#26658)

GitHub like role descriptor

![image](https://github.com/go-gitea/gitea/assets/18380374/ceaed92c-6749-47b3-89e8-0e0e7ae65321)

![image](https://github.com/go-gitea/gitea/assets/18380374/8193ec34-cbf0-47f9-b0de-10dbddd66970)

![image](https://github.com/go-gitea/gitea/assets/18380374/56c7ed85-6177-425e-9f2f-926e99770782)

---------

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
13 months agochore(actions): support cron schedule task (#26655)
Lunny Xiao [Thu, 24 Aug 2023 03:06:51 +0000 (11:06 +0800)]
chore(actions): support cron schedule task (#26655)

Replace #22751

1. only support the default branch in the repository setting.
2. autoload schedule data from the schedule table after starting the
service.
3. support specific syntax like `@yearly`, `@monthly`, `@weekly`,
`@daily`, `@hourly`

## How to use

See the [GitHub Actions
document](https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule)
for getting more detailed information.

```yaml
on:
  schedule:
    - cron: '30 5 * * 1,3'
    - cron: '30 5 * * 2,4'

jobs:
  test_schedule:
    runs-on: ubuntu-latest
    steps:
      - name: Not on Monday or Wednesday
        if: github.event.schedule != '30 5 * * 1,3'
        run: echo "This step will be skipped on Monday and Wednesday"
      - name: Every time
        run: echo "This step will always run"
```

Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
---------

Co-authored-by: Jason Song <i@wolfogre.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
13 months agofeat(API): update and delete secret for managing organization secrets (#26660)
Bo-Yi Wu [Thu, 24 Aug 2023 02:07:00 +0000 (10:07 +0800)]
feat(API): update and delete secret for managing organization secrets (#26660)

- Add `UpdateSecret` function to modify org or user repo secret
- Add `DeleteSecret` function to delete secret from an organization
- Add `UpdateSecretOption` struct for updating secret options
- Add `UpdateOrgSecret` function to update a secret in an organization
- Add `DeleteOrgSecret` function to delete a secret in an organization

GitHub API

1. Update Org Secret:
https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#create-or-update-an-organization-secret
2. Delete Org Secret:
https://docs.github.com/en/rest/actions/secrets?apiVersion=2022-11-28#delete-an-organization-secret

---------

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
13 months agoRemove ref name in PR commits page (#25876)
yp05327 [Thu, 24 Aug 2023 01:31:54 +0000 (10:31 +0900)]
Remove ref name in PR commits page (#25876)

The branch name display here is based on the repo's default branch which
is not correct.

![image](https://github.com/go-gitea/gitea/assets/18380374/d899f6dc-b240-41ea-9a3e-ea0e103874ad)

For example, if I changed the default branch, the branch name here will
also be changed:

![image](https://github.com/go-gitea/gitea/assets/18380374/032ead94-2287-4158-a9e4-02e9fb74777d)

![image](https://github.com/go-gitea/gitea/assets/18380374/e1e6cbbc-31f8-40a2-b99a-508b5b2b3145)
you can confirm this in :
https://try.gitea.io/yp05327/testrepo/pulls/1/commits

I think we do not need to display branch name here, as we already have
the branch info above.

![image](https://github.com/go-gitea/gitea/assets/18380374/66f30a0c-3c2b-4d26-936d-bbe289f33be0)

13 months agoModify the content format of the Feishu webhook (#25106)
谈笑风生间 [Thu, 24 Aug 2023 01:00:11 +0000 (09:00 +0800)]
Modify the content format of the Feishu webhook (#25106)

close https://github.com/go-gitea/gitea/issues/24368

## what my pull request does

Since the official documentation states that custom bots do not support
hyperlink functionality, simply adding it without making some formatting
changes would result in an unappealing output. Therefore, I have
modified the formatting of the output. Currently, it is only used for
Feishu.

---

[docs](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/im-v1/message/create_json#%E8%B6%85%E9%93%BE%E6%8E%A5%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E)

<img width="641" alt="image"
src="https://github.com/go-gitea/gitea/assets/75628309/360e1c81-ab64-4ef6-851e-aa450d6e85a4">

- Issue

<img width="423" alt="image"
src="https://github.com/go-gitea/gitea/assets/75628309/519f6fae-81ab-4ec8-89b8-f6a73ff93783">

- Issue Comment

<img width="548" alt="image"
src="https://github.com/go-gitea/gitea/assets/75628309/749c0d1c-3657-431e-b787-8bf4c23cce83">

- Assign

<img width="431" alt="image"
src="https://github.com/go-gitea/gitea/assets/75628309/066f99e5-eabb-455d-91fb-a8359cc26dc7">

<img width="457" alt="image"
src="https://github.com/go-gitea/gitea/assets/75628309/c6c10f99-db83-46ef-a775-4c91979fa68f">

- Merge

<img width="408" alt="image"
src="https://github.com/go-gitea/gitea/assets/75628309/e627bf43-5954-45aa-acf6-261ee046802f">

- PullRequest

<img width="425" alt="image"
src="https://github.com/go-gitea/gitea/assets/75628309/72cfa714-d3fa-4fb9-abdd-e8508d756056">

13 months agoHandle "comment form combo editor init" more gracefully (#26688)
wxiaoguang [Wed, 23 Aug 2023 15:15:06 +0000 (23:15 +0800)]
Handle "comment form combo editor init" more gracefully (#26688)

Now Gitea exposes unhandled promise rejection messages as error message on the UI.

The "comment form" was quite unclear before, so it should be handled more gracefully to avoid such error.

13 months agoPrefer variables over subprocesses (#26690)
Thomas McWork [Wed, 23 Aug 2023 12:43:05 +0000 (14:43 +0200)]
Prefer variables over subprocesses (#26690)

… because it doesn't require a separate shell, spawning a process which
cost unnecessary resources and takes time.

13 months agoFix archived unix time when archiving the label (#26681)
puni9869 [Wed, 23 Aug 2023 10:12:20 +0000 (15:42 +0530)]
Fix archived unix time when archiving the label (#26681)

Small Fix :-`ArchivedUnix` column changed only change the date when it is newly archived.

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoMake "link-action" backend code respond correct JSON content (#26680)
wxiaoguang [Wed, 23 Aug 2023 09:36:57 +0000 (17:36 +0800)]
Make "link-action" backend code respond correct JSON content (#26680)

Otherwise the `link-action` JS code couldn't parse the response.

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoFix doubled box-shadow in branch dropdown menu (#26678)
wxiaoguang [Wed, 23 Aug 2023 08:13:04 +0000 (16:13 +0800)]
Fix doubled box-shadow in branch dropdown menu (#26678)

13 months agoRefactor toast module (#26677)
wxiaoguang [Wed, 23 Aug 2023 07:25:13 +0000 (15:25 +0800)]
Refactor toast module (#26677)

1. Do not use "async"
2. Call `hideToast` instead of `removeElement` for manual closing

13 months agoMore improvements for the "flex list" and the dashboard list (#26675)
wxiaoguang [Wed, 23 Aug 2023 04:23:30 +0000 (12:23 +0800)]
More improvements for the "flex list" and the dashboard list (#26675)

Follow #26649 and #25790 and add one more example (text truncate) in the devtest page

13 months agoFix counting and filtering on the dashboard page for issues (#26657)
Jason Song [Wed, 23 Aug 2023 02:29:17 +0000 (10:29 +0800)]
Fix counting and filtering on the dashboard page for issues (#26657)

This PR has multiple parts, and I didn't split them because
it's not easy to test them separately since they are all about the
dashboard page for issues.

1. Support counting issues via indexer to fix #26361
2. Fix repo selection so it also fixes #26653
3. Keep keywords in filter links.

The first two are regressions of #26012.

After:

https://github.com/go-gitea/gitea/assets/9418365/71dfea7e-d9e2-42b6-851a-cc081435c946

Thanks to @CaiCandong  for helping with some tests.

13 months agoadd mfa doc (#26654)
Lunny Xiao [Wed, 23 Aug 2023 01:56:11 +0000 (09:56 +0800)]
add mfa doc (#26654)

copy and modified from #14572

> Whilst debating enforcing MFA within our team, I realised there isn't
a lot of context to the side effects of enabling it. Most of us use Git
over HTTP and would need to add a token.

I plan to add another PR that adds a sentence to the UI about needing to
generate a token when enabling MFA if HTTP is to be used.

---------

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: silverwind <me@silverwind.io>
13 months ago[Refactor] getIssueStatsChunk to move inner function into own one (#26671)
6543 [Wed, 23 Aug 2023 01:29:49 +0000 (03:29 +0200)]
[Refactor] getIssueStatsChunk to move inner function into own one (#26671)

move inner **countSession** of **getIssueStatsChunk** into it's own
function for reuse

---
*Sponsored by Kithara Software GmbH*

13 months agoUse line-height: normal by default (#26635)
wxiaoguang [Tue, 22 Aug 2023 10:19:15 +0000 (18:19 +0800)]
Use line-height: normal by default (#26635)

Fix #26537 again because 1.15 is too small for some fonts.

13 months agoImprove repo sub menu (#26531)
yp05327 [Tue, 22 Aug 2023 09:20:09 +0000 (18:20 +0900)]
Improve repo sub menu (#26531)

Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/9e71282c-4645-45f3-bdb8-13c4333f7c2b)

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/656ff837-35cf-43f8-88d0-f5e123600e57)

Icons are not in the middle of the line.

13 months agoFix organization list in dashboard (#26650)
yp05327 [Tue, 22 Aug 2023 08:49:00 +0000 (17:49 +0900)]
Fix organization list in dashboard (#26650)

Fix ui problem comes from #26326

Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/c59264c9-ed63-48ae-8f76-779058e4b226)

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/77d69274-6988-494a-970a-42fe69767e1e)

13 months agoImprove show role (#26621) 22751/head
yp05327 [Tue, 22 Aug 2023 05:30:33 +0000 (14:30 +0900)]
Improve show role (#26621)

Add a general show role template.

13 months agoImprove some flex layouts (#26649)
wxiaoguang [Tue, 22 Aug 2023 04:57:02 +0000 (12:57 +0800)]
Improve some flex layouts (#26649)

Fix #26617

1. Separate the "flex-list" examples into a dedicated template, and add some more examples
2. Use `flex-basis` instead of `flex-shrink` for `flex-item-trailing`, to avoid wrapping the texts too aggressively
3. Some `flex-wrap: wrap;` are removed

13 months agofeat: implement organization secret creation API (#26566)
Bo-Yi Wu [Tue, 22 Aug 2023 03:20:34 +0000 (11:20 +0800)]
feat: implement organization secret creation API (#26566)

- Add a new `CreateSecretOption` struct for creating secrets
- Implement a `CreateOrgSecret` function to create a secret in an
organization
- Add a new route in `api.go` to handle the creation of organization
secrets
- Update the Swagger template to include the new `CreateOrgSecret` API
endpoint

---------

Signed-off-by: appleboy <appleboy.tw@gmail.com>
13 months agoCheck disabled workflow when rerun jobs (#26535)
yp05327 [Tue, 22 Aug 2023 02:30:02 +0000 (11:30 +0900)]
Check disabled workflow when rerun jobs (#26535)

In GitHub, we can not rerun jobs if the workflow is disabled.

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
13 months agoUpdate minimum password length requirements (#25946)
techknowlogick [Mon, 21 Aug 2023 19:27:50 +0000 (15:27 -0400)]
Update minimum password length requirements (#25946)

13 months agocynkra is covered via oc links now (#26641)
techknowlogick [Mon, 21 Aug 2023 17:16:23 +0000 (13:16 -0400)]
cynkra is covered via oc links now (#26641)

13 months agoupdate config docs url (#26640)
techknowlogick [Mon, 21 Aug 2023 17:14:49 +0000 (13:14 -0400)]
update config docs url (#26640)

13 months agodevpod use go1.21 (#26637)
techknowlogick [Mon, 21 Aug 2023 16:20:50 +0000 (12:20 -0400)]
devpod use go1.21 (#26637)

13 months agoUse correct minio error (#26634)
delvh [Mon, 21 Aug 2023 16:20:11 +0000 (18:20 +0200)]
Use correct minio error (#26634)

Previously, `err` was defined above, checked for `err == nil` and used
nowhere else.
Hence, the result of `convertMinioErr` would always be `nil`.
This leads to a NPE further down the line.
That is not intentional, it should convert the error of the most recent
operation, not one of its predecessors.

Found through
https://discord.com/channels/322538954119184384/322538954119184384/1143185780206993550.

13 months agoRemove avatarHTML from template helpers (#26598)
wxiaoguang [Mon, 21 Aug 2023 15:00:14 +0000 (23:00 +0800)]
Remove avatarHTML from template helpers (#26598)

The HTML code is more readable and more correct (it needs `"ui avatar"`
class)

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoAdd optimistic lock to ActionRun table (#26563)
Jason Song [Mon, 21 Aug 2023 14:07:52 +0000 (22:07 +0800)]
Add optimistic lock to ActionRun table (#26563)

Should fix #26559.

How xorm works: https://xorm.io/docs/chapter-06/1.lock/

---------

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoImprove the branch selector tab UI (#26631)
wxiaoguang [Mon, 21 Aug 2023 13:35:02 +0000 (21:35 +0800)]
Improve the branch selector tab UI (#26631)

13 months agoImprove translation of milestone filters (#26569)
CaiCandong [Mon, 21 Aug 2023 13:11:07 +0000 (21:11 +0800)]
Improve translation of milestone filters (#26569)

https://github.com/go-gitea/gitea/issues/26567#issue-1855312074
> The terms `closest` and `furthest` don't describe the actual sorting
behavior as these two are semantically relative to the current date.
> Could we switch to `earliest` and `latest` instead?

close #26567

---------

Co-authored-by: yp05327 <576951401@qq.com>
Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoAdd `branch_filter` to hooks API endpoints (#26599)
Yarden Shoham [Mon, 21 Aug 2023 11:43:52 +0000 (14:43 +0300)]
Add `branch_filter` to hooks API endpoints (#26599)

We now include the branch filler in the response.

- Closes #26591

# Before

![image](https://github.com/go-gitea/gitea/assets/20454870/73933940-c1a7-4573-abae-f340b63028b2)

# After

![image](https://github.com/go-gitea/gitea/assets/20454870/3b3c4a85-0f7c-48c7-8617-def7a66c671d)

---------

Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoReplace box-shadow for `floating` dropdown as well (#26581)
silverwind [Mon, 21 Aug 2023 10:49:49 +0000 (12:49 +0200)]
Replace box-shadow for `floating` dropdown as well (#26581)

Add `box-shadow` replacement to the `floating` dropdown variant as well,
which was missed in https://github.com/go-gitea/gitea/pull/26469. The
Fomantic style has `!important`, so this has to have too. Also made a
tiny adjustment to shadow color on dark theme.

<img width="305" alt="Screenshot 2023-08-18 at 16 40 34"
src="https://github.com/go-gitea/gitea/assets/115237/a0aac9cb-6393-4d69-b0b3-00eaac5ccf9f">
<img width="202" alt="Screenshot 2023-08-18 at 16 40 22"
src="https://github.com/go-gitea/gitea/assets/115237/0a5fa3aa-7452-4dbd-86ed-ccbc1c872ebb">

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoAdd link to job details and tooltip to commit status in repo list in dashboard (...
yp05327 [Mon, 21 Aug 2023 07:26:10 +0000 (16:26 +0900)]
Add link to job details and tooltip to commit status in repo list in dashboard (#26326)

Tooltip:

![image](https://github.com/go-gitea/gitea/assets/18380374/237cb545-7844-424b-b995-1008eaaaedec)

Link to the target job:

![image](https://github.com/go-gitea/gitea/assets/18380374/0c11a97f-6517-47f2-8773-f381488c084e)

13 months agoIgnore the trailing slashes when comparing oauth2 redirect_uri (#26597)
wxiaoguang [Mon, 21 Aug 2023 04:15:55 +0000 (12:15 +0800)]
Ignore the trailing slashes when comparing oauth2 redirect_uri (#26597)

Fix #26526

13 months agoUpdate tool dependencies (#26607)
silverwind [Sun, 20 Aug 2023 22:59:19 +0000 (00:59 +0200)]
Update tool dependencies (#26607)

- Updated all tool dependencies to latest versions
- Add Makefile to `swagger` files because it specifies `go-swagger`
version
- Fix lint

13 months agobump go to 1.21 (#26608)
techknowlogick [Sun, 20 Aug 2023 22:27:46 +0000 (18:27 -0400)]
bump go to 1.21 (#26608)

Co-authored-by: Giteabot <teabot@gitea.io>
13 months agoUpdate 1.20.3 changelog (#26609)
delvh [Sun, 20 Aug 2023 19:17:15 +0000 (21:17 +0200)]
Update 1.20.3 changelog (#26609)

13 months agoFix NPM packages name validation (#26595)
TimberBro [Sun, 20 Aug 2023 15:06:42 +0000 (18:06 +0300)]
Fix NPM packages name validation (#26595)

- Added new tests to cover corner cases
- Replace existing regex with new one
Closes #26551

---
As @silverwind suggested, I started from
[validate-npm-package-name](https://github.com/npm/validate-npm-package-name),
but found this solution too complicated.
Then I tried to fix existing regex myself, but thought, that exclude all
restricted symbols is harder, than set only allowed symbols.
Then I search a bit more and found
[package-name-regex](https://github.com/dword-design/package-name-regex)
and regex from it works for all new test cases.

Let me know, if more information or help with this PR is needed.

13 months agoUse "input" event instead of "keyup" event for migration form (#26602)
wxiaoguang [Sun, 20 Aug 2023 14:36:07 +0000 (22:36 +0800)]
Use "input" event instead of "keyup" event for migration form (#26602)

Otherwise, "pasted" content won't update the UI.

13 months agoDo not use deprecated log config options by default (#26592)
wxiaoguang [Sun, 20 Aug 2023 01:05:29 +0000 (09:05 +0800)]
Do not use deprecated log config options by default (#26592)

Simplify the log config

* Remove unnecessary `ROUTER` config, it defaults to the `MODE`.
* `XORM` config was deprecated

13 months agofix reopen logic for agit flow pull request (#26399)
a1012112796 [Sat, 19 Aug 2023 09:29:34 +0000 (17:29 +0800)]
fix reopen logic for agit flow pull request (#26399)

the head branch is meaningless for a agit flow pull request, so should
not check it when reopen it.

related: #24231
fix #26334

Signed-off-by: a1012112796 <1012112796@qq.com>
13 months agoUpdate JS dependencies (#26586)
silverwind [Sat, 19 Aug 2023 08:18:39 +0000 (10:18 +0200)]
Update JS dependencies (#26586)

- Update all JS dependencies
- Adapt `ansi_up` import for ESM
- Tested Mermaid and Ansi rendering

13 months agodocs: template variables (#26547)
lonix1 [Sat, 19 Aug 2023 00:24:27 +0000 (02:24 +0200)]
docs: template variables (#26547)

Explanation for using gitea's variables in `.tmpl` files.

Thanks to @wxiaoguang for advising me on
[discord](https://discord.com/channels/322538954119184384/561007778139734027/1141217820441587722).

13 months ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 19 Aug 2023 00:20:23 +0000 (00:20 +0000)]
[skip ci] Updated translations via Crowdin

13 months agoRewrite the DiffFileTreeItem and fix misalignment (#26565)
wxiaoguang [Fri, 18 Aug 2023 19:55:56 +0000 (03:55 +0800)]
Rewrite the DiffFileTreeItem and fix misalignment (#26565)

Fix some layout / user-interaction problems and close #25650 , the code
has been simplified (+46 −108)

<details>

![image](https://github.com/go-gitea/gitea/assets/2114189/55c38812-3338-4048-9137-0cae0ef213e8)

</details>

---------

Co-authored-by: delvh <dev.lh@web.de>
13 months agoAllow text selection in actions step header (#26588)
silverwind [Fri, 18 Aug 2023 18:38:29 +0000 (20:38 +0200)]
Allow text selection in actions step header (#26588)

13 months agoBump xgo to go-1.21.x and node to 20 in release-version (#26589)
silverwind [Fri, 18 Aug 2023 18:32:14 +0000 (20:32 +0200)]
Bump xgo to go-1.21.x and node to 20 in release-version (#26589)

Now that https://github.com/techknowlogick/xgo/issues/163 is resolved,
we can bump these.

It seems there is no way to dry-run this, so we may only notice issues
next release, but I don't expect any.

14 months agoAdd minimum polyfill to support "relative-time-element" in PaleMoon (#26575)
wxiaoguang [Fri, 18 Aug 2023 09:27:11 +0000 (17:27 +0800)]
Add minimum polyfill to support "relative-time-element" in PaleMoon (#26575)

Close #26525

14 months ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 18 Aug 2023 00:21:36 +0000 (00:21 +0000)]
[skip ci] Updated translations via Crowdin

14 months agoFix various line-height styles (#26553)
wxiaoguang [Thu, 17 Aug 2023 21:50:32 +0000 (05:50 +0800)]
Fix various line-height styles (#26553)

Fix #26537

Use the same default line-height as "normalize.css" instead of "1". "1"
is not right because it doesn't work with descent part and causes
overflow problems.

![image](https://github.com/go-gitea/gitea/assets/2114189/3f2e8fb5-b326-4889-bfff-c79c75f1b7f4)

---------

Co-authored-by: silverwind <me@silverwind.io>
14 months agoReturn empty when searching issues with no repos (#26545)
Jason Song [Thu, 17 Aug 2023 17:42:17 +0000 (01:42 +0800)]
Return empty when searching issues with no repos (#26545)

14 months agoSupport rebuilding issue indexer manually (#26546)
Jason Song [Thu, 17 Aug 2023 14:05:17 +0000 (22:05 +0800)]
Support rebuilding issue indexer manually (#26546)

Provide a way to rebuild issue indexer manually.

So if the indexer get outdated because of some bugs like #26539, we can
rebuild it.

<img width="1104" alt="image"
src="https://github.com/go-gitea/gitea/assets/9418365/ac242e29-6f04-47ca-b3d0-801a796448d3">

Co-authored-by: Giteabot <teabot@gitea.io>
14 months agoFix label filter between `all` and `no` (#26557)
CaiCandong [Thu, 17 Aug 2023 13:19:24 +0000 (21:19 +0800)]
Fix label filter between `all` and `no` (#26557)

Regression of https://github.com/go-gitea/gitea/pull/25886.
# Description
For `labelIDs`:

https://github.com/go-gitea/gitea/blob/9afcb0e0461aa48a4fbda7740d4c5424911e35ef/routers/web/repo/issue.go#L171-L174
 - `nil` mean no filter
 - `[0]` mean `no label` filter

When `selectLabels == "0"`, labelIDs should be `[0]` rather than `nil`
 # Before:

https://github.com/go-gitea/gitea/assets/50507092/3dac5075-6da0-4769-ba20-48a56f4063c0

#  After:

https://github.com/go-gitea/gitea/assets/50507092/ff79fd4c-b02e-4dfb-9309-ae7851f4dcdb

Co-authored-by: Giteabot <teabot@gitea.io>
14 months agoFix "issueReposQueryPattern does not match query" (#26556)
Jason Song [Thu, 17 Aug 2023 12:38:02 +0000 (20:38 +0800)]
Fix "issueReposQueryPattern does not match query" (#26556)

Fix
`https://github.com/go-gitea/gitea/pull/26545#discussion_r1295734340`

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
14 months agoSync repo's IsEmpty status correctly (#26517)
wxiaoguang [Thu, 17 Aug 2023 04:43:39 +0000 (12:43 +0800)]
Sync repo's IsEmpty status correctly (#26517)

Close #26509

14 months ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 17 Aug 2023 00:21:25 +0000 (00:21 +0000)]
[skip ci] Updated translations via Crowdin

14 months agoRemove fomantic transition module (#26469)
silverwind [Wed, 16 Aug 2023 22:12:40 +0000 (00:12 +0200)]
Remove fomantic transition module (#26469)

Removes all dropdown and dimmer animations. Works everywhere as far as I
can tell, but need to give this thorough testing. Removes around 70kb
JS/CSS.

Note, I'm not 100% sure regarding the various callbacks, those will need
more investigation, but it appears to work nonetheless.

Fixes: https://github.com/go-gitea/gitea/issues/15709
14 months agoExplain SearchOptions and fix ToSearchOptions (#26542)
Jason Song [Wed, 16 Aug 2023 15:40:13 +0000 (23:40 +0800)]
Explain SearchOptions and fix ToSearchOptions (#26542)

Follow #26012 #26490.

A detailed description has been added to the comment.

14 months agoUpdate go dependencies (#26534)
wxiaoguang [Wed, 16 Aug 2023 12:02:40 +0000 (20:02 +0800)]
Update go dependencies (#26534)

14 months agoDifferentiate better between user settings and admin settings (#26538)
yp05327 [Wed, 16 Aug 2023 10:12:03 +0000 (19:12 +0900)]
Differentiate better between user settings and admin settings (#26538)

User settings page and admin settings page are too similar. I thinlk
this will be better of using `User Settings` and `Admin Settings` as the
navbar's title.

Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/68db06f3-918b-41bc-b4d3-522b1057eb57)

![image](https://github.com/go-gitea/gitea/assets/18380374/24f53d91-54e1-410c-ad9b-438bb2c8069f)

After:

![image](https://github.com/go-gitea/gitea/assets/18380374/6600a872-d630-4ea6-a58f-d9ded7d38067)

![image](https://github.com/go-gitea/gitea/assets/18380374/501cde5d-9868-4cba-829d-ff8bafce695d)

14 months agoAdd missing triggers to update issue indexer (#26539)
Jason Song [Wed, 16 Aug 2023 09:36:05 +0000 (17:36 +0800)]
Add missing triggers to update issue indexer (#26539)

Fix #26536

Follow #26012

Whatever the comment type is, always update the issue indexer. So the
issue indexer will be updated when there is a change in Status,
Assignee, Label, and so on.

I added the logic for `NotifyUpdateComment`, but missed it for
`NotifyCreateIssueComment` and `NotifyDeleteComment`.

14 months agoImprove deadline icon location in milestone list page (#26532)
yp05327 [Wed, 16 Aug 2023 08:22:25 +0000 (17:22 +0900)]
Improve deadline icon location in milestone list page (#26532)

14 months agoUse unique class for breadcrumb divider (#26524)
silverwind [Wed, 16 Aug 2023 00:08:23 +0000 (02:08 +0200)]
Use unique class for breadcrumb divider (#26524)

Fix regression from https://github.com/go-gitea/gitea/pull/25539:
https://github.com/go-gitea/gitea/pull/26519#issuecomment-1678825200.

Before:
<img width="429" alt="Screenshot 2023-08-15 at 15 46 12"
src="https://github.com/go-gitea/gitea/assets/115237/a818f60a-77a2-48fe-8e6f-363d152ccb1e">

After:
<img width="424" alt="Screenshot 2023-08-15 at 15 46 19"
src="https://github.com/go-gitea/gitea/assets/115237/c90159e2-ced2-4a74-8a0f-a1b2b5d0b565">

<img width="605" alt="Screenshot 2023-08-15 at 15 56 11"
src="https://github.com/go-gitea/gitea/assets/115237/3ded6f57-86f4-422a-86cb-56dd2c216dee">

14 months agoFix typo of RunerOwnerID (#26508)
yp05327 [Tue, 15 Aug 2023 23:10:40 +0000 (08:10 +0900)]
Fix typo of RunerOwnerID (#26508)

14 months agoImprove clickable area in repo action view page (#26115)
yp05327 [Tue, 15 Aug 2023 22:44:43 +0000 (07:44 +0900)]
Improve clickable area in repo action view page (#26115)

Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/52e4dda1-0221-440b-93e1-242db8bd5885)
After:

![image](https://github.com/go-gitea/gitea/assets/18380374/dda5e72b-205e-44f7-b4a9-83703021f2d1)

In current design, the clickable area is too small, and it is hard to
find the correct clickable area as the area with background color (div
with class name `job-brief-item selected`) is bigger than it.

---------

Co-authored-by: Giteabot <teabot@gitea.io>
14 months agoFix dark theme highlight for "NameNamespace" (#26519)
wxiaoguang [Tue, 15 Aug 2023 22:10:10 +0000 (06:10 +0800)]
Fix dark theme highlight for "NameNamespace" (#26519)

The color is taken from "Name"

Before:

![image](https://github.com/go-gitea/gitea/assets/2114189/b94d7521-770c-4e14-a63b-f30c44fe883f)

After:

![image](https://github.com/go-gitea/gitea/assets/2114189/d99c1f13-a0c0-4dc8-82ab-bfdd451e46ec)

Co-authored-by: Giteabot <teabot@gitea.io>
14 months agoRemove duplicate CSS import for chroma/base.css (#26523)
silverwind [Tue, 15 Aug 2023 21:13:56 +0000 (23:13 +0200)]
Remove duplicate CSS import for chroma/base.css (#26523)

14 months agoFix project filter bugs (#26490)
CaiCandong [Tue, 15 Aug 2023 14:50:12 +0000 (22:50 +0800)]
Fix project filter bugs (#26490)

related: #26012

### Bugs
1. missing project filter on the issue page.

https://github.com/go-gitea/gitea/blob/1e76a824bcd71acd59cdfb2c4547806bc34b3d86/modules/indexer/issues/dboptions.go#L11-L15
3. incorrect SQL condition: some issue does not belong to a project but
exists on the project_issue table.

https://github.com/go-gitea/gitea/blob/f5dbac9d36f1678b928bee04e85fbd045c725698/models/issues/issue_search.go#L233

### Before:

![before](https://github.com/go-gitea/gitea/assets/50507092/1dcde39e-3e2f-4151-b2c6-4d67bf493c2f)

### After:

![after](https://github.com/go-gitea/gitea/assets/50507092/badfb81f-056d-4a2f-9838-1cba9c15768d)

---------

Co-authored-by: Giteabot <teabot@gitea.io>
14 months agoFix display problems of members and teams unit (#26363)
yp05327 [Tue, 15 Aug 2023 14:00:35 +0000 (23:00 +0900)]
Fix display problems of members and teams unit (#26363)

Fix:
- display member count and team count in the menu bar

![image](https://github.com/go-gitea/gitea/assets/18380374/7f03ced4-67e2-41ce-b19f-a992823726bb)
- Also display member unit in the menu bar if there are no hidden
members in public org

![image](https://github.com/go-gitea/gitea/assets/18380374/31422ad6-7190-438d-8e99-8a4af9cce908)
- hidden member board when there's no seeable members.
In this org, we only have hidden members:

![image](https://github.com/go-gitea/gitea/assets/18380374/d749420b-554a-4483-8cd2-221df61b5ca7)
We will hidden the member board when doer is not the member of this org

![image](https://github.com/go-gitea/gitea/assets/18380374/93bb782e-7d4d-4ad3-a096-133afbc51f8a)
Before:

![image](https://github.com/go-gitea/gitea/assets/18380374/eafc0b3e-6218-42ab-a892-39645d08a5eb)
If you click the number in the members board, you will access the
members page, which is not expected.

![image](https://github.com/go-gitea/gitea/assets/18380374/73d6dadc-0ef2-4ca9-8485-c5f4211bffb2)

---------

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Giteabot <teabot@gitea.io>
14 months agoUse `hidden` over `clip` for text truncation (#26520)
silverwind [Tue, 15 Aug 2023 13:23:51 +0000 (15:23 +0200)]
Use `hidden` over `clip` for text truncation (#26520)

Avoid browser bugs:

- Firefox not cutting off -
https://github.com/go-gitea/gitea/pull/26354#issuecomment-1678456052
- Safari not showing ellipsis -
https://github.com/go-gitea/gitea/pull/26354#issuecomment-1678812801

14 months agoAdd API route to list org secrets (#26485)
Bo-Yi Wu [Tue, 15 Aug 2023 12:32:43 +0000 (20:32 +0800)]
Add API route to list org secrets (#26485)

- Add a new function `CountOrgSecrets` in the file
`models/secret/secret.go`
- Add a new file `modules/structs/secret.go`
- Add a new function `ListActionsSecrets` in the file
`routers/api/v1/api.go`
- Add a new file `routers/api/v1/org/action.go`
- Add a new function `listActionsSecrets` in the file
`routers/api/v1/org/action.go`

go-sdk: https://gitea.com/gitea/go-sdk/pulls/629

---------

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <matti@mdranta.net>
Co-authored-by: Giteabot <teabot@gitea.io>
14 months agoSet "type=button" for editor's toolbar buttons (#26510)
wxiaoguang [Tue, 15 Aug 2023 11:31:48 +0000 (19:31 +0800)]
Set "type=button" for editor's toolbar buttons (#26510)

The editor usually is in a form, so the buttons should have
"type=button", avoid conflicting with the form's submit.

14 months agoApply to become a maintainer (#26514)
CaiCandong [Tue, 15 Aug 2023 09:30:06 +0000 (17:30 +0800)]
Apply to become a maintainer (#26514)

Here is my PR list:- [go-gitea/gitea/pulls (author:caicandong is:merged)](https://github.com/go-gitea/gitea/pulls?q=is%3Apr+sort%3Aupdated-desc+author%3ACaiCandong+is%3Amerged)

14 months agoDetect ogg mime-type as audio or video (#26494)
wxiaoguang [Tue, 15 Aug 2023 02:31:25 +0000 (10:31 +0800)]
Detect ogg mime-type as audio or video (#26494)

"ogg" is just a "container" format for audio and video.

Golang's `DetectContentType` only reports "application/ogg" for
potential ogg files.

Actually it could do more "guess" to see whether it is a audio file or a
video file.

14 months agoUse `object-fit: contain` for oauth2 custom icons (#26493)
wxiaoguang [Mon, 14 Aug 2023 16:21:04 +0000 (00:21 +0800)]
Use `object-fit: contain` for oauth2 custom icons (#26493)

14 months agoadd disable workflow feature (#26413)
a1012112796 [Mon, 14 Aug 2023 15:14:30 +0000 (23:14 +0800)]
add disable workflow feature (#26413)

As title, that's simmilar with github.

![image](https://github.com/go-gitea/gitea/assets/25342410/9e8b2444-63e0-4e87-80da-730c1e4d09d6)

![image](https://github.com/go-gitea/gitea/assets/25342410/6c3a3345-3ba7-48c9-9acd-3e621632491b)

---------

Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Jason Song <i@wolfogre.com>
14 months agoMove dropzone progress bar to bottom to show filename when uploading (#26492)
wxiaoguang [Mon, 14 Aug 2023 14:36:53 +0000 (22:36 +0800)]
Move dropzone progress bar to bottom to show filename when uploading (#26492)

1. Make the "filename" visible
2. Avoiding UI flicker when the uploading is completing