Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification table (merge main and fix) #3

Merged
merged 435 commits into from
Mar 24, 2023
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Feb 23, 2023

  1. Fix SyncOnCommit always return false in API of push_mirrors (go-gitea…

    …#23088)
    
    Fix: go-gitea#22990
    
    ---
    Before, the return value of the api is always false,regrardless of
    whether the entry of `sync_on_commit` is true or false.
    I have confirmed that the value of `sync_on_commit` dropped into the
    database is correct.
    So, I think it is enough to make some small changes.
    sillyguodong authored Feb 23, 2023
    Configuration menu
    Copy the full SHA
    1f09051 View commit details
    Browse the repository at this point in the history

Commits on Feb 24, 2023

  1. Make issue meta dropdown support Enter, confirm before reloading (go-…

    …gitea#23014)
    
    As the title. Label/assignee share the same code.
    
    * Close go-gitea#22607
    * Close go-gitea#20727
    
    Also:
    
    * partially fix for go-gitea#21742, now the comment reaction and menu work with
    keyboard.
    * partially fix for go-gitea#17705, in most cases the comment won't be lost.
    * partially fix for go-gitea#21539
    * partially fix for go-gitea#20347
    * partially fix for go-gitea#7329
    
    ### The `Enter` support
    
    Before, if user presses Enter, the dropdown just disappears and nothing
    happens or the window reloads.
    
    After, Enter can be used to select/deselect labels, and press Esc to
    hide the dropdown to update the labels (still no way to cancel ....
    maybe you can do a Cmd+R or F5 to refresh the window to discard the
    changes .....)
    
    
    This is only a quick patch, the UX is still not perfect, but it's much
    better than before.
    
    
    ### The `confirm` before reloading
    
    And more fixes for the `reload` problem, the new behaviors:
    
    * If nothing changes (just show/hide the dropdown), then the page won't
    be reloaded.
    * If there are draft comments, show a confirm dialog before reloading,
    to avoid losing comments.
    
    That's the best effect can be done at the moment, unless completely
    refactor these dropdown related code.
    
    Screenshot of the confirm dialog:
    
    <details>
    
    
    ![image](https://user-images.githubusercontent.com/2114189/220538288-e2da8459-6a4e-43cb-8596-74057f8a03a2.png)
    
    </details>
    
    ---------
    
    Co-authored-by: Brecht Van Lommel <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    3 people authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    0bc8bb3 View commit details
    Browse the repository at this point in the history
  2. improve FindProjects (go-gitea#23085)

    I found `FindAndCount` which can `Find` and `Count` in the same time
    Maybe it is better to use it in `FindProjects`
    
    ---------
    
    Co-authored-by: Lunny Xiao <[email protected]>
    yp05327 and lunny authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    5b87c05 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    045becf View commit details
    Browse the repository at this point in the history
  4. Fix nil context in RenderMarkdownToHtml (go-gitea#23092)

    Fix go-gitea#23082.
    
    This bug is caused by a nil context in
    go-gitea#23082 (comment) .
    
    ---------
    
    Co-authored-by: Lunny Xiao <[email protected]>
    Zettat123 and lunny authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    a6175b0 View commit details
    Browse the repository at this point in the history
  5. Require approval to run actions for fork pull request (go-gitea#22803)

    Currently, Gitea will run actions automatically which are triggered by
    fork pull request. It's a security risk, people can create a PR and
    modify the workflow yamls to execute a malicious script.
    
    So we should require approval for first-time contributors, which is the
    default strategy of a public repo on GitHub, see [Approving workflow
    runs from public
    forks](https://docs.github.com/en/actions/managing-workflow-runs/approving-workflow-runs-from-public-forks).
    
    Current strategy:
    
    - don't need approval if it's not a fork PR;
    - always need approval if the user is restricted;
    - don't need approval if the user can write;
    - don't need approval if the user has been approved before;
    - otherwise, need approval.
    
    https://user-images.githubusercontent.com/9418365/217207121-badf50a8-826c-4425-bef1-d82d1979bc81.mov
    
    GitHub has an option for that, you can see that at
    `/<owner>/<repo>/settings/actions`, and we can support that later.
    
    <img width="835" alt="image"
    src="https://user-images.githubusercontent.com/9418365/217199990-2967e68b-e693-4e59-8186-ab33a1314a16.png">
    
    ---------
    
    Co-authored-by: Lunny Xiao <[email protected]>
    wolfogre and lunny authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    edf98a2 View commit details
    Browse the repository at this point in the history
  6. Avoid warning for system setting when start up (go-gitea#23054)

    Partially fix go-gitea#23050
    
    After go-gitea#22294 merged, it always has a warning log like `cannot get
    context cache` when starting up. This should not affect any real life
    but it's annoying. This PR will fix the problem. That means when
    starting up, getting the system settings will not try from the cache but
    will read from the database directly.
    
    ---------
    
    Co-authored-by: Lauris BH <[email protected]>
    lunny and lafriks authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    91fa0eb View commit details
    Browse the repository at this point in the history
  7. Fix db.Find bug (go-gitea#23115)

    lunny authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    a8c4f8c View commit details
    Browse the repository at this point in the history
  8. Fix height for sticky head on large screen on PR page (go-gitea#23111)

    Right now on the PR 'File Change' Tab, the file title header sticky to
    the top on large screens has wrong height, resulting in wrong ui
    behavior when scrolling down. This PR is to fix this.
    
    Before:
    
    <img width="964" alt="截屏2023-02-24 17 12 29"
    src="https://user-images.githubusercontent.com/17645053/221140409-025c4a84-6bbe-4b5b-a13f-bd2b79063522.png">
    
    After:
    <img width="1430" alt="截屏2023-02-24 21 10 12"
    src="https://user-images.githubusercontent.com/17645053/221186750-0344d652-4610-4a90-a4c0-7f6269f950d6.png">
    HesterG authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    d20b29d View commit details
    Browse the repository at this point in the history
  9. Bump go.etcd.io/bbolt and blevesearch deps (go-gitea#23062)

    This notably brings support for GOARCH=loong64, among other fixes.
    
    ---------
    
    Signed-off-by: WANG Xuerui <[email protected]>
    Co-authored-by: zeripath <[email protected]>
    xen0n and zeripath authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    e77528b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9eb61b7 View commit details
    Browse the repository at this point in the history
  11. Show empty repos in Admin Repository Management page (go-gitea#23114)

    The **Admin Repository Management** page and the **Explore Repository**
    page both use the `RenderRepoSearch` function. In this function, the
    `OnlyShowRelevant` search option is `true` when querying repositories
    for admin page.
    
    
    https://github.com/go-gitea/gitea/blob/edf98a2dc30956c8e04b778bb7f1ce55c14ba963/routers/web/explore/repo.go#L99-L115
    
    Refer to
    [go-gitea#19361](https://github.com/go-gitea/gitea/pull/19361/files#diff-8058dfb85557010e0592d586675ec62ce406af7068e6311f39c160deac37f149R497),
    the repositories with `is_empty=true` will be hidden if
    `OnlyShowRelevant` is `true`.
    
    Administrators should be able to see all repositories. So
    `OnlyShowRelevant` shouldn't be set to `true` .
    
    ---------
    
    Co-authored-by: Andrew Thornton <[email protected]>
    Zettat123 and zeripath authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    347df0c View commit details
    Browse the repository at this point in the history
  12. Update go.mod dependencies (go-gitea#23126)

    This PR does a bulk update of a lot of our go deps.
    
    I have not included nektos/act and xorm for the following reasons:
    * Xorm updates can sometimes be complex and I'd rather do that in a
    separate PR
    * I think people more update with the actions code should double check
    that the latest nektos/act library works correctly.
    
    ---------
    
    Signed-off-by: Andrew Thornton <[email protected]>
    Co-authored-by: techknowlogick <[email protected]>
    zeripath and techknowlogick authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    740a5ec View commit details
    Browse the repository at this point in the history
  13. Add pagination for dashboard and user activity feeds (go-gitea#22937)

    Previously only the last few activities where available. This works for
    all activity and for activity on a date chosen on the heatmap.
    brechtvl authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    f4920c9 View commit details
    Browse the repository at this point in the history
  14. Fix DBConsistency checks on MSSQL (go-gitea#23132)

    Unfortunately xorm's `builder.Select(...).From(...)` does not escape the
    table names. This is mostly not a problem but is a problem with the
    `user` table.
    
    This PR simply escapes the user table. No other uses of `From("user")`
    where found in the codebase so I think this should be all that is
    needed.
    
    Fix go-gitea#23064
    
    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    d827215 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    843f811 View commit details
    Browse the repository at this point in the history

Commits on Feb 25, 2023

  1. Add "Reviewed by you" filter for pull requests (go-gitea#22927)

    This includes pull requests that you approved, requested changes or
    commented on. Currently such pull requests are not visible in any of the
    filters on /pulls, while they may need further action like merging, or
    prodding the author or reviewers.
    
    Especially when working with a large team on a repository it's helpful
    to get a full overview of pull requests that may need your attention,
    without having to sift through the complete list.
    brechtvl authored Feb 25, 2023
    Configuration menu
    Copy the full SHA
    10cdcb9 View commit details
    Browse the repository at this point in the history
  2. Fix secrets overview page missing from docs sidebar (go-gitea#23143)

    There was a warning while building the docs: `Building sites … WARN
    2023/02/25 08:56:37
    "/workspace/gitea/docs/content/doc/secrets/overview.en-us.md:1:1":
    duplicate menu entry with identifier "overview" in menu "sidebar"`.
    
    ### Before
    
    ![image](https://user-images.githubusercontent.com/20454870/221348741-55cef254-f2ac-4507-9a66-818b406c668f.png)
    
    ### After
    
    ![image](https://user-images.githubusercontent.com/20454870/221348757-42066303-e1b7-43fe-9c4f-e05182fbabdd.png)
    
    Signed-off-by: Yarden Shoham <[email protected]>
    yardenshoham authored Feb 25, 2023
    Configuration menu
    Copy the full SHA
    8540fc4 View commit details
    Browse the repository at this point in the history

Commits on Feb 26, 2023

  1. Configuration menu
    Copy the full SHA
    3570422 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f1bde2f View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2023

  1. Configuration menu
    Copy the full SHA
    07ced72 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b9a9b8e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d27d36f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6117058 View commit details
    Browse the repository at this point in the history
  5. Fix Fomantic UI's touchstart fastclick, always use click for clic…

    …k events (go-gitea#23065)
    
    Using `touchstart` for `click` events is a black magic for mobile
    browsers (Google: `fastclick`).
    
    However, it causes many UX problems if the fastclick is used without
    careful design.
    
    Fomantic UI uses this fastclick for its `dimmer` and `dropdown`, it
    makes mobile users feel strange when they "touch" the dropdown menu.
    
    
    This PR uses a simple patch to fix that behavior. Then the Fomantic
    dropdown only uses `click` for click events.
    
    This PR is simple enough and won't cause hidden bugs even if the patch
    doesn't work. In the future, if there are more patches for Fomantic UI,
    the patches could be placed in a directory like
    `web_src/fomantic/patches/001-fix-click-touchstart`, etc.
    
    
    ![image](https://user-images.githubusercontent.com/2114189/220551915-bd28e8cc-507f-43c7-bb4a-b24f7ff3934d.png)
    
    Co-authored-by: Lunny Xiao <[email protected]>
    wxiaoguang and lunny authored Feb 27, 2023
    Configuration menu
    Copy the full SHA
    303b72c View commit details
    Browse the repository at this point in the history
  6. Add InsecureSkipVerify to Minio Client for Storage (go-gitea#23166)

    Allows using Minio with untrusted certificates
    
    Closes go-gitea#23128
    
    Signed-off-by: Yarden Shoham <[email protected]>
    yardenshoham authored Feb 27, 2023
    Configuration menu
    Copy the full SHA
    0e7bec1 View commit details
    Browse the repository at this point in the history
  7. Speed up HasUserStopwatch & GetActiveStopwatch (go-gitea#23051)

    GetActiveStopwatch & HasUserStopwatch is a hot piece of code that is
    repeatedly called and on examination of the cpu profile for TestGit it
    represents 0.44 seconds of CPU time. This PR reduces this time to 80ms.
    
    ---------
    
    Signed-off-by: Andrew Thornton <[email protected]>
    Co-authored-by: KN4CK3R <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    Co-authored-by: delvh <[email protected]>
    4 people authored Feb 27, 2023
    Configuration menu
    Copy the full SHA
    ef4fc30 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    6e90a14 View commit details
    Browse the repository at this point in the history
  9. Don't run unnecessary steps when only docs changed (go-gitea#23103)

    Remove some unnecessary steps from drone when only docs changed.
    
    ref: https://drone.gitea.io/go-gitea/gitea/68090/1/3
    lunny authored Feb 27, 2023
    Configuration menu
    Copy the full SHA
    725a97c View commit details
    Browse the repository at this point in the history
  10. Change button text for commenting and closing an issue at the same ti…

    …me (go-gitea#23135)
    
    Close  go-gitea#10468
    
    Without SimpleMDE/EasyMDE, using Simple Textarea, the button text could
    be changed when content changes.
    
    After introducing SimpleMDE/EasyMDE, there is no code for updating the
    button text.
    wxiaoguang authored Feb 27, 2023
    Configuration menu
    Copy the full SHA
    8b86ccb View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2023

  1. Configuration menu
    Copy the full SHA
    067b0c2 View commit details
    Browse the repository at this point in the history
  2. Avoid too long names for actions (go-gitea#23162)

    The name of the job or step comes from the workflow file, while the name
    of the runner comes from its registration. If the strings used for these
    names are too long, they could cause db issues.
    wolfogre authored Feb 28, 2023
    Configuration menu
    Copy the full SHA
    cbc9a0f View commit details
    Browse the repository at this point in the history
  3. Write Gitpod app.ini only once (go-gitea#23192)

    Before this change, the `app.ini` would get overwritten on each
    workspace start, confusing Gitea. It asked for reinstallation each time.
    This makes sure the file is written only once by checking it does not
    exist before creating it.
    
    ---
    [Review without whitespace
    diff](https://github.com/go-gitea/gitea/pull/23192/files?w=1)
    
    ---------
    
    Co-authored-by: delvh <[email protected]>
    yardenshoham and delvh authored Feb 28, 2023
    Configuration menu
    Copy the full SHA
    443dcc2 View commit details
    Browse the repository at this point in the history
  4. Make gitea serv respect git binary home (go-gitea#23138)

    Close go-gitea#23137
    
    The old code is too old (8-9 years ago)
    
    Let's try to execute the git commands from git bin home directly.
    
    The verb has been checked above, it could only be:
    * git-upload-pack
    * git-upload-archive
    * git-receive-pack
    * git-lfs-authenticate
    wxiaoguang authored Feb 28, 2023
    Configuration menu
    Copy the full SHA
    f5987c2 View commit details
    Browse the repository at this point in the history
  5. Pass --global when calling git config --get, for consistency with…

    … `git config --set` (go-gitea#23157)
    
    This arose out of go-gitea#22451; it seems we are checking using non-global
    settings to see if a config value is set, in order to decide whether to
    call another global(-indeed) configuration command. This PR changes it
    so that both the check and the set are for global configuration.
    philip-peterson authored Feb 28, 2023
    Configuration menu
    Copy the full SHA
    cbbd372 View commit details
    Browse the repository at this point in the history
  6. Use context parameter in services/repository (go-gitea#23186)

    Use context parameter in `services/repository`.
    
    And use `cache.WithCacheContext(ctx)` to generate push action history
    feeds.
    
    Fix go-gitea#23160
    wolfogre authored Feb 28, 2023
    Configuration menu
    Copy the full SHA
    04347eb View commit details
    Browse the repository at this point in the history
  7. Properly flush unique queues on startup (go-gitea#23154)

    There have been a number of reports of PRs being blocked whilst being
    checked which have been difficult to debug. In investigating go-gitea#23050 I
    have realised that whilst the Warn there is somewhat of a miscall there
    was a real bug in the way that the LevelUniqueQueue was being restored
    on start-up of the PersistableChannelUniqueQueue.
    
    Next there is a conflict in the setting of the internal leveldb queue
    name - This wasn't being set so it was being overridden by other unique
    queues.
    
    This PR fixes these bugs and adds a testcase.
    
    Thanks to @brechtvl  for noticing the second issue.
    
    Fix go-gitea#23050
    and others
    
    ---------
    
    Signed-off-by: Andrew Thornton <[email protected]>
    Co-authored-by: techknowlogick <[email protected]>
    zeripath and techknowlogick authored Feb 28, 2023
    Configuration menu
    Copy the full SHA
    27e49cd View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2023

  1. Configuration menu
    Copy the full SHA
    3e426bb View commit details
    Browse the repository at this point in the history
  2. Fix incorrect checkbox behaviors in the dashboard repolist's filter (g…

    …o-gitea#23147)
    
    Co-author: yp05327 , this PR is based on yp05327's go-gitea#22813.
    
    The problems of the old DashboardRepoList / repolist.tmpl: 
    
    * It mixes many different frameworks together
    * It "just works", bug on bug
    * It uses many anti-pattern of Vue
    
    This PR:
    
    * Fix bugs and close go-gitea#22800
    * Decouple the "checkbox" elements from Fomantic UI (only use CSS
    styles)
    * Simplify the HTML layout
    * Simplify JS logic
    * Make it easier to refactor the DashboardRepoList into a pure Vue
    component in the future.
    
    ### Screenshots
    
    #### Default
    
    ![image](https://user-images.githubusercontent.com/2114189/221355768-a3eb5b23-85b4-4e3d-b906-844d8b15539d.png)
    
    ####  Click "Archived" to make it checked
    
    ![image](https://user-images.githubusercontent.com/2114189/221355777-9a104ddf-52a7-4504-869a-43a73827d802.png)
    
    ####  Click "Archived" to make it intermediate
    
    ![image](https://user-images.githubusercontent.com/2114189/221355802-0f67a073-67ad-4e92-84a6-558c432103a5.png)
    
    ####  Click "Archived" to make it unchecked
    
    ![image](https://user-images.githubusercontent.com/2114189/221355810-acf1d9d8-ccce-47fe-a02e-70cf4e666331.png)
    
    ---------
    
    Co-authored-by: yp05327 <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    3 people authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    7a5af25 View commit details
    Browse the repository at this point in the history
  3. Order pull request conflict checking by recently updated, for each pu…

    …sh (go-gitea#23220)
    
    When a change is pushed to the default branch and many pull requests are
    open for that branch, conflict checking can take some time.
    
    Previously it would go from oldest to newest pull request. Now
    prioritize pull requests that are likely being actively worked on or
    prepared for merging.
    
    This only changes the order within one push to one repository, but the
    change is trivial and can already be quite helpful for smaller Gitea
    instances where a few repositories have most pull requests. A global
    order would require deeper changes to queues.
    brechtvl authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    df48af2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    403f3e9 View commit details
    Browse the repository at this point in the history
  5. Do not create commit graph for temporary repos (go-gitea#23219)

    When fetching remotes for conflict checking, skip unnecessary and
    potentially slow writing of commit graphs.
    
    In a test with the Blender repository, this reduces conflict checking
    time for one pull request from about 2s to 0.1s.
    brechtvl authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    0268ee5 View commit details
    Browse the repository at this point in the history
  6. Pull Requests: add button to compare force pushed commits (go-gitea#2…

    …2857)
    
    To quickly see what changed without having to re-read the whole diff.
    brechtvl authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    545495d View commit details
    Browse the repository at this point in the history
  7. Allow <video> in MarkDown (go-gitea#22892)

    As you can imagine, for the Blender development process it is rather
    nice to be able to include videos in issues, pull requests, etc.
    
    This PR allows the `<video>` HTML tag to be used in MarkDown, with the
    `src`, `autoplay`, and `controls` attributes.
    
    ## Help Needed
    
    To have this fully functional, personally I feel the following things
    are still missing, and would appreciate some help from the Gitea team.
    
    ### Styling
    
    Some CSS is needed, but I couldn't figure out which of the LESS files
    would work. I tried `web_src/less/markup/content.less` and
    `web_src/less/_base.less`, but after running `make` the changes weren't
    seen in the frontend.
    
    This I would consider a minimal set of CSS rules to be applied:
    
    ```css
    video {
      max-width: 100%;
      max-height: 100vh;
    }
    ```
    
    ### Default Attributes
    
    It would be fantastic if Gitea could add some default attributes to the
    `<video>` tag. Basically `controls` should always be there, as there is
    no point in disallowing scrolling through videos, looping them, etc.
    
    ### Integration with the attachments system
    
    Another thing that could be added, but probably should be done in a
    separate PR, is the integration with the attachments system. Dragging in
    a video should attach it, then generate the appropriate MarkDown/HTML.
    drsybren authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    de6c718 View commit details
    Browse the repository at this point in the history
  8. Add loading yaml label template files (go-gitea#22976)

    Extract from go-gitea#11669 and enhancement to go-gitea#22585 to support exclusive
    scoped labels in label templates
    
    * Move label template functionality to label module
    * Fix handling of color codes
    * Add Advanced label template
    lafriks authored Mar 1, 2023
    Configuration menu
    Copy the full SHA
    58b4143 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2023

  1. Configuration menu
    Copy the full SHA
    785a3e6 View commit details
    Browse the repository at this point in the history
  2. Fix missed .hide class (go-gitea#23208)

    go-gitea#22950 removed `hide` class, and
    use `gt-hidden`
    But there are some missed `hide`....
    
    ---------
    
    Co-authored-by: wxiaoguang <[email protected]>
    yp05327 and wxiaoguang authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    0945bf6 View commit details
    Browse the repository at this point in the history
  3. Fix commit retrieval by tag (go-gitea#21804)

    It is not correct to return tag data when commit data is requested, so
    remove the hacky code that overwrote parts of a commit with parts of a
    tag.
    
    This fixes commit retrieval by tag for both the latest commit in the UI
    and the commit info on tag webhook events.
    
    Fixes: go-gitea#21687
    Replaces: go-gitea#21693
    
    <img width="324" alt="Screenshot 2022-11-13 at 15 26 37"
    src="https://user-images.githubusercontent.com/115237/201526975-736c6ea7-ad6a-467a-a823-9a63d6ecb718.png">
    
    <img width="789" alt="image"
    src="https://user-images.githubusercontent.com/115237/201526876-90a13ffc-1e5c-4d76-911b-f1ae51e8eaab.png">
    
    ---------
    
    Co-authored-by: Lunny Xiao <[email protected]>
    silverwind and lunny authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    ea1d097 View commit details
    Browse the repository at this point in the history
  4. Close the temp file when dumping database to make the temp file can b…

    …e deleted on Windows (go-gitea#23249)
    
    There was no `dbDump.Close()` before, Windows doesn't like to delete
    opened files.
    wxiaoguang authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    294124d View commit details
    Browse the repository at this point in the history
  5. Improve frontend guideline (go-gitea#23252)

    If an event listener must be `async`, the `e.preventDefault()` should be
    before any `await`,
    it's recommended to put it at the beginning of the function.
    wxiaoguang authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    0a9a3c2 View commit details
    Browse the repository at this point in the history
  6. Refactor ctx in templates (go-gitea#23105)

    Before, the `dict "ctx" ...` map is used to pass data between templates.
    
    Now, more and more templates need to use real Go context:
    
    * go-gitea#22962
    * go-gitea#23092
    
    
    `ctx` is a Go concept for `Context`, misusing it may cause problems, and
    it makes it difficult to review or refactor.
    
    This PR contains 2 major changes:
    
    * In the top scope of a template, the `$` is the same as the `.`, so the
    old labels_sidebar's `root` is the `ctx`. So this `ctx` could just be
    removed.
    go-gitea@bd7f218
    * Rename all other `ctx` to `ctxData`, and it perfectly matches how it
    comes from backend: `"ctxData": ctx.Data`.
    go-gitea@7c01260
    
    
    
    From now on, there is no `ctx` in templates. There are only:
    
    * `ctxData` for passing data
    * `Context` for Go context
    wxiaoguang authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    ce73492 View commit details
    Browse the repository at this point in the history
  7. Improve update-locales script and fix locale processing bug (go-gitea…

    …#23240)
    
    The locales of Gitea has been broken for long time, till now, it's still
    not fully fixed.
    
    One of the root problems is that the `ini` library is quite quirky and
    the `update-locales` script doesn't work well for all cases.
    
    
    This PR fixes the `update-locales` script to make it satisfy `ini`
    library and the crowdin.
    
    See the comments for more details.
    
    The `locale_zh-CN.ini` is an example, it comes from crowdin and is
    processed by the new `update-locales.sh`. Especially see the `feed_of`:
    https://github.com/go-gitea/gitea/pull/23240/files#diff-321f6ca4eae1096eba230e93c4740f9903708afe8d79cf2e57f4299786c4528bR268
    wxiaoguang authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    d72462d View commit details
    Browse the repository at this point in the history
  8. Fix switched citation format (go-gitea#23250)

    Due to switched input parameters, the citation texts for Bibtex and Apa
    were switched.
    This pull request fixes go-gitea#23244
    BlenderDefender authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    a14e6af View commit details
    Browse the repository at this point in the history
  9. Use async await to fix empty quote reply at first time (go-gitea#23168)

    The reason why quote reply is empty is when quote reply is clicked, it
    triggers the click function on `.comment-form-reply` button, and when
    the first time this function is triggered, easyMDE for the reply has not
    yet initialized, so that click handler of `.quote-reply` button in
    `repo-legacy.js` got an `undefined` as easyMDE, and the following lines
    which put quoted reply into the easyMDE is not executed.
    The workaround in this PR is to pass the replied content to
    '.comment-form-reply' button if easyMDE is not yet initialized (quote
    reply first clicked) and put the replied content into it the after
    easyMDE is created.
    Now quote reply on first click:
    
    
    https://user-images.githubusercontent.com/17645053/221452823-fc699d50-1649-4af1-952e-f04fc8d2978e.mov
    
    <br />
    
    
    Update:
    The above change is not appropriate as stated in the
    [comment](go-gitea#23168 (comment))
    Use await instead
    
    Close go-gitea#22075.
    Close go-gitea#23247.
    HesterG authored Mar 2, 2023
    Configuration menu
    Copy the full SHA
    ffce336 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2023

  1. Configuration menu
    Copy the full SHA
    0bfcbcc View commit details
    Browse the repository at this point in the history
  2. Use correct README link to render the README (go-gitea#23152)

    `renderReadmeFile` needs `readmeTreelink` as parameter but gets
    `treeLink`.
    The values of them look like as following:
    `treeLink`:  `/{OwnerName}/{RepoName}/src/branch/{BranchName}`
    `readmeTreelink`:
    `/{OwnerName}/{RepoName}/src/branch/{BranchName}/{ReadmeFileName}`
    
    `path.Dir` in
    
    https://github.com/go-gitea/gitea/blob/8540fc45b11eff9a73753ca139f8ea5c38509bf5/routers/web/repo/view.go#L316
    should convert `readmeTreelink` into
    `/{OwnerName}/{RepoName}/src/branch/{BranchName}` instead of the current
    `/{OwnerName}/{RepoName}/src/branch`.
    
    Fixes go-gitea#23151
    
    ---------
    
    Co-authored-by: Jason Song <[email protected]>
    Co-authored-by: John Olheiser <[email protected]>
    Co-authored-by: silverwind <[email protected]>
    4 people authored Mar 3, 2023
    Configuration menu
    Copy the full SHA
    699f202 View commit details
    Browse the repository at this point in the history
  3. Fix cannot reopen after pushing commits to a closed PR (go-gitea#23189)

    Close: go-gitea#22784
    
    1. On GH, we can reopen a PR which was closed before after pushing
    commits. After reopening PR, we can see the commits that were pushed
    after closing PR in the time line. So the case of
    [issue](go-gitea#22784) is a bug which
    needs to be fixed.
    
    2. After closing a PR and pushing commits, `headBranchSha` is not equal
    to `sha`(which is the last commit ID string of reference). If the
    judgement exists, the button of reopen will not display. So, skip the
    judgement if the status of PR is closed.
    
    ![image](https://user-images.githubusercontent.com/33891828/222037529-651fccf9-0bba-433e-b2f0-79c17e0cc812.png)
    
    3. Even if PR is already close, we should still insert comment record
    into DB when we push commits.
    So we should still call  function `CreatePushPullComment()`.
    
    https://github.com/go-gitea/gitea/blob/067b0c2664d127c552ccdfd264257caca4907a77/services/pull/pull.go#L260-L282
    So, I add a switch(`includeClosed`) to the
    `GetUnmergedPullRequestsByHeadInfo` func to control whether the status
    of PR must be open. In this case, by setting `includeClosed` to `true`,
    we can query the closed PR.
    
    ![image](https://user-images.githubusercontent.com/33891828/222621045-bb80987c-10c5-4eac-aa0c-1fb9c6aefb51.png)
    
    4. In the loop of comments, I use the`latestCloseCommentID` variable to
    record the last occurrence of the close comment.
    In the go template, if the status of PR is closed, the comments whose
    type is `CommentTypePullRequestPush(29)` after `latestCloseCommentID`
    won't be rendered.
    
    ![image](https://user-images.githubusercontent.com/33891828/222058913-c91cf3e3-819b-40c5-8015-654b31eeccff.png)
    e.g.
    1). The initial status of the PR is opened.
    
    ![image](https://user-images.githubusercontent.com/33891828/222453617-33c5093e-f712-4cd6-8489-9f87e2075869.png)
    2). Then I click the button of `Close`.  PR is closed now.
    
    ![image](https://user-images.githubusercontent.com/33891828/222453694-25c588a9-c121-4897-9ae5-0b13cf33d20b.png)
    3). I try to push a commit to this PR, even though its current status is
    closed.
    
    ![image](https://user-images.githubusercontent.com/33891828/222453916-361678fb-7321-410d-9e37-5a26e8095638.png)
    But in comments list, this commit do not display.This is as expected :)
    
    ![image](https://user-images.githubusercontent.com/33891828/222454169-7617a791-78d2-404e-be5e-77d555f93313.png)
    4). Click the `Reopen` button, the commit which is pushed after closing
    PR display now.
    
    ![image](https://user-images.githubusercontent.com/33891828/222454533-897893b6-b96e-4701-b5cb-b1800f382b8f.png)
    
    ---------
    
    Co-authored-by: Lunny Xiao <[email protected]>
    sillyguodong and lunny authored Mar 3, 2023
    Configuration menu
    Copy the full SHA
    2f49b55 View commit details
    Browse the repository at this point in the history
  4. Revert relative links to absolute links in mail templates (go-gitea#2…

    …3267)
    
    Follow go-gitea#21986 , fix regression.
    
    The mail templates should always use `AppURL` (the full absolute URL)
    wxiaoguang authored Mar 3, 2023
    Configuration menu
    Copy the full SHA
    807e8e2 View commit details
    Browse the repository at this point in the history
  5. Fix grammar in error message (go-gitea#23273)

    Fixes the grammar in the error message in case a runner token has
    already been activated
    ChristianSch authored Mar 3, 2023
    Configuration menu
    Copy the full SHA
    79acf7a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7f9d58f View commit details
    Browse the repository at this point in the history
  7. Fix GetFilesChangedBetween if the file name may be escaped (go-gitea#…

    …23272)
    
    The code for GetFilesChangedBetween uses `git diff --name-only
    base..head` to get the names of files changed between base and head
    however this forgets that git will escape certain values.
    
    This PR simply switches to use `-z` which has the `NUL` character as the
    separator.
    
    Ref go-gitea#22568 (comment)
    
    Signed-off-by: Andrew Thornton <[email protected]>
    Co-authored-by: techknowlogick <[email protected]>
    zeripath and techknowlogick authored Mar 3, 2023
    Configuration menu
    Copy the full SHA
    5c4075e View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2023

  1. Fix various bugs for "install" page (go-gitea#23194)

    ## TLDR
    
    * Fix the broken page / broken image problem when click "Install"
    * Close go-gitea#20089
    * Fix the Password Hash Algorithm display problem for go-gitea#22942
    * Close go-gitea#23183
    * Close go-gitea#23184
    
    ## Details
    
    ### The broken page / broken image problem when click "Install"
    (Redirect failed after install gitea go-gitea#23184)
    
    Before: when click "install", all new requests will fail, because the
    server has been restarted. Users just see a broken page with broken
    images, sometimes the server is not ready but the user would have been
    redirect to "/user/login" page, then the users see a new broken page
    (connection refused or something wrong ...)
    
    After: only check InstallLock=true for necessary handlers, and sleep for
    a while before restarting the server, then the browser has enough time
    to load the "post-install" page. And there is a script to check whether
    "/user/login" is ready, the user will only be redirected to the login
    page when the server is ready.
    
    ### During new instance setup make 'Gitea Base URL' filled from
    window.location.origin go-gitea#20089
    
    If the "app_url" input contains `localhost` (the default value from
    config), use current window's location href as the `app_url` (aka
    ROOT_URL)
    
    ### Fix the Password Hash Algorithm display problem for "Provide the
    ability to set password hash algorithm parameters go-gitea#22942"
    
    Before: the UI shows `pbkdf2$50000$50`
    
    <details>
    
    ![image](https://user-images.githubusercontent.com/2114189/221917143-e1e54798-1698-4fee-a18d-00c48081fc39.png)
    
    </details>
    
    After: the UI shows `pbkdf2`
    
    <details>
    
    ![image](https://user-images.githubusercontent.com/2114189/221916999-97a15be8-2ebb-4a01-bf93-dac18e354fcc.png)
    
    </details>
    
    ### GET data: net::ERR_INVALID_URL go-gitea#23183
    
    Cause by empty `data:` in `<link rel="manifest"
    href="data:{{.ManifestData}}">`
    
    ---------
    
    Co-authored-by: Jason Song <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    Co-authored-by: techknowlogick <[email protected]>
    4 people authored Mar 4, 2023
    Configuration menu
    Copy the full SHA
    b2359f3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7b9e23c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    47bb5f1 View commit details
    Browse the repository at this point in the history
  4. Fix code wrap for unbroken lines (go-gitea#23268)

    ## The Problem
    
    `overflow-wrap: break-word` doesn't work well for unbroken lines. Use
    `overflow-wrap: anywhere` instead, and remove legacy alias `word-wrap`
    
    ## Before
    
    
    ![image](https://user-images.githubusercontent.com/2114189/222743939-5f38d9e4-18d8-4ae0-8078-4b3a59195a30.png)
    
    ## After
    
    
    ![image](https://user-images.githubusercontent.com/2114189/222743833-0e0cfdbb-7b2e-420d-99f9-b1b45dde521a.png)
    
    ---------
    
    Co-authored-by: silverwind <[email protected]>
    wxiaoguang and silverwind authored Mar 4, 2023
    Configuration menu
    Copy the full SHA
    787a05a View commit details
    Browse the repository at this point in the history
  5. update to mermaid v10 (go-gitea#23178)

    fix go-gitea#23153
    
    ---------
    
    Co-authored-by: silverwind <[email protected]>
    techknowlogick and silverwind authored Mar 4, 2023
    Configuration menu
    Copy the full SHA
    af4b00c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ca84a61 View commit details
    Browse the repository at this point in the history
  7. Avoid panic caused by broken payload when creating commit status (go-…

    …gitea#23216)
    
    When creating commit status for Actons jobs, a payload with nil
    `HeadCommit` will cause panic.
    
    Reported at:
    https://gitea.com/gitea/act_runner/issues/28#issuecomment-732166
    
    Although the `HeadCommit` probably can not be nil after go-gitea#23215,
    `CreateCommitStatus` should protect itself, to avoid being broken in the
    future.
    
    In addition, it's enough to print error log instead of returning err
    when `CreateCommitStatus` failed.
    
    ---------
    
    Co-authored-by: delvh <[email protected]>
    wolfogre and delvh authored Mar 4, 2023
    Configuration menu
    Copy the full SHA
    47b912c View commit details
    Browse the repository at this point in the history
  8. Make Ctrl+Enter submit a pending comment (starting review) instead of…

    … submitting a single comment (go-gitea#23245)
    
    Close go-gitea#23241
    
    Before: press Ctrl+Enter in the Code Review Form, a single comment will
    be added.
    
    After: press Ctrl+Enter in the Code Review Form, start the review with
    pending comments.
    
    
    The old name `is_review` is not clear, so the new code use
    `pending_review` as the new name.
    
    Co-authored-by: delvh <[email protected]>
    Co-authored-by: techknowlogick <[email protected]>
    3 people authored Mar 4, 2023
    Configuration menu
    Copy the full SHA
    188c8c1 View commit details
    Browse the repository at this point in the history
  9. Support sanitising the URL by removing extra slashes in the URL (go-g…

    …itea#21333)
    
    Changes in this PR :
    
    Strips incoming request URL of additional slashes (/). For example an
    input like
    
    `https://git.data.coop//halfd/new-website.git` is translated to
    `https://git.data.coop/halfd/new-website.git`
    
    Fixes go-gitea#20462
    
    Fix go-gitea#23242
    
    ---------
    
    Co-authored-by: zeripath <[email protected]>
    Co-authored-by: Jason Song <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    4 people authored Mar 4, 2023
    Configuration menu
    Copy the full SHA
    547c173 View commit details
    Browse the repository at this point in the history
  10. Improve sed detection in update-locales.sh (go-gitea#23254)

    - ~~Make scripts work from any directory~~
    - Detect sed version just like Makefile does
    
    ---------
    
    Co-authored-by: Lunny Xiao <[email protected]>
    Co-authored-by: wxiaoguang <[email protected]>
    Co-authored-by: John Olheiser <[email protected]>
    4 people authored Mar 4, 2023
    Configuration menu
    Copy the full SHA
    b6d2c94 View commit details
    Browse the repository at this point in the history
  11. Add default owner team to privated_org and limited_org in unit test (g…

    …o-gitea#23109)
    
    Related to go-gitea#22705 's CI result
    [here](https://drone.gitea.io/go-gitea/gitea/68043/2/16)
    > IsOrganizationOwner() [E] [63f61849-7] Organization does not have
    owner team: 23
    yp05327 authored Mar 4, 2023
    Configuration menu
    Copy the full SHA
    6864583 View commit details
    Browse the repository at this point in the history
  12. Re-add accidentally removed hacking-on-gitea.zh-cn.md (go-gitea#23297)

    go-gitea#21627 accidentally removed the docs file `hacking-on-gitea.zh-cn.md`.
    This re-adds it and merges some changes from go-gitea#23289
    lunny authored Mar 4, 2023
    Configuration menu
    Copy the full SHA
    8d6e9bc View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2023

  1. Configuration menu
    Copy the full SHA
    390d270 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5d621fe View commit details
    Browse the repository at this point in the history
  3. Scoped labels: set aria-disabled on muted Exclusive option for a11y (g…

    …o-gitea#23306)
    
    It is convenient to be able to toggle off this option after removing /
    from the name. This ensures the muted state is communicated to blind
    users even when the input is not fully disabled.
    
    Part of go-gitea#22974
    
    Co-authored-by: Lunny Xiao <[email protected]>
    brechtvl and lunny authored Mar 5, 2023
    Configuration menu
    Copy the full SHA
    e893560 View commit details
    Browse the repository at this point in the history
  4. Improve the frontend guideline (go-gitea#23298)

    ### The CustomEvent prefix
    
    There was already `ce-quick-submit`, the `ce-` prefix seems better than
    `us-`. Rename the only `us-` prefixed `us-load-context-popup` to `ce-`
    prefixed.
    
    ### Styles and Attributes in Go HTML Template
    
    go-gitea#21855 (comment)
    
    Suggest to stick to `class="c1 {{if $var}}c2{{end}}"`
    
    The readability and maintainability should be applied to the code which
    is read by developers, but not for the generated outputs.
    
    The template code is the code for developers, while the generated HTML
    are only for browsers.
    
    The `class="c1 {{if $var}}c2{{end}}"` style is clearer for developers
    and more intuitive, and the generated HTML also makes browsers happy (a
    few spaces do not affect anything)
    
    Think about a more complex case:
    
    * `class="{{if $active}}active{{end}} menu item {{if $show}}show{{end}}
    {{if $warn}}warn{{end}}"`
    * --vs--
    * `class="{{if $active}}active {{end}}menu item{{if $show}}
    show{{end}}{{if $warn}} warn{{end}}"`
    
    The first style make it clearer to see each CSS class name with its
    `{{if}}` block.
    
    Co-authored-by: Lunny Xiao <[email protected]>
    wxiaoguang and lunny authored Mar 5, 2023
    Configuration menu
    Copy the full SHA
    21a1d76 View commit details
    Browse the repository at this point in the history
  5. Change interactiveBorder to fix popup preview (go-gitea#23169)

    Close go-gitea#23073. 
    Used the solution as reference to the reply:
    go-gitea#23073 (comment)
    Here made the change inside the `contextpopup.js` because this is where
    the popup component is created and tippy configuration is given.
    
    Co-authored-by: Lunny Xiao <[email protected]>
    HesterG and lunny authored Mar 5, 2023
    Configuration menu
    Copy the full SHA
    ea7f0d6 View commit details
    Browse the repository at this point in the history
  6. Add context when rendering labels or emojis (go-gitea#23281)

    This branch continues the work of go-gitea#23092 and attempts to rid the
    codebase of any `nil` contexts when using a `RenderContext`.
    
    Anything that renders markdown or does post processing may call
    `markup.sha1CurrentPatternProcessor()`, and this runs
    `git.OpenRepository()`, which needs a context. It will panic if the
    context is `nil`. This branch attempts to _always_ include a context
    when creating a `RenderContext` to prevent future crashes.
    
    Co-authored-by: Kyle D <[email protected]>
    jtran and kdumontnu authored Mar 5, 2023
    Configuration menu
    Copy the full SHA
    4de8039 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2023

  1. Configuration menu
    Copy the full SHA
    ce43208 View commit details
    Browse the repository at this point in the history
  2. Fix broken code editor diff preview (go-gitea#23307)

    Close go-gitea#23265, the code editor diff preview has been broken for long
    time.
    
    * Fix the regression for `data-line-num`
        * `.code-diff` is necessary to show the line number
    * Fix the regression for go-gitea#12434
    * The diff:
    [12434](https://github.com/go-gitea/gitea/pull/12434/files?diff=unified&w=1)
        * It hides the Type(4) (aka HunkHeader)  for unexpected cases.
    
    
    Diff with ignoring whitespaces:
    https://github.com/go-gitea/gitea/pull/23307/files?diff=unified&w=1
    
    Before: see the issue go-gitea#23265
    
    After:
    
    ![image](https://user-images.githubusercontent.com/2114189/222942810-286dc9af-0b39-4e9d-8585-8c299b881241.png)
    wxiaoguang authored Mar 6, 2023
    Configuration menu
    Copy the full SHA
    6886706 View commit details
    Browse the repository at this point in the history
  3. Update hacking-on-gitea-zh_cn documentation (go-gitea#23315)

    This PR fix outdated hacking-on-gitea-zh_cn documentation.
    
    ---------
    
    Co-authored-by: Jason Song <[email protected]>
    lunny and wolfogre authored Mar 6, 2023
    Configuration menu
    Copy the full SHA
    e080013 View commit details
    Browse the repository at this point in the history
  4. Scoped labels: don't require holding alt key to remove (go-gitea#23303)

    Alt doesn't work on all browsers, the simplest solution for v1.19 is to
    just not require it and toggle the label by just clicking.
    
    Part of go-gitea#22974
    
    Co-authored-by: Lauris BH <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    3 people authored Mar 6, 2023
    Configuration menu
    Copy the full SHA
    68d7d77 View commit details
    Browse the repository at this point in the history
  5. Add ActionRunStatus component (go-gitea#23259)

    Related to:
    go-gitea#23212 (comment)
    
    Decrease duplication of SvgIcon when display a run status svg.
    
    ---------
    
    Co-authored-by: Lunny Xiao <[email protected]>
    yp05327 and lunny authored Mar 6, 2023
    Configuration menu
    Copy the full SHA
    f0b0f22 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    471b6d2 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    3f547c7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e7b8988 View commit details
    Browse the repository at this point in the history
  9. Remove unnecessary space on link (go-gitea#23334)

    The action run title has a blank. This PR removes it.
    lunny authored Mar 6, 2023
    Configuration menu
    Copy the full SHA
    27ba7ff View commit details
    Browse the repository at this point in the history
  10. Update documentation for the new YAML label file format (go-gitea#23020)

    update documentation to include an overview of the yaml label template that is part of PR go-gitea#22976
    
    Signed-off-by: Jon Roadley-Battin <[email protected]>
    
    ---------
    
    Co-authored-by: Yarden Shoham <[email protected]>
    Co-authored-by: Lauris BH <[email protected]>
    Co-authored-by: John Olheiser <[email protected]>
    Co-authored-by: delvh <[email protected]>
    5 people authored Mar 6, 2023
    Configuration menu
    Copy the full SHA
    84a2993 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2023

  1. Refactor setting.Database.UseXXX to methods (go-gitea#23354)

    Replace go-gitea#23350.
    
    Refactor `setting.Database.UseMySQL` to
    `setting.Database.Type.IsMySQL()`.
    
    To avoid mismatching between `Type` and `UseXXX`.
    
    This refactor can fix the bug mentioned in go-gitea#23350, so it should be
    backported.
    wolfogre authored Mar 7, 2023
    Configuration menu
    Copy the full SHA
    c842388 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4c59c8c View commit details
    Browse the repository at this point in the history
  3. Fix adding of empty class name (go-gitea#23352)

    This PR is to fix the error shown below. The reason is because
    [`class-name`
    prop](https://github.com/go-gitea/gitea/blob/main/web_src/js/components/ActionRunStatus.vue#L6)
    given to `svg` component has a space, and classList cannot add empty
    string.
    
    https://user-images.githubusercontent.com/17645053/223346720-c7f9de43-5e69-4ecf-93c0-90bf04090693.mov
    
    ---------
    
    Co-authored-by: Lunny Xiao <[email protected]>
    HesterG and lunny authored Mar 7, 2023
    Configuration menu
    Copy the full SHA
    a2f4446 View commit details
    Browse the repository at this point in the history
  4. Refactor and tidy-up the merge/update branch code (go-gitea#22568)

    The merge and update branch code was previously a little tangled and had
    some very long functions. The functions were not very clear in their
    reasoning and there were deficiencies in their logging and at least one
    bug in the handling of LFS for update by rebase.
    
    This PR substantially refactors this code and splits things out to into
    separate functions. It also attempts to tidy up the calls by wrapping
    things in "context"s. There are also attempts to improve logging when
    there are errors.
    
    Signed-off-by: Andrew Thornton <[email protected]>
    
    ---------
    
    Signed-off-by: Andrew Thornton <[email protected]>
    Co-authored-by: techknowlogick <[email protected]>
    Co-authored-by: delvh <[email protected]>
    3 people authored Mar 7, 2023
    Configuration menu
    Copy the full SHA
    8598356 View commit details
    Browse the repository at this point in the history
  5. Pass context to avatar for projects view (go-gitea#23359)

    Previously, a 500 response was returned when
    - an issue had assignees
    - the issue was assigned to a project
    - you tried to view this project
    
    Co-authored-by: techknowlogick <[email protected]>
    delvh and techknowlogick authored Mar 7, 2023
    Configuration menu
    Copy the full SHA
    608a3ee View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2023

  1. Configuration menu
    Copy the full SHA
    2dc4f80 View commit details
    Browse the repository at this point in the history
  2. Fix incorrect display for comment context menu (go-gitea#23343)

    Replace go-gitea#23342 
    
    Fix a regression of go-gitea#23014: the `a` couldn't be used here because
    Fomantic UI has style conflicts: `.ui.comments .comment .actions a {
    display: inline-block; }`
    
    
    And complete one more of my TODOs: "in the future there could be a
    special CSS class for it"
    wxiaoguang authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    b70c7f8 View commit details
    Browse the repository at this point in the history
  3. Do not recognize text files as audio (go-gitea#23355)

    Close go-gitea#17108
    
    This PR uses a trick (removing the ID3 tag) to detect the content again
    to to see whether the content is text type.
    
    ---------
    
    Co-authored-by: delvh <[email protected]>
    Co-authored-by: techknowlogick <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    4 people authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    7e3b7c2 View commit details
    Browse the repository at this point in the history
  4. Clean Path in Options (go-gitea#23006)

    At the Moment it is possible to read files in another Directory as
    supposed using the Options functions. e.g.
    `options.Gitignore("../label/Default) `. This was discovered while
    working on go-gitea#22783, which exposes `options.Gitignore()` through the
    public API. At the moment, this is not a security problem, as this
    function is only used internal, but I thought it would be a good idea to
    make a PR to fix this for all types of Options files, not only
    Gitignore, to make it safe for the further. This PR should be merged
    before the linked PR.
    
    ---------
    
    Co-authored-by: Jason Song <[email protected]>
    JakobDev and wolfogre authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    a12f575 View commit details
    Browse the repository at this point in the history
  5. Reduce duplicate and useless code in options (go-gitea#23369)

    Avoid maintaining two copies of code, some functions can be used with
    both `bindata` and `no bindata`.
    
    And removed `GetRepoInitFile`, it's useless now.
    `Readme`/`Gitignore`/`License`/`Labels` will clean the name and use
    custom files when available.
    wolfogre authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    090e753 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b116418 View commit details
    Browse the repository at this point in the history
  7. Fix panic when getting notes by ref (go-gitea#23372)

    Fix go-gitea#23357 .
    
    Now the `/repos/{owner}/{repo}/git/notes/{sha}` API supports getting
    notes by a ref or sha
    (https://try.gitea.io/api/swagger#/repository/repoGetNote). But the
    `GetNote` func can only accept commit ID.
    
    https://github.com/go-gitea/gitea/blob/a12f5757372f751d25f9e5ca1f168f6920ded894/modules/git/notes_nogogit.go#L18
    
    So we need to convert the query parameter to commit ID before calling
    `GetNote`.
    Zettat123 authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    15a1c2d View commit details
    Browse the repository at this point in the history
  8. add user visibility in dashboard navbar (go-gitea#22747)

    Add private/limited tag to dashboard user/org list dropdown menu
    
    ![image](https://user-images.githubusercontent.com/18380374/216752207-5beb5281-1b0b-4e2b-adfc-b39c192c5032.png)
    
    Co-authored-by: Lunny Xiao <[email protected]>
    yp05327 and lunny authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    d949d8e View commit details
    Browse the repository at this point in the history
  9. Improve cache context (go-gitea#23330)

    Related to: go-gitea#22294 go-gitea#23186 go-gitea#23054
    
    Replace: go-gitea#23218
    
    Some discussion is in the comments of go-gitea#23218.
    
    Highlights:
    - Add Expiration for cache context. If a cache context has been used for
    more than 10s, the cache data will be ignored, and warning logs will be
    printed.
    - Add `discard` field to `cacheContext`, a `cacheContext` with `discard`
    true will drop all cached data and won't store any new one.
    - Introduce `WithNoCacheContext`, if one wants to run long-life tasks,
    but the parent context is a cache context,
    `WithNoCacheContext(perentCtx)` will discard the cache data, so it will
    be safe to keep the context for a long time.
    - It will be fine to treat an original context as a cache context, like
    `GetContextData(context.Backgraud())`, no warning logs will be printed.
    
    Some cases about nesting:
    
    When:
    - *A*, *B* or *C* means a cache context.
    - ~*A*~, ~*B*~ or ~*C*~ means a discard cache context.
    - `ctx` means `context.Backgrand()`
    - *A(ctx)* means a cache context with `ctx` as the parent context.
    - *B(A(ctx))* means a cache context with `A(ctx)` as the parent context.
    - `With` means `WithCacheContext`
    - `WithNo` means `WithNoCacheContext`
    
    So:
    - `With(ctx)` -> *A(ctx)*
    - `With(With(ctx))` -> *A(ctx)*, not *B(A(ctx))*
    - `With(With(With(ctx)))` -> *A(ctx)*, not *C(B(A(ctx)))*
    - `WithNo(ctx)` -> *ctx*, not *~A~(ctx)*
    - `WithNo(With(ctx))` -> *~A~(ctx)*
    - `WithNo(WithNo(With(ctx)))` -> *~A~(ctx)*, not *~B~(~A~(ctx))*
    - `With(WithNo(With(ctx)))` -> *B(~A~(ctx))*
    - `WithNo(With(WithNo(With(ctx))))` -> *~B~(~A~(ctx))*
    - `With(WithNo(With(WithNo(With(ctx)))))` -> *C(~B~(~A~(ctx)))*
    wolfogre authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    1960ad5 View commit details
    Browse the repository at this point in the history
  10. Set X-Gitea-Debug header once (go-gitea#23361)

    Instead of adding it
    
    # Before
    On the raw commit page:
    
    ![image](https://user-images.githubusercontent.com/20454870/223470744-cdf11898-e023-4198-8c8b-c294e5d78b73.png)
    
    # After
    
    ![image](https://user-images.githubusercontent.com/20454870/223470596-af898d66-bd5b-4ddb-b220-ceb1f149bfec.png)
    
    Fixes go-gitea#23308
    
    ---------
    
    Signed-off-by: Yarden Shoham <[email protected]>
    Co-authored-by: techknowlogick <[email protected]>
    Co-authored-by: John Olheiser <[email protected]>
    3 people authored Mar 8, 2023
    Configuration menu
    Copy the full SHA
    af0468e View commit details
    Browse the repository at this point in the history

Commits on Mar 9, 2023

  1. Configuration menu
    Copy the full SHA
    c5573db View commit details
    Browse the repository at this point in the history
  2. Test renderReadmeFile (go-gitea#23185)

    Add test coverage to the important features of
    [`routers.web.repo.renderReadmeFile`](https://github.com/go-gitea/gitea/blob/067b0c2664d127c552ccdfd264257caca4907a77/routers/web/repo/view.go#L273);
    namely that:
    
    - it can handle looking in docs/, .gitea/, and .github/
    - it can handle choosing between multiple competing READMEs
    - it prefers the localized README to the markdown README to the
    plaintext README
    - it can handle broken symlinks when processing all the options
    - it uses the name of the symlink, not the name of the target of the
    symlink
    kousu authored Mar 9, 2023
    Configuration menu
    Copy the full SHA
    52e2416 View commit details
    Browse the repository at this point in the history
  3. Add Gitea Community Code of Conduct (go-gitea#23188)

    The Gitea Community Code of Conduct.
    
    Authored by lunny. Slightly modified from [Go
    CoC](https://go.dev/conduct)
    
    ---
    
    CC all TOCs:
    
    @go-gitea/technical-oversight-committee 
    
    And we welcome suggestions from everyone.
    
    ---------
    
    Co-authored-by: delvh <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    Co-authored-by: Nick <[email protected]>
    Co-authored-by: Lauris BH <[email protected]>
    5 people authored Mar 9, 2023
    Configuration menu
    Copy the full SHA
    8cadd51 View commit details
    Browse the repository at this point in the history
  4. Redirect to project again after editing it (go-gitea#23326)

    A part of go-gitea#22865
    
    We have edit buttons in projects list page and project view page.
    But after user edit a project, it will always redirect to the projects
    list page.
    yp05327 authored Mar 9, 2023
    Configuration menu
    Copy the full SHA
    e52ac62 View commit details
    Browse the repository at this point in the history
  5. Refactor merge/update git command calls (go-gitea#23366)

    Follow go-gitea#22568
    
    * Remove unnecessary ToTrustedCmdArgs calls 
        * the FAQ in  go-gitea#22678
    * Quote: When using ToTrustedCmdArgs, the code will be very complex (see
    the changes for examples). Then developers and reviewers can know that
    something might be unreasonable.
    * The `signArg` couldn't be empty, it's either `-S{keyID}` or
    `--no-gpg-sign`.
    * Use `signKeyID` instead, add comment "empty for no-sign, non-empty to
    sign"
    * 5-line code could be extracted to a common `NewGitCommandCommit()` to
    handle the `signKeyID`, but I think it's not a must, current code is
    clear enough.
    wxiaoguang authored Mar 9, 2023
    Configuration menu
    Copy the full SHA
    542cec9 View commit details
    Browse the repository at this point in the history
  6. Fix incorrect NotFound conditions in org/projects.go (go-gitea#23384)

    A part of go-gitea#22865
    
    user/org project's `RepoID` is always 0, we need to check `OwnerID`
    yp05327 authored Mar 9, 2023
    Configuration menu
    Copy the full SHA
    689770c View commit details
    Browse the repository at this point in the history
  7. Fix pull request update showing too many commits with multiple branch…

    …es (go-gitea#22856)
    
    When the base repository contains multiple branches with the same
    commits as the base branch, pull requests can show a long list of
    commits already in the base branch as having been added.
    
    What this is supposed to do is exclude commits already in the base
    branch. But the mechansim to do so assumed a commit only exists in a
    single branch. Now use `git rev-list A B --not branchName` instead of
    filtering commits afterwards.
    
    The logic to detect if there was a force push also was wrong for
    multiple branches. If the old commit existed in any branch in the base
    repository it would assume there was no force push. Instead check if the
    old commit is an ancestor of the new commit.
    brechtvl authored Mar 9, 2023
    Configuration menu
    Copy the full SHA
    8bdc0ac View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    e6df743 View commit details
    Browse the repository at this point in the history
  9. Add init file for Ubuntu (go-gitea#23362)

    Created an init file for Ubuntu that will be useful when running it on
    WSL.
    Lycolia authored Mar 9, 2023
    Configuration menu
    Copy the full SHA
    79af6e3 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2023

  1. Configuration menu
    Copy the full SHA
    c775053 View commit details
    Browse the repository at this point in the history
  2. Fix and move "Use this template" button (go-gitea#23398)

    Before:
    <img width="1157" alt="Screenshot 2023-03-09 at 23 21 25"
    src="https://user-images.githubusercontent.com/115237/224174168-869966cc-fa59-4231-b449-23bd9db12862.png">
    
    After:
    <img width="1145" alt="Screenshot 2023-03-09 at 23 24 34"
    src="https://user-images.githubusercontent.com/115237/224174173-7f5b9c22-44c4-4eed-990c-da49d749eb0e.png">
    
    ---------
    
    Co-authored-by: techknowlogick <[email protected]>
    silverwind and techknowlogick authored Mar 10, 2023
    Configuration menu
    Copy the full SHA
    17c8a05 View commit details
    Browse the repository at this point in the history
  3. Add gradle samples in maven doc of packages (go-gitea#23374)

    Samples for gitea.io docs to help to use maven packages with
    gradle-oriented projects
    
    ---------
    
    Co-authored-by: KN4CK3R <[email protected]>
    InsanusMokrassar and KN4CK3R authored Mar 10, 2023
    Configuration menu
    Copy the full SHA
    92d3e2a View commit details
    Browse the repository at this point in the history
  4. Fix broken Chroma CSS styles (go-gitea#23174)

    The CSS styles in Gitea themes are out-of-sync of Chroma's styles.
    
    This PR introduces a `chroma-style-diff.go` tool to compare the diff.
    The missing CSS styles have been added manually. They are left as empty
    to reduce arguments because there was no color for them before.
    
    And this PR fixes go-gitea#22348, with just 2 lines changed: `.chroma .kt & .n`,
    these colors are taken from GitHub.
    
    It's good enough for go-gitea#22348
    
    
    ![image](https://user-images.githubusercontent.com/2114189/221551941-0d27d11d-e71e-498f-8e88-92b558fe4a18.png)
    
    ---------
    
    Co-authored-by: silverwind <[email protected]>
    wxiaoguang and silverwind authored Mar 10, 2023
    Configuration menu
    Copy the full SHA
    0141d16 View commit details
    Browse the repository at this point in the history
  5. Improve squash merge commit author and co-author with private emails (g…

    …o-gitea#22977)
    
    When emails addresses are private, squash merges always use
    `@noreply.localhost` for the author of the squash commit. And the author
    is redundantly added as a co-author in the commit message.
    
    Also without private mails, the redundant co-author is possible when
    committing with a signature that's different than the user full name and
    primary email.
    
    Now try to find a commit by the same user in the list of commits, and
    prefer the signature from that over one constructed from the account
    settings.
    brechtvl authored Mar 10, 2023
    Configuration menu
    Copy the full SHA
    d647e74 View commit details
    Browse the repository at this point in the history
  6. Split CI pipelines (go-gitea#23385)

    - This PR attempts to split our various DB tests into separate
    pipelines.
    - It splits up some of the extra feature-related tests rather than
    having most of them in the MySQL test.
    - It disables the race detector for some of the pipelines as well, as it
    can cause slower runs and is mostly redundant when the pipelines just
    swap DBs.
    - It builds without SQLite support for any of the non-SQLite pipelines.
    - It moves the e2e test to using SQLite rather than PG (partially
    because I moved the minio tests to PG and that mucked up the test
    config, and partially because it avoids another running service)
    - It splits up the `go mod download` task in the Makefile from the tool
    installation, as the tools are only needed in the compliance pipeline.
    (Arguably even some of the tools aren't needed there, but that could be
    a follow-up PR)
    - SQLite is now the only arm64 pipeline, moving PG back to amd64 which
    can leverage autoscaler
    
    Should resolve go-gitea#22010 - one thing that wasn't changed here but is
    mentioned in that issue, unit tests are needed in the same pipeline as
    an integration test in order to form a complete coverage report (at
    least as far as I could tell), so for now it remains in a pipeline with
    a DB integration test.
    
    Please let me know if I've inadvertently changed something that was how
    it was on purpose.
    
    ---
    
    I will say sometimes it's hard to pin down the average time, as a
    pipeline could be waiting for a runner for X minutes and that brings the
    total up by X minutes as well, but overall this does seem to be faster
    on average.
    
    ---------
    
    Signed-off-by: jolheiser <[email protected]>
    Co-authored-by: techknowlogick <[email protected]>
    jolheiser and techknowlogick authored Mar 10, 2023
    Configuration menu
    Copy the full SHA
    f92e0a4 View commit details
    Browse the repository at this point in the history
  7. Handle OpenID discovery URL errors a little nicer when creating/editi…

    …ng sources (go-gitea#23397)
    
    When there is an error creating a new openIDConnect authentication
    source try to handle the error a little better.
    
    Close go-gitea#23283
    
    Signed-off-by: Andrew Thornton <[email protected]>
    Co-authored-by: techknowlogick <[email protected]>
    zeripath and techknowlogick authored Mar 10, 2023
    Configuration menu
    Copy the full SHA
    dad057b View commit details
    Browse the repository at this point in the history
  8. Add user webhooks (go-gitea#21563)

    Currently we can add webhooks for organizations but not for users. This
    PR adds the latter. You can access it from the current users settings.
    
    
    ![grafik](https://user-images.githubusercontent.com/1666336/197391408-15dfdc23-b476-4d0c-82f7-9bc9b065988f.png)
    KN4CK3R authored Mar 10, 2023
    Configuration menu
    Copy the full SHA
    2173f14 View commit details
    Browse the repository at this point in the history
  9. Add missing tabs to org projects page (go-gitea#22705)

    Fixes go-gitea#22676
    
    Context Data `IsOrganizationMember` and `IsOrganizationOwner` is used to
    control the visibility of `people` and `team` tab.
    
    https://github.com/go-gitea/gitea/blob/2871ea08096cba15546f357d0ec473734ee9d8be/templates/org/menu.tmpl#L19-L40
    
    And because of the reuse of user projects page, User Context is changed
    to Organization Context. But the value of `IsOrganizationMember` and
    `IsOrganizationOwner` are not being given.
    
    I reused func `HandleOrgAssignment` to add them to the ctx, but may have
    some unnecessary variables, idk whether it is ok.
    
    I found there is a missing `PageIsViewProjects` at create project page.
    yp05327 authored Mar 10, 2023
    Configuration menu
    Copy the full SHA
    cf29ee6 View commit details
    Browse the repository at this point in the history
  10. Parse external request id from request headers, and print it in acces…

    …s log (go-gitea#22906)
    
    Close: go-gitea#22890.
    
    ---
    ### Configure in .ini file:
    ```ini
    [log]
    REQUEST_ID_HEADERS = X-Request-ID, X-Trace-Id
    ```
    
    ### Params in Request Header
    ```
    X-Trace-ID: trace-id-1q2w3e4r
    ```
    
    ![image](https://user-images.githubusercontent.com/33891828/218665296-8fd19a0f-ada6-4236-8bdb-f99201c703e8.png)
    
    
    
    ### Log output:
    
    ![image](https://user-images.githubusercontent.com/33891828/218665225-cc242a57-4ffc-449a-a1f6-f45ded0ead60.png)
    sillyguodong authored Mar 10, 2023
    Configuration menu
    Copy the full SHA
    5155ec3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    3de9e63 View commit details
    Browse the repository at this point in the history

Commits on Mar 11, 2023

  1. Configuration menu
    Copy the full SHA
    f20bf2f View commit details
    Browse the repository at this point in the history
  2. Refactor branch/tag selector dropdown (first step) (go-gitea#23394)

    Follow: 
    * go-gitea#23345
    
    The branch/tag selector dropdown mixes jQuery/Fomantic UI/Vue together,
    it's very diffcult to maintain and causes unfixable a11y problems. It
    also causes problems like go-gitea#19851 go-gitea#21314 go-gitea#21952
    
    This PR is the first step for the refactoring, move `data-` attributes
    to JS object and use Vue data as much as possible.
    
    The old selector `'.choose.reference .dropdown'` was also wrong, it hits
    `<div class="choose reference"><svg class="dropdown icon">` and would
    cause undefined behaviors.
    
    I have done some quick tests and it works. After this PR gets merged, I
    will move the code into a Vue SFC in next PR.
    
    
    
    ![image](https://user-images.githubusercontent.com/2114189/224099638-378a8a86-0865-47d1-bcba-f972506374c7.png)
    
    
    ![image](https://user-images.githubusercontent.com/2114189/224099690-70276cf5-b1e4-404a-b0c6-582448abf40e.png)
    
    ---------
    
    Co-authored-by: techknowlogick <[email protected]>
    wxiaoguang and techknowlogick authored Mar 11, 2023
    Configuration menu
    Copy the full SHA
    75022f8 View commit details
    Browse the repository at this point in the history
  3. Use buildkit for docker builds (go-gitea#23415)

    This switches Docker builds to use build kit which is less prone to
    error than legacy docker-in-docker building. It also switches back to
    using the upstream docker image again now that it has been updated to a
    version that supports alpine 3.14+
    
    Co-authored-by: John Olheiser <[email protected]>
    techknowlogick and jolheiser authored Mar 11, 2023
    Configuration menu
    Copy the full SHA
    ab5bcdf View commit details
    Browse the repository at this point in the history

Commits on Mar 12, 2023

  1. Configuration menu
    Copy the full SHA
    023521b View commit details
    Browse the repository at this point in the history
  2. Preserve file size when creating attachments (go-gitea#23406)

    When creating attachments (issue, release, repo) the file size (being
    part of the multipart file header) is passed through the chain of
    creating an attachment to ensure the MinIO client can stream the file
    directly instead of having to read it to memory completely at first.
    
    Fixes go-gitea#23393
    
    Co-authored-by: KN4CK3R <[email protected]>
    Co-authored-by: techknowlogick <[email protected]>
    3 people authored Mar 12, 2023
    Configuration menu
    Copy the full SHA
    c6f5029 View commit details
    Browse the repository at this point in the history
  3. Sync the class change of Edit Column Button to JS code (go-gitea#23400)

    In go-gitea#22767, we changed the class of `Edit Column` button from `red` to
    `primary`
    But `red` is used to find this button in js.....
    
    ---------
    
    Co-authored-by: techknowlogick <[email protected]>
    Co-authored-by: zeripath <[email protected]>
    3 people authored Mar 12, 2023
    Configuration menu
    Copy the full SHA
    e72290f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a04eeb2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    43c1362 View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2023

  1. Scoped label display and documentation tweaks (go-gitea#23430)

    * Fix scoped label left and right part breaking across lines.
    * Remove slanted divider in scoped label display, make it straight.
    After using this for a while, this feels more visually noisy than
    helpful.
    * Reduce contrast between scope and item to reduce probability of
    unreadable text on background.
    * Change documentation to remove mention of non-exclusive scoped labels.
    
    Co-authored-by: Lunny Xiao <[email protected]>
    brechtvl and lunny authored Mar 13, 2023
    Configuration menu
    Copy the full SHA
    a8e13e6 View commit details
    Browse the repository at this point in the history
  2. Fix actions frontend bugs (pagination, long name alignment) and small…

    … simplify (go-gitea#23370)
    
    1 Right now on actions page, the action list will not be aligned if
    commit message is long. In this PR, the changes are:
    - The branch tag is moved to bottom row
    - Width percentage is given to make them aligned
    - Show "..." if commit is longer than two lines.
    - Align the status icon with the commit message with baseline
    
     Before:
    <img width="1068" alt="截屏2023-03-08 12 23 22"
    src="https://user-images.githubusercontent.com/17645053/223628534-6b9472cb-29f5-40a3-9714-c5152553049e.png">
      
     After:
    <img width="756" alt="截屏2023-03-08 13 34 28"
    src="https://user-images.githubusercontent.com/17645053/223628571-da94698b-0e0a-43e3-ae82-34d8c780e5ba.png">
    
    
    2 Right now the actions list's pagination is not working properly
    because Param is not passed to pagination template, in this PR Param
    Strings are passed to the pager
    
    Before:
    <img width="1176" alt="截屏2023-03-08 12 23 50"
    src="https://user-images.githubusercontent.com/17645053/223629207-8b67ce74-2342-4259-bc81-036e37752716.png">
    
    After:
    <img width="1343" alt="截屏2023-03-08 13 11 54"
    src="https://user-images.githubusercontent.com/17645053/223629321-4f538f8a-45dc-4d6f-ae60-2c82680ae3e7.png">
    
    3 A small simplify in `RepoActionView.vue` .
    
    ---------
    
    Co-authored-by: wxiaoguang <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    3 people authored Mar 13, 2023
    Configuration menu
    Copy the full SHA
    f521e88 View commit details
    Browse the repository at this point in the history
  3. Support reflogs (go-gitea#22451)

    This PR adds support for reflogs on all repositories. It does this by
    adding a global configuration entry.
    
    Implements go-gitea#14865
    
    ---------
    
    Signed-off-by: Philip Peterson <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    philip-peterson and lunny authored Mar 13, 2023
    Configuration menu
    Copy the full SHA
    757b4c1 View commit details
    Browse the repository at this point in the history
  4. add path prefix to ObjectStorage.Iterator (go-gitea#23332)

    Support to iterator subdirectory in ObjectStorage for
    ObjectStorage.Iterator method.
    
    It's required for go-gitea#22738 to make
    artifact files cleanable.
    
    ---------
    
    Co-authored-by: Jason Song <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    3 people authored Mar 13, 2023
    Configuration menu
    Copy the full SHA
    cdc9e91 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d74a7ef View commit details
    Browse the repository at this point in the history
  6. Purge API comment (go-gitea#23451)

    This PR just adds the `purge` query parameter to the swagger docs for
    admin user delete.
    
    Signed-off-by: jolheiser <[email protected]>
    jolheiser authored Mar 13, 2023
    Configuration menu
    Copy the full SHA
    0a6f635 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c709fa1 View commit details
    Browse the repository at this point in the history
  8. Fix missing commit status in PR which from forked repo (go-gitea#23351)

    close: go-gitea#23347
    
    ### Reference and Inference
    According to Github REST API
    [doc](https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28#list-commit-statuses-for-a-reference):
    1. The `Drone CI` that can create some commit status by
    [API](https://docs.github.com/en/rest/commits/statuses?apiVersion=2022-11-28#create-a-commit-status)
    is enabled in `go-gitea/gitea`. So I tried to call the API to get a
    commit status list of a PR which is commited to upstream
    repo(`go-gitea/gitea`). As a result, the API returned a array of commit
    status.
    
    ![image](https://user-images.githubusercontent.com/33891828/223913371-313d047a-5e2e-484c-b13e-dcd38748703e.png)
    2. Then I tried to call the API to get commit status list of the
    reference which of the `SHA` is the same as step 1 in the repo which is
    forked from `go-gitea/gitea`. But I got a empty array.
    
    ![image](https://user-images.githubusercontent.com/33891828/223930827-17a64d3c-f466-4980-897c-77fe386c4d3b.png)
    
    So, I believe it that:
    1. The commit status is not shared between upstream repo and forked
    repo.
    2. The coomit status is bound to a repo that performs actions. (Gitea's
    logic is the same)
    
    ### Cause
    During debugging, I found it that commit status are not stored in the DB
    as expected.
    So, I located the following code:
    
    https://github.com/go-gitea/gitea/blob/8cadd51bf295e6ff36ac36efed68cc5de34c9382/services/actions/commit_status.go#L18-L26
    When I create a PR, the type of `event` is `pull request`, not `push`.
    So the code return function directly.
    
    ### Screenshot
    
    ![image](https://user-images.githubusercontent.com/33891828/223939339-dadf539c-1fdd-40c4-96e9-2e4fa733f531.png)
    
    ![image](https://user-images.githubusercontent.com/33891828/223939519-edb02bf0-2478-4ea5-9366-be85468f02db.png)
    
    ![image](https://user-images.githubusercontent.com/33891828/223939557-ec6f1375-5536-400e-8987-fb7d2fd452fa.png)
    
    
    
    ### Other 
    In this PR, I also fix the problem of missing icon which represents
    running in PRs list.
    
    ![image](https://user-images.githubusercontent.com/33891828/223939898-2a0339e4-713f-4c7b-9d99-2250a43f3457.png)
    
    ![image](https://user-images.githubusercontent.com/33891828/223939979-037a975f-5ced-480c-bac7-0ee00ebfff4b.png)
    sillyguodong authored Mar 13, 2023
    Configuration menu
    Copy the full SHA
    5eea61d View commit details
    Browse the repository at this point in the history
  9. Handle missing README in create repos API (go-gitea#23387)

    Close go-gitea#22934 
    
    In `/user/repos` API (and other APIs related to creating repos), user
    can specify a readme template for auto init. At present, if the
    specified template does not exist, a `500` will be returned . This PR
    improved the logic and will return a `400` instead of `500`.
    Zettat123 authored Mar 13, 2023
    Configuration menu
    Copy the full SHA
    8421b82 View commit details
    Browse the repository at this point in the history
  10. Add package registry architecture overview (go-gitea#23445)

    As announced in go-gitea#22810 I added a readme file to help understanding how
    the package registry archictecture works and how the go packages are
    related.
    KN4CK3R authored Mar 13, 2023
    Configuration menu
    Copy the full SHA
    8570593 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2023

  1. Configuration menu
    Copy the full SHA
    605fd15 View commit details
    Browse the repository at this point in the history
  2. Convert <div class="button"> to <button class="button"> (go-gitea…

    …#23337)
    
    This improves a lot of accessibility shortcomings.
    Every possible instance of `<div class="button">` matching the command
    `ag '<[^ab].*?class=.*?[" ]button[ "]' templates/ | grep -v 'dropdown'`
    has been converted when possible.
    divs with the `dropdown` class and their children were omitted as
    1. more analysis must be conducted whether the dropdowns still work as
    intended when they are a `button` instead of a `div`.
    2. most dropdowns have `div`s as children. The HTML standard disallows
    `div`s inside `button`s.
    3. When a dropdown child that's part of the displayed text content is
    converted to a `button`, the dropdown can be focused twice
    
    Further changes include that all "gitea-managed" buttons with JS code
    received an `e.preventDefault()` so that they don't accidentally submit
    an underlying form, which would execute instead of cancel the action.
    Lastly, some minor issues were fixed as well during the refactoring.
    
    ## Future improvements
    
    As mentioned in
    go-gitea#23337 (comment),
    `<a>`s without `href` attribute are not focusable.
    They should later on be converted to `<button>`s.
    
    ---------
    
    Co-authored-by: wxiaoguang <[email protected]>
    Co-authored-by: silverwind <[email protected]>
    Co-authored-by: techknowlogick <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    5 people authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    81fe5d6 View commit details
    Browse the repository at this point in the history
  3. Update localization.zh-cn.md (go-gitea#23448)

    As title.
    LeenHawk authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    b942838 View commit details
    Browse the repository at this point in the history
  4. Refactor dashboard repo list to Vue SFC (go-gitea#23405)

    Similar to go-gitea#23394
    
    The dashboard repo list mixes jQuery/Fomantic UI/Vue together, it's very
    diffcult to maintain and causes unfixable a11y problems.
    
    This PR uses two steps to refactor the repo list:
    
    1. move `data-` attributes to JS object and use Vue data as much as
    possible
    go-gitea@d3adc0d
    2. move the code into a Vue SFC
    go-gitea@7ebe55d
    
    Total: +516 −585
    
    Screenshots:
    
    <details>
    
    ![image](https://user-images.githubusercontent.com/2114189/224271457-a23e05be-d7d3-4247-a803-f0ee30c36f44.png)
    
    ![image](https://user-images.githubusercontent.com/2114189/224271504-76fbd3da-4d7a-4725-b0d1-fbff83caac63.png)
    
    ![image](https://user-images.githubusercontent.com/2114189/224271845-f007cadf-6c49-46bd-a65c-a3fc75bdba3b.png)
    
    </details>
    
    ---------
    
    Co-authored-by: John Olheiser <[email protected]>
    wxiaoguang and jolheiser authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    e82f1b1 View commit details
    Browse the repository at this point in the history
  5. fix markdown lint issue (go-gitea#23457)

    CI is failing with the following:
    ```
    docs/content/doc/features/localization.zh-cn.md:16 MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "# 本地化"]
    docs/content/doc/features/localization.zh-cn.md:23 MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## 支持的语言"]
    ```
    
    This fixes that error
    techknowlogick authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    0efa9d5 View commit details
    Browse the repository at this point in the history
  6. Make branches list page operations remember current page (go-gitea#23420

    )
    
    Close go-gitea#23411
    
    Always pass "page" query parameter to backend, and make backend respect
    it.
    
    The `ctx.FormInt("limit")` is never used, so removed.
    
    ---------
    
    Co-authored-by: Jason Song <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    3 people authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    6ff5400 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    aac07d0 View commit details
    Browse the repository at this point in the history
  8. add user rename endpoint to admin api (go-gitea#22789)

    this is a simple endpoint that adds the ability to rename users to the
    admin API.
    
    Note: this is not in a mergeable state. It would be better if this was
    handled by a PATCH/POST to the /api/v1/admin/users/{username} endpoint
    and the username is modified.
    
    ---------
    
    Co-authored-by: Jason Song <[email protected]>
    techknowlogick and wolfogre authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    03591f0 View commit details
    Browse the repository at this point in the history
  9. add admin API email endpoints (go-gitea#22792)

    add email endpoint to admin API to ensure API parity with admin
    dashboard.
    techknowlogick authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    d56bb74 View commit details
    Browse the repository at this point in the history
  10. Refactor branch/tag selector to Vue SFC (go-gitea#23421)

    Follow go-gitea#23394
    
    There were many bad smells in old code. This PR only moves the code into
    Vue SFC, doesn't touch the unrelated logic.
    
    update: after
    go-gitea@5f23218
    , there should be no usage of the vue-rumtime-compiler anymore
    (hopefully), so I think this PR could close go-gitea#19851
    
    ---------
    
    Co-authored-by: Lunny Xiao <[email protected]>
    wxiaoguang and lunny authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    ac8d71f View commit details
    Browse the repository at this point in the history
  11. Remove wrongly added column on migration test fixtures (go-gitea#23456)

    Fix https://drone.gitea.io/go-gitea/gitea/69418/3/8
    Migration fixtures are in `models/migrations/fixtures`, every folder
    will be used only by the test with the same name.
    For `Test_DeleteOrphanedIssueLabels`, the fixture should keep consistent
    as the database structure at that time. So the newly added `exclusive`
    is not right. Just revert the change in
    https://github.com/go-gitea/gitea/pull/22585/files#diff-f8db9cbbaa10bf7b27eb726884454db821a4b4f8cb9a0d50435555908761bbcb
    lunny authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    c492e86 View commit details
    Browse the repository at this point in the history
  12. Convert GitHub event on actions and fix some pull_request events. (go…

    …-gitea#23037)
    
    Follow go-gitea#22680
    
    Partially Fix go-gitea#22958, on pull_request, `opened`, `reopened`,
    `synchronize` supported, `edited` hasn't been supported yet because
    Gitea doesn't trigger that events.
    
    ---------
    
    Co-authored-by: yp05327 <[email protected]>
    lunny and yp05327 authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    8e40634 View commit details
    Browse the repository at this point in the history
  13. Push to create docs (go-gitea#23458)

    This PR adds user friendly documentation on how to use push to create
    feature
    techknowlogick authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    db9bb36 View commit details
    Browse the repository at this point in the history
  14. Lint Markdown pass

    techknowlogick authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    991ab3b View commit details
    Browse the repository at this point in the history
  15. Push option bonus for PTC docs (go-gitea#23473)

    Follow-up for go-gitea#23458 
    
    I could have suggested this on the original PR, but I thought there
    would be more to add. Hadn't noticed the push options docs already had
    nearly the same shell command. 😅
    
    Signed-off-by: jolheiser <[email protected]>
    jolheiser authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    6e75739 View commit details
    Browse the repository at this point in the history
  16. test_env: hardcode major go version in use (go-gitea#23464)

    hardcode the version of test_env we use in docker, so that we can use
    different major versions of golang between versions of Gitea
    
    ---------
    
    Co-authored-by: Lauris BH <[email protected]>
    techknowlogick and lafriks authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    32204fc View commit details
    Browse the repository at this point in the history
  17. Fix due date being wrong on issue list (go-gitea#23475)

    Exactly like go-gitea#22302 but in the issue list page
    yardenshoham authored Mar 14, 2023
    Configuration menu
    Copy the full SHA
    b2c1c17 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2023

  1. Configuration menu
    Copy the full SHA
    74b80d1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    69c9ab3 View commit details
    Browse the repository at this point in the history
  3. Skip DB tests duplicate runs on push to branches (go-gitea#23476)

    This skips all testing-* pipelines on push to main or release/*
    branches. This decreases the total build time on those, as in theory
    they should already be run for PRs before merging.
    
    Fixes go-gitea#22011
    
    ---------
    
    Co-authored-by: Lunny Xiao <[email protected]>
    techknowlogick and lunny authored Mar 15, 2023
    Configuration menu
    Copy the full SHA
    f96eef8 View commit details
    Browse the repository at this point in the history
  4. Use gitea/test_env image instead of golang (go-gitea#23455)

    The `safe.directory` setting was not executed for pull requests, which
    made subsequent `deps-backend` target fail at `go mod download`. To fix
    it, split thep and perform the git config unconditionally.
    
    Example: https://drone.gitea.io/go-gitea/gitea/69477/4/3
    
    Co-authored-by: Lunny Xiao <[email protected]>
    silverwind and lunny authored Mar 15, 2023
    Configuration menu
    Copy the full SHA
    ea1b926 View commit details
    Browse the repository at this point in the history
  5. Fix 'View File' button in code search (go-gitea#23478)

    - Right-align 'View File' button
    - Add 'role' attribute to button link
    
    Before:
    <img width="1148" alt="Screenshot 2023-03-14 at 22 02 16"
    src="https://user-images.githubusercontent.com/115237/225135954-f06153ec-c222-441e-98ba-0177afff3a7a.png">
    
    After:
    <img width="1150" alt="Screenshot 2023-03-14 at 22 02 33"
    src="https://user-images.githubusercontent.com/115237/225135966-323cb695-05ef-4b83-a8ef-05f2b1887090.png">
    
    Co-authored-by: Lunny Xiao <[email protected]>
    silverwind and lunny authored Mar 15, 2023
    Configuration menu
    Copy the full SHA
    bf73052 View commit details
    Browse the repository at this point in the history
  6. Replace Less with CSS (go-gitea#23481)

    Ran most of the Less files through the Less compiler and Prettier and
    then followed up with a round of manual fixes.
    
    The Less compiler had unfortunately stripped all `//` style comments
    that I had to restore (It did preserve `/* */` comments). Other fixes
    include duplicate selector removal which were revealed after the
    transpilation and which weren't caught by stylelint before but now are.
    
    Fixes: go-gitea#15565
    silverwind authored Mar 15, 2023
    Configuration menu
    Copy the full SHA
    202803f View commit details
    Browse the repository at this point in the history
  7. Bump webpack from 5.75.0 to 5.76.0 (go-gitea#23484)

    Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to
    5.76.0.
    <details>
    <summary>Release notes</summary>
    <p><em>Sourced from <a
    href="https://github.com/webpack/webpack/releases">webpack's
    releases</a>.</em></p>
    <blockquote>
    <h2>v5.76.0</h2>
    <h2>Bugfixes</h2>
    <ul>
    <li>Avoid cross-realm object access by <a
    href="https://github.com/Jack-Works"><code>@​Jack-Works</code></a> in <a
    href="https://redirect.github.com/webpack/webpack/pull/16500">webpack/webpack#16500</a></li>
    <li>Improve hash performance via conditional initialization by <a
    href="https://github.com/lvivski"><code>@​lvivski</code></a> in <a
    href="https://redirect.github.com/webpack/webpack/pull/16491">webpack/webpack#16491</a></li>
    <li>Serialize <code>generatedCode</code> info to fix bug in asset module
    cache restoration by <a
    href="https://github.com/ryanwilsonperkin"><code>@​ryanwilsonperkin</code></a>
    in <a
    href="https://redirect.github.com/webpack/webpack/pull/16703">webpack/webpack#16703</a></li>
    <li>Improve performance of <code>hashRegExp</code> lookup by <a
    href="https://github.com/ryanwilsonperkin"><code>@​ryanwilsonperkin</code></a>
    in <a
    href="https://redirect.github.com/webpack/webpack/pull/16759">webpack/webpack#16759</a></li>
    </ul>
    <h2>Features</h2>
    <ul>
    <li>add <code>target</code> to <code>LoaderContext</code> type by <a
    href="https://github.com/askoufis"><code>@​askoufis</code></a> in <a
    href="https://redirect.github.com/webpack/webpack/pull/16781">webpack/webpack#16781</a></li>
    </ul>
    <h2>Security</h2>
    <ul>
    <li><a
    href="https://github.com/advisories/GHSA-3rfm-jhwj-7488">CVE-2022-37603</a>
    fixed by <a
    href="https://github.com/akhilgkrishnan"><code>@​akhilgkrishnan</code></a>
    in <a
    href="https://redirect.github.com/webpack/webpack/pull/16446">webpack/webpack#16446</a></li>
    </ul>
    <h2>Repo Changes</h2>
    <ul>
    <li>Fix HTML5 logo in README by <a
    href="https://github.com/jakebailey"><code>@​jakebailey</code></a> in <a
    href="https://redirect.github.com/webpack/webpack/pull/16614">webpack/webpack#16614</a></li>
    <li>Replace TypeScript logo in README by <a
    href="https://github.com/jakebailey"><code>@​jakebailey</code></a> in <a
    href="https://redirect.github.com/webpack/webpack/pull/16613">webpack/webpack#16613</a></li>
    <li>Update actions/cache dependencies by <a
    href="https://github.com/piwysocki"><code>@​piwysocki</code></a> in <a
    href="https://redirect.github.com/webpack/webpack/pull/16493">webpack/webpack#16493</a></li>
    </ul>
    <h2>New Contributors</h2>
    <ul>
    <li><a
    href="https://github.com/Jack-Works"><code>@​Jack-Works</code></a> made
    their first contribution in <a
    href="https://redirect.github.com/webpack/webpack/pull/16500">webpack/webpack#16500</a></li>
    <li><a href="https://github.com/lvivski"><code>@​lvivski</code></a> made
    their first contribution in <a
    href="https://redirect.github.com/webpack/webpack/pull/16491">webpack/webpack#16491</a></li>
    <li><a
    href="https://github.com/jakebailey"><code>@​jakebailey</code></a> made
    their first contribution in <a
    href="https://redirect.github.com/webpack/webpack/pull/16614">webpack/webpack#16614</a></li>
    <li><a
    href="https://github.com/akhilgkrishnan"><code>@​akhilgkrishnan</code></a>
    made their first contribution in <a
    href="https://redirect.github.com/webpack/webpack/pull/16446">webpack/webpack#16446</a></li>
    <li><a
    href="https://github.com/ryanwilsonperkin"><code>@​ryanwilsonperkin</code></a>
    made their first contribution in <a
    href="https://redirect.github.com/webpack/webpack/pull/16703">webpack/webpack#16703</a></li>
    <li><a href="https://github.com/piwysocki"><code>@​piwysocki</code></a>
    made their first contribution in <a
    href="https://redirect.github.com/webpack/webpack/pull/16493">webpack/webpack#16493</a></li>
    <li><a href="https://github.com/askoufis"><code>@​askoufis</code></a>
    made their first contribution in <a
    href="https://redirect.github.com/webpack/webpack/pull/16781">webpack/webpack#16781</a></li>
    </ul>
    <p><strong>Full Changelog</strong>: <a
    href="https://github.com/webpack/webpack/compare/v5.75.0...v5.76.0">https://github.com/webpack/webpack/compare/v5.75.0...v5.76.0</a></p>
    </blockquote>
    </details>
    <details>
    <summary>Commits</summary>
    <ul>
    <li><a
    href="https://github.com/webpack/webpack/commit/97b1718720c33f1b17302a74c5284b01e02ec001"><code>97b1718</code></a>
    Merge pull request <a
    href="https://redirect.github.com/webpack/webpack/issues/16781">#16781</a>
    from askoufis/loader-context-target-type</li>
    <li><a
    href="https://github.com/webpack/webpack/commit/b84efe6224b276bf72e4c5e2f4e76acddfaeef07"><code>b84efe6</code></a>
    Merge pull request <a
    href="https://redirect.github.com/webpack/webpack/issues/16759">#16759</a>
    from ryanwilsonperkin/real-content-hash-regex-perf</li>
    <li><a
    href="https://github.com/webpack/webpack/commit/c98e9e001441b165c7ed4845700839730b505833"><code>c98e9e0</code></a>
    Merge pull request <a
    href="https://redirect.github.com/webpack/webpack/issues/16493">#16493</a>
    from piwysocki/patch-1</li>
    <li><a
    href="https://github.com/webpack/webpack/commit/5f34acfbc074da6cc09f48944d7f2b4273ffb3f8"><code>5f34acf</code></a>
    feat: Add <code>target</code> to <code>LoaderContext</code> type</li>
    <li><a
    href="https://github.com/webpack/webpack/commit/b7fc4d876deb958d7ee81ecc00a312e39a354a44"><code>b7fc4d8</code></a>
    Merge pull request <a
    href="https://redirect.github.com/webpack/webpack/issues/16703">#16703</a>
    from ryanwilsonperkin/ryanwilsonperkin/fix-16160</li>
    <li><a
    href="https://github.com/webpack/webpack/commit/63ea82da4d4e4242b6a6285fc937f0684f264fe8"><code>63ea82d</code></a>
    Merge branch 'webpack:main' into patch-1</li>
    <li><a
    href="https://github.com/webpack/webpack/commit/4ba225225b1348c8776ca5b5fe53468519413bc0"><code>4ba2252</code></a>
    Merge pull request <a
    href="https://redirect.github.com/webpack/webpack/issues/16446">#16446</a>
    from akhilgkrishnan/patch-1</li>
    <li><a
    href="https://github.com/webpack/webpack/commit/1acd6350be3d74d4ac70b64cbbc60f27724b618b"><code>1acd635</code></a>
    Merge pull request <a
    href="https://redirect.github.com/webpack/webpack/issues/16613">#16613</a>
    from jakebailey/ts-logo</li>
    <li><a
    href="https://github.com/webpack/webpack/commit/302eb37fe19ed7ca60eaf895aca4f9da9dfd7931"><code>302eb37</code></a>
    Merge pull request <a
    href="https://redirect.github.com/webpack/webpack/issues/16614">#16614</a>
    from jakebailey/html5-logo</li>
    <li><a
    href="https://github.com/webpack/webpack/commit/cfdb1dfe59b33bf7441b8a8e4fc58d75e4f54cee"><code>cfdb1df</code></a>
    Improve performance of hashRegExp lookup</li>
    <li>Additional commits viewable in <a
    href="https://github.com/webpack/webpack/compare/v5.75.0...v5.76.0">compare
    view</a></li>
    </ul>
    </details>
    <details>
    <summary>Maintainer changes</summary>
    <p>This version was pushed to npm by <a
    href="https://www.npmjs.com/~evilebottnawi">evilebottnawi</a>, a new
    releaser for webpack since your current version.</p>
    </details>
    <br />
    
    
    [![Dependabot compatibility
    score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=webpack&package-manager=npm_and_yarn&previous-version=5.75.0&new-version=5.76.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
    
    Dependabot will resolve any conflicts with this PR as long as you don't
    alter it yourself. You can also trigger a rebase manually by commenting
    `@dependabot rebase`.
    
    [//]: # (dependabot-automerge-start)
    [//]: # (dependabot-automerge-end)
    
    ---
    
    <details>
    <summary>Dependabot commands and options</summary>
    <br />
    
    You can trigger Dependabot actions by commenting on this PR:
    - `@dependabot rebase` will rebase this PR
    - `@dependabot recreate` will recreate this PR, overwriting any edits
    that have been made to it
    - `@dependabot merge` will merge this PR after your CI passes on it
    - `@dependabot squash and merge` will squash and merge this PR after
    your CI passes on it
    - `@dependabot cancel merge` will cancel a previously requested merge
    and block automerging
    - `@dependabot reopen` will reopen this PR if it is closed
    - `@dependabot close` will close this PR and stop Dependabot recreating
    it. You can achieve the same result by closing it manually
    - `@dependabot ignore this major version` will close this PR and stop
    Dependabot creating any more for this major version (unless you reopen
    the PR or upgrade to it yourself)
    - `@dependabot ignore this minor version` will close this PR and stop
    Dependabot creating any more for this minor version (unless you reopen
    the PR or upgrade to it yourself)
    - `@dependabot ignore this dependency` will close this PR and stop
    Dependabot creating any more for this dependency (unless you reopen the
    PR or upgrade to it yourself)
    - `@dependabot use these labels` will set the current labels as the
    default for future PRs for this repo and language
    - `@dependabot use these reviewers` will set the current reviewers as
    the default for future PRs for this repo and language
    - `@dependabot use these assignees` will set the current assignees as
    the default for future PRs for this repo and language
    - `@dependabot use this milestone` will set the current milestone as the
    default for future PRs for this repo and language
    
    You can disable automated security fix PRs for this repo from the
    [Security Alerts
    page](https://github.com/go-gitea/gitea/network/alerts).
    
    </details>
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 15, 2023
    Configuration menu
    Copy the full SHA
    e7e6250 View commit details
    Browse the repository at this point in the history
  8. Disable sending email after push a commit to a closed PR (go-gitea#23462

    )
    
    Close go-gitea#23440
    Cause by go-gitea#23189
    In go-gitea#23189, we should insert a comment record into db when pushing a
    commit to the PR, even if the PR is closed.
    But should skip sending any notification in this case.
    
    ---------
    
    Co-authored-by: Lunny Xiao <[email protected]>
    sillyguodong and lunny authored Mar 15, 2023
    Configuration menu
    Copy the full SHA
    0d7cf7b View commit details
    Browse the repository at this point in the history
  9. Fix missed migration in go-gitea#22235 (go-gitea#23482)

    Co-authored-by: techknowlogick <[email protected]>
    Co-authored-by: KN4CK3R <[email protected]>
    3 people authored Mar 15, 2023
    Configuration menu
    Copy the full SHA
    27494ed View commit details
    Browse the repository at this point in the history
  10. Add login name and source id for admin user searching API (go-gitea#2…

    …3376)
    
    As title.
    
    ---------
    
    Co-authored-by: techknowlogick <[email protected]>
    lunny and techknowlogick authored Mar 15, 2023
    Configuration menu
    Copy the full SHA
    6f9cc61 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    f42740c View commit details
    Browse the repository at this point in the history
  12. Update path to docs theme file (go-gitea#23502)

    The branch name for the theme was updated to main
    techknowlogick authored Mar 15, 2023
    Configuration menu
    Copy the full SHA
    25ed8c2 View commit details
    Browse the repository at this point in the history
  13. Fix theme-auto loading (go-gitea#23504)

    Fix regression from go-gitea#23481.
    
    The conditional on the CSS import was being stripped away by webpack's
    `css-loader`, resulting in the dark theme always loading. The old syntax
    with `@import` nested inside `@media` also did not work as `css-loader`
    (rightfully) ignores such non-standard `@import` syntax that was
    previously supported by Less.
    
    Unfortunately, we have to re-introduce postcss to the CSS pipeline to
    fix this and I loaded only the minimal plugins to make it work.
    
    There is one variant of the fix that does work without postcss, which is
    to exclude the file from transpilation but I did not consider it as it
    would have meant the `@import` was being done without a version suffix
    in the URL, which would have caused cache issue.
    
    Related: webpack-contrib/css-loader#1503
    
    ---------
    
    Co-authored-by: John Olheiser <[email protected]>
    silverwind and jolheiser authored Mar 15, 2023
    Configuration menu
    Copy the full SHA
    19cbd5c View commit details
    Browse the repository at this point in the history
  14. Replace repo.namedBlob by git.TreeEntry. (go-gitea#22898)

    `namedBlob` turned out to be a poor imitation of a `TreeEntry`. Using
    the latter directly shortens this code.
    
    This partially undoes go-gitea#23152,
    which I found a merge conflict with, and also expands the test it added
    to cover the subtle README-in-a-subfolder case.
    kousu authored Mar 15, 2023
    Configuration menu
    Copy the full SHA
    6aef9e0 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2023

  1. [skip ci] Updated translations via Crowdin

    GiteaBot authored and kousu committed Mar 16, 2023
    Configuration menu
    Copy the full SHA
    0f2361f View commit details
    Browse the repository at this point in the history
  2. Move pidfile creation from setting to web cmd package (go-gitea#23285)

    Creating pid file should not belong to setting package and only web
    command needs that. So this PR moves pidfile creation from setting
    package to web command package to keep setting package more readable.
    
    I marked this as `break` because the PIDFile path moved. For those who
    have used the pid build argument, it has to be changed.
    
    ---------
    
    Co-authored-by: KN4CK3R <[email protected]>
    lunny and KN4CK3R authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    623a539 View commit details
    Browse the repository at this point in the history
  3. Update act (go-gitea#23512)

    Update replace:
    ```diff
    - replace github.com/nektos/act => gitea.com/gitea/act v0.234.2-0.20230131074955-e46ede1b1744
    + replace github.com/nektos/act => gitea.com/gitea/act v0.243.1
    ```
    
    Update require:
    ```diff
    -	github.com/nektos/act v0.0.0
    +	github.com/nektos/act v0.2.43
    ```
    
    Actually, `v0.2.43` doesn't work, it will be replaced by `gitea/act`, so
    it's OK to put any version here. But `gitea/act` is based on
    `nektos/act`, so keeping the right upstream version will make security
    dependabot help.
    
    BTW, the [security
    report](https://github.com/go-gitea/gitea/security/dependabot/20) is
    false positive, we don't use the artifact server in act, see go-gitea#22738.
    wolfogre authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    19bfea6 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    39d3711 View commit details
    Browse the repository at this point in the history
  5. Handle files starting with colons in WalkGitLog (go-gitea#22935)

    Currently gitea shows no commit information for files starting with a
    colon.
    
    [I set up a minimal repro repository that reproduces this error once
    it's migrated on gitea](https://github.com/kbolashev/colon-test)
    
    <img width="1209" alt="image"
    src="https://user-images.githubusercontent.com/111061261/219326625-0e6d3a86-8b58-4d67-bc24-8a78963f36b9.png">
    
    This is happening because the filenames piped to the `git log` command
    are written as is, and it doesn't work when you have a colon at the
    start of the filename, and you need to escape it.
    
    
    You can test it locally,  if you do
    ```
    mkdir repo
    git init
    touch :file 
    git add . && git commit -m "Add file with colon"
    git log -- :file 
    ```
    git log returns nothing. However, if you do `git log -- "\:file"`, it
    will show the commit with the file change.
    
    This PR escapes the starting colons in paths in the `LogNameStatusRepo`
    function, making gitea return commit info about the file with the bad
    filename.
    
    <img width="1209" alt="image"
    src="https://user-images.githubusercontent.com/111061261/219328299-46451246-4006-45e3-89b1-c244635ded23.png">
    
    This error shows up only with files starting with colon, anywhere else
    in filename is ok. Dashes at the beginning also seem to be working.
    I don't know gitea internals well enough to know where else this error
    can pop up, so I'm keeping this PR small as suggested by your
    contributor guide
    kbolashev authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    4938945 View commit details
    Browse the repository at this point in the history
  6. Allow both fullname and username search when DEFAULT_SHOW_FULL_NAME

    … is true (go-gitea#23463)
    
    This PR adds the ability to search both fullname and username for
    assignees, reviewers and author search boxes when the config
    [`DEFAULT_SHOW_FULL_NAME`](https://github.com/go-gitea/gitea/blob/6ff5400af91aefb02cbc7dd59f6be23cc2bf7865/custom/conf/app.example.ini#L1238)
    in `app.ini` is set to `true`. Which is originally raised
    [here](https://projects.blender.org/infrastructure/blender-projects-platform/issues/14)
    And if `DEFAULT_SHOW_FULL_NAME` is set to `false`(default value), these
    search boxes will only show username.
    
    Example:
    When `DEFAULT_SHOW_FULL_NAME = true`
    
    <img width="1220" alt="截屏2023-03-14 14 28 06"
    src="https://user-images.githubusercontent.com/17645053/224914546-80ef2837-ab72-4d66-9f00-6eb77ed4baaa.png">
    
    When `DEFAULT_SHOW_FULL_NAME = false` (default value)
    
    <img width="1243" alt="截屏2023-03-14 14 29 37"
    src="https://user-images.githubusercontent.com/17645053/224914798-f69ec8a2-0929-4330-827c-3e30188f9b47.png">
    
    
    The specific search boxes that adapts these changes include:
    1. Author, Assignee search boxes in pull requests tab and issues tab in
    repository
    <img width="1283" alt="截屏2023-03-14 14 35 01"
    src="https://user-images.githubusercontent.com/17645053/224916250-8e452525-71d6-4b48-bf1c-bf7a176abaaa.png">
    
    2. Assigee and Author on milestones issue page (Added missing search box
    for author here)
    <img width="1261" alt="截屏2023-03-14 14 38 20"
    src="https://user-images.githubusercontent.com/17645053/224916569-d3105619-7824-4bb8-a6d0-1a600eaa9963.png">
    
    3. Assignee on issues and PR Sidebar, Reviewer on PR Sidebar
    <img width="976" alt="截屏2023-03-14 14 41 06"
    src="https://user-images.githubusercontent.com/17645053/224917431-c45d821e-9660-4f58-a196-5979a0bb64ce.png">
    
    <img width="1027" alt="截屏2023-03-14 14 41 58"
    src="https://user-images.githubusercontent.com/17645053/224917290-ad4dbc52-0c20-45c4-9fce-9dcd59ad7d47.png">
    
    4. Assignee when creating new issue
    <img width="961" alt="截屏2023-03-14 14 44 33"
    src="https://user-images.githubusercontent.com/17645053/224917694-34bee5a7-e975-4f37-8862-56ebc2556808.png">
    
    5. Whitelisted users for pushing, Whitelisted users for merging and
    Whitelisted reviewers in Protected branch settings
    <img width="920" alt="截屏2023-03-14 14 48 56"
    src="https://user-images.githubusercontent.com/17645053/224918551-9b46b44e-b075-4895-8d33-1aafc7d3c8e5.png">
    <img width="901" alt="截屏2023-03-14 14 49 02"
    src="https://user-images.githubusercontent.com/17645053/224918584-efa66f23-a593-4e26-a3eb-bb1fbc5516ae.png">
    <img width="944" alt="截屏2023-03-14 14 49 21"
    src="https://user-images.githubusercontent.com/17645053/224918591-be60455d-0513-4f66-84f6-b5e1bc40ff91.png">
    
    
    6.  "Allowed users" in tags settings
    <img width="935" alt="截屏2023-03-14 14 50 11"
    src="https://user-images.githubusercontent.com/17645053/224918701-797699aa-c7e5-4290-b3fe-27dcead1c6c7.png">
    HesterG authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    661e78b View commit details
    Browse the repository at this point in the history
  7. Fix tags sort by creation time (descending) on branch/tag dropdowns (g…

    …o-gitea#23491)
    
    This PR fixes the tags sort issue mentioned in go-gitea#23432
    The tags on dropdown shoud be sorted in descending order of time but are
    not. Because when getting tags, it execeutes `git tag sort
    --sort=-taggerdate`. Git supports two types of tags: lightweight and
    annotated, and `git tag sort --sort=-taggerdate` dosen't work with
    lightweight tags, which will not give correct result. This PR add
    `GetTagNamesByRepoID ` to get tags from the database so the tags are
    sorted.
    
    Also adapt this change to the droplist when comparing branches. 
    
    Dropdown places:
    
    <img width="369" alt="截屏2023-03-15 14 25 39"
    src="https://user-images.githubusercontent.com/17645053/225224506-65a72e50-4c11-41d7-8187-a7e9c7dab2cb.png">
    
    <img width="675" alt="截屏2023-03-15 14 25 27"
    src="https://user-images.githubusercontent.com/17645053/225224526-65ce8008-340c-43f6-aa65-b6bd9e1a1bf1.png">
    HesterG authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    8d9f8e1 View commit details
    Browse the repository at this point in the history
  8. Add absent repounits to create/edit repo API (go-gitea#23500)

    Adds the ability to enable/disable Actions, Packages and Releases from
    the API, via the Edit and Get Repository API endpoints.
    jpts authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    574d8fe View commit details
    Browse the repository at this point in the history
  9. Fix review comment context menu clipped bug (go-gitea#23523)

    This is another regression of go-gitea#22959 (the first regression has been
    fixed by the Image Diff fix)
    
    Close go-gitea#23517
    
    This is a quick fix. Luckily, there is no "dropdown menu" for image/csv
    view, so we could only add the "overflow-x: scroll" to the image/csv
    view.
    
    After fix:
    
    
    ![image](https://user-images.githubusercontent.com/2114189/225643575-9e964b4f-5543-4a69-86c2-2ffc8e40d9a6.png)
    
    
    ![image](https://user-images.githubusercontent.com/2114189/225643670-f0e575d0-f4af-41f4-b023-2d9ddb6462e9.png)
    
    Co-authored-by: KN4CK3R <[email protected]>
    wxiaoguang and KN4CK3R authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    6bad0fb View commit details
    Browse the repository at this point in the history
  10. Update mini-css-extract-plugin, remove postcss (go-gitea#23520)

    Follow-up and proper fix for
    go-gitea#23504
    
    Update to
    [[email protected]](https://github.com/webpack-contrib/mini-css-extract-plugin/releases/tag/v2.7.4)
    which fixes our specific issue described in
    webpack-contrib/css-loader#1503 and which
    allows us to again drop the postcss dependency.
    
    Backport of this is not necessary as I have included it in
    go-gitea#23508.
    
    Co-authored-by: techknowlogick <[email protected]>
    silverwind and techknowlogick authored Mar 16, 2023
    Configuration menu
    Copy the full SHA
    4b72206 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    272cf6a View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2023

  1. Configuration menu
    Copy the full SHA
    e200c68 View commit details
    Browse the repository at this point in the history
  2. Fix aria.js bugs: incorrect role element problem, mobile focus proble…

    …m, tippy problem (go-gitea#23450)
    
    This PR is extracted from go-gitea#23346 to address some unclear (I don't
    understand) code-belonging concerns.
    
    This PR needs to be backported, otherwise the `aria.js` is too buggy in
    some cases. Since there would be two minor conflicts, I will do the
    backport manually.
    
    Before: the `aria.js` is still buggy in some cases.
    
    After: tested with AppleVoice, Android TalkBack
    
    * Fix incorrect dropdown init code
    * Fix incorrect role element (the menu role should be on the `$menu`
    element, but not on the `$focusable`)
    * Fix the focus-show-click-hide problem on mobile. Now the language menu
    works as expected
    * Fix incorrect dropdown template function setting
    * Clarify the logic in aria.js
    * Hide item's tippy after menu gets hidden
    * Fix incorrect tippy `setProps` after `destroy`
    * Fix UI lag problem when page gets redirected during menu hiding
    animation with screen reader
    * Improve comments
    * Implement the layout proposed by go-gitea#19861
    
    <details>
    
    
    https://github.com/go-gitea/gitea/blob/d74a7efb60f94a4b8e6e5f65332f94f1be31b761/web_src/js/features/aria.md?plain=1#L38-L47
    
    </details>
    wxiaoguang authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    345aa09 View commit details
    Browse the repository at this point in the history
  3. Use <nav> instead of <div> in the global navbar (go-gitea#23125)

    Furthermore improved/deleted some comments in the template.
    The appearance did not change.
    
    ---------
    
    Co-authored-by: Lauris BH <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    3 people authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    7692240 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    06c067b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    12ddc48 View commit details
    Browse the repository at this point in the history
  6. Update JS dependencies, Require Node.js 16 (go-gitea#23528)

    - Update all JS dependencies
    - Require Node.js 16 as dictated by `esbuild-loader`
    - Regenerate SVG
    - Adapt to `esbuild-loader` breaking changes
    - Minor refactor in `webpack.config.js`
    - Tested build, monaco and swagger-ui
    
    ---------
    
    Co-authored-by: techknowlogick <[email protected]>
    silverwind and techknowlogick authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    96be0cb View commit details
    Browse the repository at this point in the history
  7. Increase horizontal page padding (go-gitea#23507)

    Add a bit more empty space on left and right side of page content for a
    more pleasant viewing experience. Also tweaked the mobile navbar to
    match.
    
    Before:
    <img width="1276" alt="Screenshot 2023-03-16 at 00 58 23"
    src="https://user-images.githubusercontent.com/115237/225473942-f544106f-1b61-456a-99fb-3ba136cabc8d.png">
    
    After:
    <img width="1270" alt="Screenshot 2023-03-16 at 00 58 37"
    src="https://user-images.githubusercontent.com/115237/225473959-8b555359-a08d-48e1-9476-2710aabb1166.png">
    
    Mobile Navbar:
    <img width="673" alt="Screenshot 2023-03-16 at 01 05 12"
    src="https://user-images.githubusercontent.com/115237/225473966-adccef2b-4d34-44ed-8c75-d4ca46d96cf3.png">
    silverwind authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    6aca928 View commit details
    Browse the repository at this point in the history
  8. Imrove scroll behavior to hash issuecomment(scroll position, auto exp…

    …and if file is folded, and on refreshing) (go-gitea#23513)
    
    Close go-gitea#23466
    
    Right now on pull request "files Changed" tab, if a file is viewed, when
    the comments' links are visited, the comment will not be shown as the
    file is folded after viewed. This PR is to improve the behavior, to make
    the comment seen even the related file is folded, like on github.
    
    And right now scroll position will be remembered and hence it won’t
    scroll to hashed comment after refreshing, this PR also adjust the
    scroll position remembering behavior: When there is hash comment in url,
    do not remember the scroll position.
    
    Before:
    
    https://user-images.githubusercontent.com/17645053/225512079-6cf79581-9346-44cf-95d6-06919642e6a8.mov
    
    After:
    
    https://user-images.githubusercontent.com/17645053/225523753-3f6728f2-977b-4ed0-a65c-63dcef2ace80.mov
    
    Update - long comment's behavior after using `scrollTop ` (Comment div
    scroll to the position which is 30px below the diff header, or 30px
    below top on conversation tab):
    
    https://user-images.githubusercontent.com/17645053/225614460-0602c1a6-229c-41f4-84d2-334e78251486.mov
    HesterG authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    8120c0c View commit details
    Browse the repository at this point in the history
  9. Do not store user projects as organization projects (go-gitea#23353)

    A part of go-gitea#22865
    
    At first, I think we do not need 3 ProjectTypes, as we can check user
    type, but it seems that it is not database friendly.
    
    ---------
    
    Co-authored-by: delvh <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    Co-authored-by: 6543 <[email protected]>
    4 people authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    8e45fcb View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    d0f4818 View commit details
    Browse the repository at this point in the history
  11. Return repository in npm package metadata endpoint (go-gitea#23539)

    Close go-gitea#23444 
    
    Add `Repository` to npm package `Metadata` struct so the `repository` in
    `package.json` can be stored and be returned in the endpoint.
    
    Co-authored-by: KN4CK3R <[email protected]>
    Zettat123 and KN4CK3R authored Mar 17, 2023
    Configuration menu
    Copy the full SHA
    46addc1 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2023

  1. Configuration menu
    Copy the full SHA
    fe8b6cb View commit details
    Browse the repository at this point in the history
  2. Remove worker-loader (go-gitea#23548)

    [`worker-loader`](https://github.com/webpack-contrib/worker-loader) is
    deprecated since webpack 5 which can load workers without it now, so
    remove it. I think it was already dysfunctional because the regex does
    not match our current worker scripts:
    
    ```
    web_src/js/features/eventsource.sharedworker.js
    web_src/js/features/serviceworker.js
    web_src/js/serviceworker.js
    ```
    
    I did confirm that eventsource worker still loads via simple
    `console.log` inside the script.
    
    Co-authored-by: delvh <[email protected]>
    silverwind and delvh authored Mar 18, 2023
    Configuration menu
    Copy the full SHA
    48f6805 View commit details
    Browse the repository at this point in the history
  3. Fix long name ui issues and label ui issue (go-gitea#23541)

    This PR fixes some ui problems as mentioned in the two issues below.
    1. Long file path has no word break
    
    ## Before
    <img width="1357" alt="截屏2023-03-17 17 49 43"
    src="https://user-images.githubusercontent.com/17645053/225873491-27c7bf9a-d5d5-4065-9e4a-ff228e935abf.png">
    
    ## After
    <img width="1248" alt="截屏2023-03-17 17 51 22"
    src="https://user-images.githubusercontent.com/17645053/225873562-93b87af7-9c83-43f8-aa0d-36a9174d25ac.png">
    on mobile
    <img width="408" alt="截屏2023-03-17 17 51 15"
    src="https://user-images.githubusercontent.com/17645053/225873554-1b8c8999-1dfc-4251-a7fc-20ecd3444cb0.png">
    
    
    2. Texts in labels  
    ## Before
    <img width="1219" alt="截屏2023-03-17 17 49 24"
    src="https://user-images.githubusercontent.com/17645053/225873369-812b1b52-c104-4e32-988f-c3e55ad2f844.png">
    
    ## After
    <img width="1259" alt="截屏2023-03-17 17 51 31"
    src="https://user-images.githubusercontent.com/17645053/225873317-9717fd2c-e9e1-4a00-a27d-6bdc5933c3ca.png">
    with two labels
    <img width="1258" alt="截屏2023-03-17 17 51 53"
    src="https://user-images.githubusercontent.com/17645053/225873323-13198192-71de-472d-8e78-6fd86ddba3d9.png">
    In explore and star pages
    <img width="896" alt="截屏2023-03-17 18 25 00"
    src="https://user-images.githubusercontent.com/17645053/225878962-9e26e3aa-cff0-451c-9133-19f4ad1507a4.png">
    
    <img width="913" alt="截屏2023-03-17 18 25 09"
    src="https://user-images.githubusercontent.com/17645053/225878967-6adaa414-136e-43c2-87d0-7e46a0da112e.png">
    
    3. Long name repository on creating new fork page
    ## Before
    <img width="919" alt="截屏2023-03-17 17 50 01"
    src="https://user-images.githubusercontent.com/17645053/225873723-5c4ea137-3b51-4074-a458-ef442e330ddf.png">
    
    ## After
    <img width="907" alt="截屏2023-03-17 17 50 37"
    src="https://user-images.githubusercontent.com/17645053/225873772-fc4a52c3-49c6-4ca6-903d-a13707f2a98b.png">
    
    <img width="383" alt="截屏2023-03-17 17 50 48"
    src="https://user-images.githubusercontent.com/17645053/225873779-6de1dfde-5c05-4ae9-89e1-85c25b3a1682.png">
    
    Closes go-gitea#23535
    Closes go-gitea#23534
    HesterG authored Mar 18, 2023
    Configuration menu
    Copy the full SHA
    d42015e View commit details
    Browse the repository at this point in the history
  4. Upgrade to npm lockfile v3 and explicitely set it (go-gitea#23561)

    `npm@8` which comes with node 16 will by default write lockfile v2
    `npm@9` which comes with recent versions of node 18 and above will write
    lockfile v3
    
    To avoid incorrect lockfile v2 generation on npm v8, force npm to write
    lockfile v3, so no matter which npm version the user has installed, the
    same lockfile format will be generated.
    
    References:
    -
    https://docs.npmjs.com/cli/v9/configuring-npm/package-lock-json#lockfileversion
    - https://nodejs.org/en/download/releases
    
    Co-authored-by: delvh <[email protected]>
    silverwind and delvh authored Mar 18, 2023
    Configuration menu
    Copy the full SHA
    7eede7f View commit details
    Browse the repository at this point in the history
  5. Fix JS error on compare page (go-gitea#23551)

    Fix regression from go-gitea#23271.
    This code apparently runs on the compare page where there is no review button so check for existance of both button and content.
    
    <img width="1226" alt="Screenshot 2023-03-17 at 21 42 47"
    src="https://user-images.githubusercontent.com/115237/226040001-ec097edd-d926-4c80-9962-526f9b7eff19.png">
    
    Fixes go-gitea#23562
    silverwind authored Mar 18, 2023
    Configuration menu
    Copy the full SHA
    53b609e View commit details
    Browse the repository at this point in the history
  6. Fix some broken css (go-gitea#23560)

    1. The "close" inside "modal" are likely broken for long time
        * There is no var called `--body-color`
        * There is no `fullscreen modal`
    * The `.ui.modal > .close.inside` doesn't seem to match most icons. It
    only matches a few like "fork-repo-modal" or "adopt repo". Other places
    are just buggy code copied again and again.
    2. Convert the legacy `&:hover` LESS syntax to CSS syntax
    wxiaoguang authored Mar 18, 2023
    Configuration menu
    Copy the full SHA
    27fcfae View commit details
    Browse the repository at this point in the history
  7. Fix sticky header in diff view (go-gitea#23554)

    Ressurection of go-gitea#23549.
    
    Fix regression go-gitea#23513 (comment) from go-gitea#23271.
    The previous sticky CSS did assume the content is always 2 rows, but since that PR, it's single-row above 993px width.
    Adjust the sticky offset to match and add a small tweak that hides content behind the `border-radius`.
    
    Single row:
    <img width="1264" alt="Screenshot 2023-03-17 at 21 33 05"
    src="https://user-images.githubusercontent.com/115237/226034050-a04b131d-fd3f-45c0-bc72-413738a59825.png">
    
    Double row:
    <img width="1243" alt="Screenshot 2023-03-17 at 21 32 53"
    src="https://user-images.githubusercontent.com/115237/226034163-2f1c6aa9-fc72-432f-bc46-9a7119da8677.png">
    silverwind authored Mar 18, 2023
    Configuration menu
    Copy the full SHA
    9efcce5 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2023

  1. Configuration menu
    Copy the full SHA
    85ca8bf View commit details
    Browse the repository at this point in the history
  2. Enable color for consistency checks diffs (go-gitea#23563)

    Drone can display terminal colors, so force-enable it to make diffs more
    readable on it.
    
    Co-authored-by: delvh <[email protected]>
    silverwind and delvh authored Mar 19, 2023
    Configuration menu
    Copy the full SHA
    847f854 View commit details
    Browse the repository at this point in the history
  3. Fix dropdown icon misalignment when using fomantic icon (go-gitea#23558)

    There are still many dropdowns using fomantic icon. For example: new
    issue with issue template.
    
    Avoid polluting the fomantic styles.
    
    Before:
    
    
    ![image](https://user-images.githubusercontent.com/2114189/226101609-fa64178d-fed0-4541-bea2-72a250cb74db.png)
    
    After:
    
    
    ![image](https://user-images.githubusercontent.com/2114189/226101603-9507b275-fc5b-4a55-870d-db8c4486d80a.png)
    wxiaoguang authored Mar 19, 2023
    Configuration menu
    Copy the full SHA
    30668e0 View commit details
    Browse the repository at this point in the history
  4. Match api migration behavior to web behavior (go-gitea#23552)

    When attempting to migrate a repository via the API endpoint comments
    are always included. This can create a problem if your source repository
    has issues or pull requests but you do not want to import them into
    Gitea that displays as something like:
    
    > Error 500: We were unable to perform the request due to server-side
    problems. 'comment references non existent IssueIndex 4
    
    There are only two ways to resolve this:
    1. Migrate using the web interface
    2. Migrate using the API including at issues or pull requests.
    
    This PR matches the behavior of the API migration router to the web
    migration router.
    
    Co-authored-by: Lauris BH <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    3 people authored Mar 19, 2023
    Configuration menu
    Copy the full SHA
    0206882 View commit details
    Browse the repository at this point in the history
  5. Use project.IconName instead of repeated unreadable if-else chains (

    go-gitea#23538)
    
    The project type will be changed in
    go-gitea#23353, so the old fix
    go-gitea#23325 will not work as well.
    
    And I also found that there were some problems in the old fix....
    
    ---------
    
    Co-authored-by: Lauris BH <[email protected]>
    yp05327 and lafriks authored Mar 19, 2023
    Configuration menu
    Copy the full SHA
    1a4efa0 View commit details
    Browse the repository at this point in the history
  6. Sort Python package descriptors by version to mimic PyPI format (go-g…

    …itea#23550)
    
    ---
    
    Hi, very naive and **untested** first time ever Go code, feel free to
    reject/edit this as needed.
    (PyPI actually performs "naive" string comparison too)
    
    ---------
    
    Co-authored-by: Lauris BH <[email protected]>
    HorlogeSkynet and lafriks authored Mar 19, 2023
    Configuration menu
    Copy the full SHA
    dbdb5ba View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    af37111 View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2023

  1. Display the version of runner in the runner list (go-gitea#23490)

    Close: go-gitea#23489 
    
    ### Change
    1. Add version column to action_runner table.
    2. Read the runner version from the request header, and update it in DB.
    3. Display version in runner list
    
    ### Screenshot
    
    ![image](https://user-images.githubusercontent.com/33891828/225220990-98bc0158-4403-4e6c-9805-31bbbc65a802.png)
    sillyguodong authored Mar 20, 2023
    Configuration menu
    Copy the full SHA
    371520d View commit details
    Browse the repository at this point in the history
  2. Add CHANGELOG for 1.19.0 (go-gitea#23583)

    Co-authored-by: silverwind <[email protected]>
    Co-authored-by: Lauris BH <[email protected]>
    Co-authored-by: techknowlogick <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    5 people authored Mar 20, 2023
    Configuration menu
    Copy the full SHA
    ccd3a55 View commit details
    Browse the repository at this point in the history
  3. Polyfill the window.customElements (go-gitea#23592)

    Related: go-gitea#23590
    
    Reference:
    https://github.com/webcomponents/polyfills/tree/master/packages/webcomponentsjs
    
    It seems that there are some users using old browsers, so the
    `window.customElements` need polyfill.
    
    The Custom Elements would help a lot for Gitea's UI problems, including:
    
    * `<span class="js-pretty-number">`
    * `<time data-format>`
    
    So it's worth get polyfill.
    
    ---------
    
    Co-authored-by: delvh <[email protected]>
    wxiaoguang and delvh authored Mar 20, 2023
    Configuration menu
    Copy the full SHA
    529bac1 View commit details
    Browse the repository at this point in the history
  4. Improve template error reporting (go-gitea#23396)

    There are multiple duplicate reports of errors during template rendering
    due to broken custom templates.
    
    Unfortunately the error returned here is somewhat difficult for users to
    understand and it doesn't return the context of the error.
    
    This PR attempts to parse the error returned by the template renderer to
    add in some further context including the filename of the template AND
    the preceding lines within that template file.
    
    Ref go-gitea#23274
    
    ---------
    
    Signed-off-by: Andrew Thornton <[email protected]>
    zeripath authored Mar 20, 2023
    Configuration menu
    Copy the full SHA
    8f3aaef View commit details
    Browse the repository at this point in the history
  5. Publish Review buttons should indicate why they are disabled (go-gi…

    …tea#23598)
    
    Adding tooltip on "Approve" and "Review Changes" buttons. is try to do
    by them self on their PR.
    Resolves go-gitea#23547
    `Approve` tootip text :- "Pull request authors can’t approve their own
    pull request"
    `Request Changes` tooltip text:- "Pull request authors can’t request
    changes on their own pull request"
    
    
    Before 
    
    https://user-images.githubusercontent.com/115237/225984020-306c048f-cb9b-4dee-8929-1c74c331518b.png
    
    After 
    <img width="841" alt="image"
    src="https://user-images.githubusercontent.com/80308335/226445845-b5f6f6c9-f0dc-4934-a282-3b8be06417a8.png">
    puni9869 authored Mar 20, 2023
    Configuration menu
    Copy the full SHA
    a8c30a4 View commit details
    Browse the repository at this point in the history
  6. fix submodule is nil panic (go-gitea#23588)

    go-gitea#23587  
    submodule path is nil 
    It is panic a nil error
    
    ---------
    
    Co-authored-by: delvh <[email protected]>
    Co-authored-by: KN4CK3R <[email protected]>
    3 people authored Mar 20, 2023
    Configuration menu
    Copy the full SHA
    f83246e View commit details
    Browse the repository at this point in the history

Commits on Mar 21, 2023

  1. Fix .locale.Tr function not found in delete modal (go-gitea#23468)

    Caught by @wxiaoguang in
    go-gitea#23337 (comment).
    
    Additionally, there were three instances that have the same content as `templates/base/deletion_modal_actions.tmpl` but that are not intended to delete something.
    Instead of renaming the template above, these instances were simply re-hard-coded again.
    Renaming/improving the template above is left for future PRs.
    delvh authored Mar 21, 2023
    Configuration menu
    Copy the full SHA
    6250fe1 View commit details
    Browse the repository at this point in the history
  2. Fix pagination on /notifications/watching (go-gitea#23564)

    The `q` parameter was not rendered in pagination links because
    `context.Pagination:AddParam` checks for existance of the parameter in
    `ctx.Data` where it was absent. Added the parameter there to fix it.
    silverwind authored Mar 21, 2023
    Configuration menu
    Copy the full SHA
    45aa4ea View commit details
    Browse the repository at this point in the history
  3. Replace a few fontawesome icons with svg (go-gitea#23602)

    Replaced a few icons with SVG. The only ones left are some in actions
    (idk why new code introduces legacy icons) and a few dropdown icons.
    silverwind authored Mar 21, 2023
    Configuration menu
    Copy the full SHA
    34a2cf5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a797b84 View commit details
    Browse the repository at this point in the history
  5. Remove @metalmatze as maintainer (go-gitea#23612)

    It's time. I haven't been active in years.
    metalmatze authored Mar 21, 2023
    Configuration menu
    Copy the full SHA
    ad6444f View commit details
    Browse the repository at this point in the history
  6. Remove conflicting CSS rules on notifications, improve notifications …

    …table (go-gitea#23565)
    
    Dropdowns on `/notifications/subscriptions` before and after:
    
    <img width="157" alt="Screenshot 2023-03-18 at 20 37 12"
    src="https://user-images.githubusercontent.com/115237/226133906-e4ad6a0a-de24-4324-8e1d-94081d23fe85.png">
    <img width="152" alt="Screenshot 2023-03-18 at 20 41 29"
    src="https://user-images.githubusercontent.com/115237/226134038-c3946c32-a424-4b92-ad15-890e1036cafe.png">
    
    These selectors are meant to target the notification list which I
    improved:
    
    <img width="1145" alt="Screenshot 2023-03-19 at 01 52 11"
    src="https://user-images.githubusercontent.com/115237/226147907-1c35736a-4bc9-4698-9813-21a20a1d2106.png">
    <img width="1148" alt="Screenshot 2023-03-19 at 01 54 17"
    src="https://user-images.githubusercontent.com/115237/226147920-626dbd84-11d3-48db-a177-6d808e3212c0.png">
    silverwind authored Mar 21, 2023
    Configuration menu
    Copy the full SHA
    253a00a View commit details
    Browse the repository at this point in the history
  7. Introduce path Clean/Join helper functions (go-gitea#23495)

    Since go-gitea#23493 has conflicts with latest commits, this PR is my proposal
    for fixing go-gitea#23371
    
    Details are in the comments
    
    And refactor the `modules/options` module, to make it always use
    "filepath" to access local files.
    
    Benefits:
    
    * No need to do `util.CleanPath(strings.ReplaceAll(p, "\\", "/"))),
    "/")` any more (not only one before)
    * The function behaviors are clearly defined
    wxiaoguang authored Mar 21, 2023
    Configuration menu
    Copy the full SHA
    ce9dee5 View commit details
    Browse the repository at this point in the history
  8. Remove id="comment-form" dead code, fix tag (go-gitea#23555)

    The code has been dead code since go-gitea#5073 . `go-gitea#5073` duplicated the code in
    a new `if` block.
    
    The dead code blocks 
    * go-gitea#23290
    wxiaoguang authored Mar 21, 2023
    Configuration menu
    Copy the full SHA
    9b01908 View commit details
    Browse the repository at this point in the history
  9. Decouple the issue-template code from comment_tab.tmpl (go-gitea#23556)

    It would help  go-gitea#23290
    
    The issue-template code is only useful for "new issue" or "new PR", so
    it could only be put in the `new_form.tmpl`
    wxiaoguang authored Mar 21, 2023
    Configuration menu
    Copy the full SHA
    76a1edf View commit details
    Browse the repository at this point in the history
  10. Set opaque background on markup and images (go-gitea#23578)

    - Set opaque background on markup images so they can visually break
    `<hr>`
    - Change padding of comment box so `padding` is provided by the
    `.markup` element instead of its parent, matching the file rendering
    view which does the same.
    
    Before:
    <img width="243" alt="Screenshot 2023-03-19 at 19 22 03"
    src="https://user-images.githubusercontent.com/115237/226198663-8ff4d940-6a15-452d-ac58-14485b37fbc7.png">
    
    After:
    <img width="261" alt="Screenshot 2023-03-19 at 19 23 26"
    src="https://user-images.githubusercontent.com/115237/226198689-1bf56561-4726-46dc-b583-423d65e1e13a.png">
    <img width="263" alt="image"
    src="https://user-images.githubusercontent.com/115237/226199002-e93c817d-6d9c-4b98-bad8-0aa0bd45b62f.png">
    
    Example documents:
    
    https://try.gitea.io/silverwind/symlink-test/src/branch/master/test-page.md
    https://github.com/silverwind/symlink-test/blob/master/test-page.md
    silverwind authored Mar 21, 2023
    Configuration menu
    Copy the full SHA
    ca0ce9f View commit details
    Browse the repository at this point in the history
  11. Update PR documentation (go-gitea#23620)

    This updates the PR docs and explains how to work with PRs, for those
    who may not know.
    
    It was mentioned that this page could explain PRs a bit better, in case
    some users are not familiar with GitHub or similar forges.
    
    Signed-off-by: jolheiser <[email protected]>
    jolheiser authored Mar 21, 2023
    Configuration menu
    Copy the full SHA
    71be657 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2023

  1. Configuration menu
    Copy the full SHA
    43809e6 View commit details
    Browse the repository at this point in the history
  2. Use a general approch to improve a11y for all checkboxes and dropdown…

    …s. (go-gitea#23542)
    
    This PR follows go-gitea#22599 and go-gitea#23450
    
    The major improvements:
    
    1. The `aria-*.js` are totally transparent now, no need to call
    `attachDropdownAria` explicitly anymore.
    * It hooks the `$.fn.checkbox` and `$.fn.dropdown`, then our patch
    works.
    * It makes all dynamically generated checkbox/dropdown work with a11y
    without any change
    * eg: the `conversation.find('.dropdown').dropdown();` in `repo-diff.js`
    2. Since it's totally transparent now, it could be easier to modify or
    remove in the future.
    3. It handles all selection labels as well (by onLabelCreate), so it
    supports "multiple selection dropdown" now.
    * It partially completes one of my TODOs: `TODO: multiple selection is
    not supported yet.`
    4. The code structure is clearer, code blocks are splitted into
    different functions.
    * The old `attachOneDropdownAria` was splitted into separate functions.
    * It makes it easier to add more fine tunes in the future, and co-work
    with contributors.
    6. The code logic is similar as before, only two new parts: 
        1. the `ariaCheckboxFn` and `ariaDropdownFn` functions
        2. the `onLabelCreate` and `updateSelectionLabel` functions
    
    In `aria-dropdown.js` I had to mix jQuery and Vanilla JS somewhat, I
    think the code is still understandable, otherwise the code would be much
    more complex to read.
    
    Thanks to fsologureng for the idea about "improving the 'delete icon'
    with aria attributes".
    
    If there is anything unclear or incorrect, feel free to ask and discuss,
    or propose new PRs for it.
    wxiaoguang authored Mar 22, 2023
    Configuration menu
    Copy the full SHA
    d4f35bd View commit details
    Browse the repository at this point in the history
  3. Add extra features to product comparison (go-gitea#23638)

    Add some review features that are notably missing from Gitlab CE but not
    Gitea.
    
    Also add Merge Queues which is not supported by Gitea but is quite an
    important feature.
    Timmmm authored Mar 22, 2023
    Configuration menu
    Copy the full SHA
    662fbe0 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2023

  1. Configuration menu
    Copy the full SHA
    1d35fa0 View commit details
    Browse the repository at this point in the history
  2. Improve <SvgIcon> to make it output svg node and optimize perform…

    …ance (go-gitea#23570)
    
    Before, the Vue `<SvgIcon>` always outputs DOM nodes like: 
    
    ```html
    <span class="outer-class">
        <svg class="class-name-defined" ...></svg>
    </span>
    ```
    
    The `span` is redundant and I guess such layout and the inconsistent
    `class/class-name` attributes would cause bugs sooner or later.
    
    This PR makes the `<SvgIcon>` clear, and it's faster than before,
    because it doesn't need to parse the whole SVG string.
    
    Before: 
    
    <details>
    
    ![image](https://user-images.githubusercontent.com/2114189/226156474-ce2c57cd-b869-486a-b75b-1eebdac8cdf7.png)
    
    </details>
    
    After:
    
    ![image](https://user-images.githubusercontent.com/2114189/226155774-108f49ed-7512-40c3-94a2-a6e8da18063d.png)
    
    ---------
    
    Co-authored-by: silverwind <[email protected]>
    wxiaoguang and silverwind authored Mar 23, 2023
    Configuration menu
    Copy the full SHA
    389e83f View commit details
    Browse the repository at this point in the history
  3. Improve workflow event triggers (go-gitea#23613)

    Follow go-gitea#23037 
    Fix [go-gitea#22598
    comment](go-gitea#22958 (comment))
    
    Workflows with `pull_request` trigger event can't be triggered by
    `pull_request_sync` event. This PR adds the `canGithubEventMatch`
    function to check if a Github event can match any Gitea event. If the
    Github event matches a Gitea event, the related workflows should be
    triggered.
    
    ---------
    
    Co-authored-by: Lunny Xiao <[email protected]>
    Zettat123 and lunny authored Mar 23, 2023
    Configuration menu
    Copy the full SHA
    e7f0bcf View commit details
    Browse the repository at this point in the history
  4. Use a general approach to show tooltip, fix temporary tooltip bug (go…

    …-gitea#23574)
    
    ## TLDR
    
    * Improve performance: lazy creating the tippy instances.
    * Transparently support all "tooltip" elements, no need to call
    `initTooltip` again and again.
    * Fix a temporary tooltip re-entrance bug, which causes showing temp
    content forever.
    * Upgrade vue3-calendar-heatmap to 2.0.2 with lazy tippy init
    (initHeatmap time decreases from 100ms to 50ms)
    
    ## Details
    
    ### The performance
    
    Creating a lot of tippy tooltip instances is expensive. This PR doesn't
    create all tippy tooltip instances, instead, it only adds "mouseover"
    event listener to necessary elements, and then switches to the tippy
    tooltip
    
    ### The general approach for all tooltips
    
    Before, dynamically generated tooltips need to be called with
    `initTooltip`.
    
    After, use MutationObserver to:
    
    * Attach the event listeners to newly created tooltip elements, work for
    Vue (easier than before)
    * Catch changed attributes and update the tooltip content (better than
    before)
    
    It does help a lot, eg:
    
    https://github.com/go-gitea/gitea/blob/1a4efa0ee9a49d48549be7479a46be133b9bc260/web_src/js/components/PullRequestMergeForm.vue#L33-L36
    
    ### Temporary tooltip re-entrance bug
    
    To reproduce, on try.gitea.io, click the "copy clone url" quickly, then
    the tooltip will be "Copied!" forever.
    
    After this PR, with the help of `attachTippyTooltip`, the tooltip
    content could be reset to the default correctly.
    
    ### Other changes
    
    * `data-tooltip-content` is preferred from now on, the old
    `data-content` may cause conflicts with other modules.
    * `data-placement` was only used for tooltip, so it's renamed to
    `data-tooltip-placement`, and removed from `createTippy`.
    wxiaoguang authored Mar 23, 2023
    Configuration menu
    Copy the full SHA
    9be90a5 View commit details
    Browse the repository at this point in the history
  5. Check LFS/Packages settings in dump and doctor command (go-gitea#23631)

    Close go-gitea#23622 
    
    As described in the issue, disabling the LFS/Package settings will cause
    errors when running `gitea dump` or `gitea doctor`. We need to check the
    settings and the related operations should be skipped if the settings
    are disabled.
    
    Co-authored-by: Lunny Xiao <[email protected]>
    Zettat123 and lunny authored Mar 23, 2023
    Configuration menu
    Copy the full SHA
    df41181 View commit details
    Browse the repository at this point in the history
  6. Restructure documentation. Now the documentation has installation, ad…

    …ministration, usage, development, contributing the 5 main parts (go-gitea#23629)
    
    - **Installation**: includes how to install Gitea and related other
    tools, also includes upgrade Gitea
    - **Administration**: includes how to configure Gitea, customize Gitea
    and manage Gitea instance out of Gitea admin UI
    - **Usage**: includes how to use Gitea's functionalities. A sub
    documentation is about packages, in future we could also include CI/CD
    and others.
    - **Development**: includes how to integrate with Gitea's API, how to
    develop new features within Gitea
    - **Contributing**: includes how to contribute code to Gitea
    repositories.
    
    After this is merged, I think we can have a sub-documentation of `Usage`
    part named `Actions` to describe how to use Gitea actions
    
    ---------
    
    Co-authored-by: John Olheiser <[email protected]>
    lunny and jolheiser authored Mar 23, 2023
    Configuration menu
    Copy the full SHA
    e8433b7 View commit details
    Browse the repository at this point in the history
  7. Fix incorrect show-modal and show-panel class (go-gitea#23660)

    That's incorrect code caused by Copy&Paste.
    
    `show-modal` / `show-panel` are used by JS to show something, but these
    links have `href`, they should navigate to new page.
    
    Close go-gitea#23657
    wxiaoguang authored Mar 23, 2023
    Configuration menu
    Copy the full SHA
    378d6b8 View commit details
    Browse the repository at this point in the history
  8. A tool to help to backport locales, changes source strings to fix oth…

    …er broken translations (go-gitea#23633)
    
    It use old en-US locales as reference, fill the old other locales with
    new locales.
    
    ----
    
    ## More broken translations
    
    Many translations are still broken. The reason is: at the last time
    restoring the ini to crowdin, many semicolon are treated as comments.
    
    Two kinds of broken strings:
    
    ### Some translations can be re-translated
    
    <details>
    
    ```
    skipping options/locale/locale_si-LK.ini org teams.add_nonexistent_repo
    skipping options/locale/locale_tr-TR.ini repo commits.search.tooltip
    skipping options/locale/locale_es-ES.ini repo settings.trust_model.committer.desc
    skipping options/locale/locale_es-ES.ini admin dashboard.new_version_hint
    skipping options/locale/locale_pt-PT.ini org teams.add_nonexistent_repo
    skipping options/locale/locale_hu-HU.ini install require_sign_in_view_popup
    skipping options/locale/locale_hu-HU.ini repo migrate.invalid_local_path
    skipping options/locale/locale_id-ID.ini repo migrate.invalid_local_path
    skipping options/locale/locale_id-ID.ini org teams.add_nonexistent_repo
    skipping options/locale/locale_de-DE.ini repo settings.protect_protected_file_patterns_desc
    ```
    
    </details>
    
    So this PR also does some small changes on them, to trigger the
    re-translation.
    
    ### The `locale_el-GR.ini` contains many broken tranlsations
    
    I guess we should reset them from crowdin side, then translators can
    re-translate them.
    
    ----
    
    Update: in latest main, the strings have been fixed.
    
    ## TODO
    
    Update: the el-GR translators have done great job and fixes these broken
    translations.
    
    
    <details>
    
    Merge this PR ASAP and upload `locale_el-GR.ini` to crowdin to remove
    broken strings.
    
    
    Out-dated, fixed in main.
    
    
    ![image](https://user-images.githubusercontent.com/2114189/226954531-36e14527-278a-41a1-8ddb-2b2b27bfc746.png)
    
    </details>
    
    ---------
    
    Co-authored-by: delvh <[email protected]>
    wxiaoguang and delvh authored Mar 23, 2023
    Configuration menu
    Copy the full SHA
    95818ad View commit details
    Browse the repository at this point in the history
  9. Fix new issue/pull request btn margin when it is next to sort (go-git…

    …ea#23647)
    
    Close go-gitea#23627 
    
    Added margin left to the button when it is next to the svg, which has a
    margin-right of `-0.5rem`
    
    And here it might be better if `white-space: nowrap;` is added because
    otherwise it might look like below on pull requests page on smaller
    screen
    
    <img width="945" alt="截屏2023-03-23 09 57 41"
    src="https://user-images.githubusercontent.com/17645053/227079613-71c696ab-55ec-4641-acb9-622a8baebb31.png">
    
    After:
    <img width="936" alt="截屏2023-03-23 10 08 27"
    src="https://user-images.githubusercontent.com/17645053/227080971-6bf2588e-40dd-4770-b0d1-45d7c63e0f48.png">
    
    Pull Request on smaller screen
    <img width="922" alt="截屏2023-03-23 10 25 16"
    src="https://user-images.githubusercontent.com/17645053/227084144-0c2ed3e6-5c11-4252-bba2-b5f971b70f4a.png">
    HesterG authored Mar 23, 2023
    Configuration menu
    Copy the full SHA
    9cefb7b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    9f39def View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    0fd7e37 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2023

  1. Configuration menu
    Copy the full SHA
    4acf021 View commit details
    Browse the repository at this point in the history
  2. Fix incorrect HookEventType of pull request review comments (go-git…

    …ea#23650)
    
    `HookEventType` of pull request review comments should be
    `HookEventPullRequestReviewComment` but some event types are
    `HookEventPullRequestComment` now.
    Zettat123 authored Mar 24, 2023
    Configuration menu
    Copy the full SHA
    9e04627 View commit details
    Browse the repository at this point in the history
  3. Editor preview support for external renderers (go-gitea#23333)

    Remove `[repository.editor] PREVIEWABLE_FILE_MODES` setting that seemed
    like it was intended to support this but did not work. Instead, whenever
    viewing a file shows a preview, also have a Preview tab in the file
    editor.
    
    Add new `/markup` web and API endpoints with `comment`, `gfm`,
    `markdown` and new `file` mode that uses a file path to determine the
    renderer.
    
    Remove `/markdown` web endpoint but keep the API for backwards and
    GitHub compatibility.
    
    ## ⚠️ BREAKING ⚠️
    
    The `[repository.editor] PREVIEWABLE_FILE_MODES` setting was removed.
    This setting served no practical purpose and was not working correctly.
    Instead a preview tab is always shown in the file editor when supported.
    
    ---------
    
    Co-authored-by: zeripath <[email protected]>
    Co-authored-by: Lunny Xiao <[email protected]>
    3 people authored Mar 24, 2023
    Configuration menu
    Copy the full SHA
    84daddc View commit details
    Browse the repository at this point in the history
  4. Fix long project name display in issue list and in related dropdown (g…

    …o-gitea#23653)
    
    This PR is to fix the second problem mentioned in go-gitea#23625, along with the
    long texts problem in `issue-item-bottom-row` of `issuelist.tmpl`
    
    Main changes are:
    1. Add `max-width` to the search dropdowns in issue list and make the
    possible long texts inside to show ellipsis if texts are long
    2. Adjust the conditions in
    [issuelist.tmpl](https://github.com/go-gitea/gitea/blob/1d35fa0e784dffcadacb2322a3d7ac3ec2ff89b2/templates/shared/issuelist.tmpl#L146-L167)
    to fix the problem as mentioned by the
    [comment](go-gitea#23625 (comment))
    3. Use `word-break: break-word;` in `issue-item-bottom-row` to break the
    possible long texts.
    
    After the PR
    issuelist in repo (similar for pr list):
    <img width="366" alt="截屏2023-03-23 17 42 40"
    src="https://user-images.githubusercontent.com/17645053/227163953-93e9adbd-5785-4c16-b538-9db901787775.png">
    
    dropdowns with long name (Here take reference from github to deal with
    the long names cases: show ellipsis with no title, because all these
    options are clickable, and it might not be necessary to add titles to
    them ):
    
    <img width="370" alt="截屏2023-03-23 17 43 50"
    src="https://user-images.githubusercontent.com/17645053/227164215-df6fcaaa-9fee-4256-a57c-053fbcffafbb.png">
    
    <img width="365" alt="截屏2023-03-23 17 43 56"
    src="https://user-images.githubusercontent.com/17645053/227164227-9c99abcd-f410-4e07-b5b8-cbce764eedcd.png">
    
    issue page (similar for pr page):
    <img width="374" alt="截屏2023-03-23 17 45 37"
    src="https://user-images.githubusercontent.com/17645053/227164668-654a8188-dac8-4bbf-a6e3-f3768a644a1b.png">
    
    on PC:
    <img width="1412" alt="截屏2023-03-23 17 47 20"
    src="https://user-images.githubusercontent.com/17645053/227166694-e7bcc6e5-9667-4cef-9fbf-db85640a2c6c.png">
    
    <img width="1433" alt="截屏2023-03-23 17 46 40"
    src="https://user-images.githubusercontent.com/17645053/227165182-4e2a5d19-74bc-4c66-b73c-23cbca176ffe.png">
    HesterG authored Mar 24, 2023
    Configuration menu
    Copy the full SHA
    a9cceb0 View commit details
    Browse the repository at this point in the history
  5. Fix cancel button in the page of project edit not work (go-gitea#23655)

    Before, in project edit page, the cancel button is not work.
    
    https://user-images.githubusercontent.com/33891828/227182731-6478e29f-0e52-48c4-beb0-6a7d1dda6a1d.mov
    
    1. The wrong classname `cancel` was added to the `<a>` tag. That
    classname caused the default click event of `<a>` tag to be cancelled.
    Because we have the following settings in the global. So I remove the
    classname `cancel`.
    
    https://github.com/go-gitea/gitea/blob/9be90a58754061171bbd5025d85d2b891364efd3/web_src/js/features/common-global.js#L325-L327
    
    2. Another change is that page will redirect to the previous page.
    
    https://user-images.githubusercontent.com/33891828/227187326-c653c6d6-9715-440f-a732-ba0a6f012c81.mov
    sillyguodong authored Mar 24, 2023
    Configuration menu
    Copy the full SHA
    d02e83a View commit details
    Browse the repository at this point in the history
  6. Add aria attributes to interactive time tooltips. (go-gitea#23661)

    Fixes go-gitea#23645
    * Added `describedby` attribute to the reference element.
    * Eliminated `aria-expanded` attribute to the reference element in order
    to conform strictly with WCAG 2.1 rules.
    fsologureng authored Mar 24, 2023
    Configuration menu
    Copy the full SHA
    87f0f7e View commit details
    Browse the repository at this point in the history
  7. Use data-tooltip-content for tippy tooltip (go-gitea#23649)

    Follow:
    * go-gitea#23574
    * Remove all ".tooltip[data-content=...]"
    
    Major changes:
    
    * Remove "tooltip" class, use "[data-tooltip-content=...]" instead of
    ".tooltip[data-content=...]"
    * Remove legacy `data-position`, it's dead code since last Fomantic
    Tooltip -> Tippy Tooltip refactoring
    * Rename reaction attribute from `data-content` to
    `data-reaction-content`
    * Add comments for some `data-content`: `{{/* used by the form */}}`
    * Remove empty "ui" class
    * Use "text color" for SVG icons (a few)
    wxiaoguang authored Mar 24, 2023
    Configuration menu
    Copy the full SHA
    8d5fbeb View commit details
    Browse the repository at this point in the history
  8. Clarify that Gitea requires JavaScript (go-gitea#23677)

    Close go-gitea#20553
    
    There were already a lot of functions powered by JavaScript in Gitea.
    
    Without JavaScript, the Gitea Web UI almost doesn't work (only some
    static links work ....)
    wxiaoguang authored Mar 24, 2023
    Configuration menu
    Copy the full SHA
    e52ea44 View commit details
    Browse the repository at this point in the history
  9. Merge branch 'main' into notification-table

    # Conflicts:
    #	templates/user/notification/notification_div.tmpl
    #	web_src/less/_user.less
    wxiaoguang committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    13a7190 View commit details
    Browse the repository at this point in the history
  10. fix

    wxiaoguang committed Mar 24, 2023
    Configuration menu
    Copy the full SHA
    075112b View commit details
    Browse the repository at this point in the history