techknowlogick
Repos
46
Followers
85
Following
10

Go CGO cross compiler

315
68

Git with a cup of tea, painless self-hosted git service

33489
4102

Caddy plugin to generate file indexes of S3 buckets to browse via Web Client

55
10

Authentication server for Docker Registry 2

1115
279

Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications.

3931
462

Nix Packages collection

10835
8516

Events

pull request opened
Filter project boards based on labels

Partial implementation of #21846 Without filtering: With filtering:

Per the ticket, this is a naive approach where the filtering is done via client side. The proper approach would be to do it client side, and this can be done once the sorting of tickets issue is solved.

Created at 5 hours ago
create branch
techknowlogick create branch filter-project-boards
Created at 5 hours ago

Move all remaining colors into CSS variables (#21903)

This should eliminate all non-variable color usage in the styles, making gitea fully themeable via CSS variables. Also, it adds a linter to enforce variables for colors.

Handle empty author names (#21902)

Although git does expect that author names should be of the form: NAME <EMAIL> some users have been able to create commits with: <EMAIL>

Fix #21900

Signed-off-by: Andrew Thornton art27@cantab.net Co-authored-by: delvh dev.lh@web.de Co-authored-by: Lauris BH lauris@nix.lv Co-authored-by: Lunny Xiao xiaolunwen@gmail.com

feat: add button to quickly clear merge message (#21548)

This PR adds a button to allow quickly clearing the merge message of a PR. The button will remove everything but the git trailers.

I found myself often pruning the commit message before merging, especially for PRs generated by renovate - renovate puts a very long and detailed comment with the full changelog in each PR it opens. This clutters the commit message. However, I want to explicitly preserve the git commit trailers. Doing this manually works, but having a button is a lot easier.

Screenshot:

image

Co-authored-by: Lunny Xiao xiaolunwen@gmail.com Co-authored-by: wxiaoguang wxiaoguang@gmail.com Co-authored-by: delvh dev.lh@web.de

Move migration test fixtures to the correct directories (#21901)

Unfortunately #21549 changed the name of Testcases without changing their associated fixture directories.

Fix #21854

Signed-off-by: Andrew Thornton art27@cantab.net Co-authored-by: Lunny Xiao xiaolunwen@gmail.com

Ensure that Webhook tasks are not double delivered (#21558)

When re-retrieving hook tasks from the DB double check if they have not been delivered in the meantime. Further ensure that tasks are marked as delivered when they are being delivered.

In addition:

  • Improve the error reporting and make sure that the webhook task population script runs in a separate goroutine.
  • Only get hook task IDs out of the DB instead of the whole task when repopulating the queue
  • When repopulating the queue make the DB request paged

Ref #17940

Signed-off-by: Andrew Thornton art27@cantab.net Co-authored-by: delvh dev.lh@web.de Co-authored-by: Lunny Xiao xiaolunwen@gmail.com

Improve docker rootless documentation (#21913)

Emphasize folder creation/permission granting

Signed-off-by: Xinyu Zhou i@sourcehut.net

Signed-off-by: Xinyu Zhou i@sourcehut.net Co-authored-by: techknowlogick techknowlogick@gitea.io

Fix vertical align of committer avatar rendered by email address (#21884)

Committer avatar rendered by func AvatarByEmail are not vertical align as func Avatar does.

  • Replace literals ui avatar and ui avatar vm with the constant DefaultAvatarClass

Add index for access_token (#21908)

The token_last_eight field has been used in GetAccessTokenBySHA :

Fix flex layout for repo list icons (#21896)

#20241 Added a tooltip, which does not satisfy the flex layout, and the icons are not aligned

Signed-off-by: Xinyu Zhou i@sourcehut.net

Fix table misalignments and tweak webhook and githook lists (#21917)

  • Fix regression from #21893 which had misaligned a few tables like repo lists and e-mails
  • Bring githooks list in line with webhooks list for styling
  • Change webhook list icons to just colored dots, like githook list
  • Increase size of dot in webhook and githook list from 16 to 22px

Fix typo in sidebar (#21922)

Fix button in branch list, avoid unexpected page jump before restore branch actually done (#21562)

This patch:

  • Use <button> replace anchor link <a> in Delete/Restore Branch button to avoid unexpected page jump before restore branch actually done.
  • Also replace right side buttons with <button> in branch list, let some screen readers know they are buttons.

Before

click restore branch -> restore triggered -> page refreshed, but branch status not update -> manually refresh page

https://user-images.githubusercontent.com/76462613/197389108-5a0bd259-0455-40b2-92ac-4326900276f8.mp4

After

waiting restore done -> page refresh -> branch status update

https://user-images.githubusercontent.com/76462613/197428683-616fcbd2-70f9-4572-bf76-e0b7f77b6dd7.mp4

Signed-off-by: baronbunny its@baronbunny.cn Co-authored-by: Lunny Xiao xiaolunwen@gmail.com Co-authored-by: Lauris BH lauris@nix.lv

Add support for HEAD requests in Maven registry (#21834)

Related #18543

Co-authored-by: Lunny Xiao xiaolunwen@gmail.com

Fix scroll over mermaid frame (#21925)

When starting a scroll while the mouse is over a mermaid diagram, the scroll sometimes propagates to the iframe, preventing the parent page from scrolling. Fix this by disabling scroll inside the iframe. This is not a problem because those frames are never meant to scroll. Bug seems to affect Firefox only.

scroll

Workaround for container registry push/pull errors (#21862)

This PR addresses #19586

I added a mutex to the upload version creation which will prevent the push errors when two requests try to create these database entries. I'm not sure if this should be the final solution for this problem.

I added a workaround to allow a reupload of missing blobs. Normally a reupload is skipped because the database knows the blob is already present. The workaround checks if the blob exists on the file system. This should not be needed anymore with the above fix so I marked this code to be removed with Gitea v1.20.

Co-authored-by: Lunny Xiao xiaolunwen@gmail.com

fix(web): keep the pages of the navigation in the center (#21867)

Keep the pages of the navigation in the center

Co-authored-by: Lunny Xiao xiaolunwen@gmail.com Co-authored-by: John Olheiser john.olheiser@gmail.com

Fix typo in sidebar (#21934)

Same as #21922 I used the npm file as template which was a bad idea to spot these casing errors...

add rel="me" to org.website link (#21941)

This lets organizations verify their link on 3rd party websites.

Prevent NPE if trying to restore an already restored deleted branch (#21940)

If a deleted-branch has already been restored, a request to restore it again will cause a NPE. This PR adds detection for this case, but also disables buttons when they're clicked in order to help prevent accidental repeat requests.

Fix #21930

Signed-off-by: Andrew Thornton art27@cantab.net

Fix markdown anchor re-clicking (#21931)

The hashchange event did not fire on re-click of a active anchor. Instead, use the click event which always fires.

Fixes: https://github.com/go-gitea/gitea/issues/21680

Co-authored-by: Lunny Xiao xiaolunwen@gmail.com Co-authored-by: zeripath art27@cantab.net

Created at 7 hours ago

Fix scroll over mermaid frame (#21925)

When starting a scroll while the mouse is over a mermaid diagram, the scroll sometimes propagates to the iframe, preventing the parent page from scrolling. Fix this by disabling scroll inside the iframe. This is not a problem because those frames are never meant to scroll. Bug seems to affect Firefox only.

scroll

Workaround for container registry push/pull errors (#21862)

This PR addresses #19586

I added a mutex to the upload version creation which will prevent the push errors when two requests try to create these database entries. I'm not sure if this should be the final solution for this problem.

I added a workaround to allow a reupload of missing blobs. Normally a reupload is skipped because the database knows the blob is already present. The workaround checks if the blob exists on the file system. This should not be needed anymore with the above fix so I marked this code to be removed with Gitea v1.20.

Co-authored-by: Lunny Xiao xiaolunwen@gmail.com

fix(web): keep the pages of the navigation in the center (#21867)

Keep the pages of the navigation in the center

Co-authored-by: Lunny Xiao xiaolunwen@gmail.com Co-authored-by: John Olheiser john.olheiser@gmail.com

Fix typo in sidebar (#21934)

Same as #21922 I used the npm file as template which was a bad idea to spot these casing errors...

add rel="me" to org.website link (#21941)

This lets organizations verify their link on 3rd party websites.

Merge branch 'main' into fix-21930-no-double-restore-branch

Created at 3 days ago
issue comment
Remove useless "Cancel" buttons

For accessibility purposes, I believe we may need to keep these for keyboard only/screen reader users. Would you mind if I block this PR, and then I can test with the screen reader software we have access to?

Created at 4 days ago
closed issue
[Idea] Web IDE using theia

Since Theia IDE 1.0 was launched I thought it might be an opportunity for a new gitea feature.

What is Theia

Eclipse Theia is an extensible platform to develop full-fledged multi-language Cloud & Desktop IDE-like products with state-of-the-art web technologies.

It is basically a self hosted vscode (it looks like vsocde and can use vscode extensions) and comes with it's own docker container.

I think using this would be a better experience than gitlab's web IDE in terms of both UI and functionality.

I am unsure of how much work would be required for this but I would love to hear what people think about this idea

Created at 4 days ago
issue comment
[Idea] Web IDE using theia

Gitpod has a PR that is adding Gitea support, and I believe other web IDEs are adding the same. So I think this should be closed (at least for now).

Created at 4 days ago
issue comment
Limit repo size

@DmitryFrolovTri I've heard back from OC, and because you are not using them as a fiscal sponsor that's why I couldn't make the transfer. So I will just mention it here that upon completion of this PR/issue we will pay out $500 from our collective for the bounty (this amount was chosen to limit tax burden to whoever gets paid out), and @sapk for your work so far, if you are interested, we can pay you for your work so far (reach out to me via email and I can get you sorted).

Created at 4 days ago
issue comment
`go-1.19.3` tag starts complaining about missing go.mod file

This could be related to https://github.com/techknowlogick/xgo/commit/dc59b5d9597da98682b4a4a22ae517f7fd6273ad which changes the GO111MODULES detection behaviour.

Created at 4 days ago
delete branch
techknowlogick delete branch 1.18rc1
Created at 4 days ago

Update CHANGELOG.md

Created at 5 days ago
issue comment
Ratelimiting user logins

I have a very rough PR for this here: https://github.com/go-gitea/gitea/pull/21181

Created at 5 days ago
issue comment
Ratelimiting user logins

@silverwind yeah, IP because if you do it by username you could essentially lock out users by failing to log in as them a few times.

Created at 5 days ago

Apply suggestions from code review

Created at 5 days ago

Improve docker rootless documentation (#21913)

Emphasize folder creation/permission granting

Signed-off-by: Xinyu Zhou i@sourcehut.net

Signed-off-by: Xinyu Zhou i@sourcehut.net Co-authored-by: techknowlogick techknowlogick@gitea.io

Created at 5 days ago