Commit Graph
6 Commits
Author SHA1 Message Date
Jason Song f9cbf5a1bc Util type to parse ref name (#21969)
Provide a new type to make it easier to parse a ref name.

Actually, it's picked up from #21937, to make the origin PR lighter.

Co-authored-by: Lunny Xiao <[email protected]>
2022-12-01 19:56:04 +08:00
flynnnnnnnnnn e81ccc406b Implement FSFE REUSE for golang files (#21840)
Change all license headers to comply with REUSE specification.

Fix #16132

Co-authored-by: flynnnnnnnnnn <flynnnnnnnnnn@github>
Co-authored-by: John Olheiser <[email protected]>
2022-11-27 18:20:29 +00:00
zeripath e6b3be4608 Add more checks in migration code (#21011)
When migrating add several more important sanity checks:

* SHAs must be SHAs
* Refs must be valid Refs
* URLs must be reasonable

Signed-off-by: Andrew Thornton <[email protected]>

Signed-off-by: Andrew Thornton <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
2022-09-04 13:47:56 +03:00
mscherer 34b5436ae1 Refactor various strings (#17784)
Fixes #16478

Co-authored-by: Gusted <[email protected]>

Co-authored-by: Gusted <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
2021-12-02 15:28:08 +08:00
zeripath c05a8abc76 Multiple GitGraph improvements: Exclude PR heads, Add branch/PR links, Show only certain branches, (#12766)
* Multiple GitGraph improvements.

Add backend support for excluding PRs, selecting branches and files.

Fix #10327

Signed-off-by: Andrew Thornton <[email protected]>

* as per @silverwind

Signed-off-by: Andrew Thornton <[email protected]>

* as per @silverwind

Signed-off-by: Andrew Thornton <[email protected]>

* Only show refs in dropdown we display on the graph

Signed-off-by: Andrew Thornton <[email protected]>

* as per @silverwind

Signed-off-by: Andrew Thornton <[email protected]>

* use flexbox for ui header

Signed-off-by: Andrew Thornton <[email protected]>

* Move Hide Pull Request button to the dropdown

Signed-off-by: Andrew Thornton <[email protected]>

* Add SHA and user pictures

Signed-off-by: Andrew Thornton <[email protected]>

* fix test

Signed-off-by: Andrew Thornton <[email protected]>

* fix test 2

Signed-off-by: Andrew Thornton <[email protected]>

* fixes

* async

* more tweaks

* use tabs in tmpl

Signed-off-by: Andrew Thornton <[email protected]>

* remove commented thing

Signed-off-by: Andrew Thornton <[email protected]>

* fix linting

Signed-off-by: Andrew Thornton <[email protected]>

* Update web_src/js/features/gitgraph.js

Co-authored-by: silverwind <[email protected]>

* graph tweaks

* more tweaks

* add title

Signed-off-by: Andrew Thornton <[email protected]>

* fix loading indicator z-index and position

Co-authored-by: silverwind <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
Co-authored-by: Lauris BH <[email protected]>
2020-11-08 12:21:54 -05:00
Lunny Xiao d578b71d61 move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364)
* move code.gitea.io/git to code.gitea.io/gitea/modules/git

* fix imports

* fix fmt

* fix misspell

* remove wrong tests data

* fix unit tests

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* enable Debug to trace the failure tests

* fix tests

* fix tests

* fix tests

* fix tests

* fix tests

* comment commit count tests since git clone depth is 50

* fix tests

* update from code.gitea.io/git

* revert change to makefile
2019-03-27 17:33:00 +08:00