Compare commits
2 commits
20020c8f6d
...
d53569d6d0
Author | SHA1 | Date | |
---|---|---|---|
d53569d6d0 | |||
09a5e5639e |
4 changed files with 44 additions and 3 deletions
36
CHANGELOG.md
36
CHANGELOG.md
|
@ -3,6 +3,42 @@
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
|
||||||
|
## [v0.2.0](https://codeberg.org/ThetaDev/artifactview/compare/v0.1.0..v0.2.0) - 2024-06-14
|
||||||
|
|
||||||
|
### 🚀 Features
|
||||||
|
|
||||||
|
- Add port config option - ([eca80aa](https://codeberg.org/ThetaDev/artifactview/commit/eca80aaa8e7ff9d3b36991f9d80d8846441a5536))
|
||||||
|
- Add viewer - ([47f3ea1](https://codeberg.org/ThetaDev/artifactview/commit/47f3ea126784c3add59ef5feea94f11f8d4413b2))
|
||||||
|
- Add viewer selection - ([4ebeb4b](https://codeberg.org/ThetaDev/artifactview/commit/4ebeb4b873d3b935a2eaa4008c0fc30dfd87c0f7))
|
||||||
|
- Add markdown viewer - ([608a9f6](https://codeberg.org/ThetaDev/artifactview/commit/608a9f68f4e756bf65c0084fbf654c8e40d4762c))
|
||||||
|
- Add junit-parser crate - ([06c09b2](https://codeberg.org/ThetaDev/artifactview/commit/06c09b2831d4ba9fe4095776b3c591cd64c095a9))
|
||||||
|
- Add junit-parser - ([ec65b6d](https://codeberg.org/ThetaDev/artifactview/commit/ec65b6d03f13d88dbf874b72b086eec369d94475))
|
||||||
|
- Add JUnit viewer template - ([806a2dd](https://codeberg.org/ThetaDev/artifactview/commit/806a2dda9a5e7ce33e0496b31934a2cf11eeb2ae))
|
||||||
|
- Add compressed stylesheets - ([134bdaa](https://codeberg.org/ThetaDev/artifactview/commit/134bdaa34bd750a64a8b7b33d5d4383de6f51188))
|
||||||
|
|
||||||
|
### 🐛 Bug Fixes
|
||||||
|
|
||||||
|
- Make url input field required - ([5a54f0a](https://codeberg.org/ThetaDev/artifactview/commit/5a54f0a7a6828b29ea67269c1474e9ebbafdca2a))
|
||||||
|
- Fix markdown styling - ([93758e3](https://codeberg.org/ThetaDev/artifactview/commit/93758e3ab2f86e2edf8d7f04b8786e74e2ec67d6))
|
||||||
|
- Handling zip files containing dir entries - ([8405af8](https://codeberg.org/ThetaDev/artifactview/commit/8405af8fb339418dc0b17768e8ef3bc1f22d46f5))
|
||||||
|
- Increment stylesheet path - ([d9f9d6e](https://codeberg.org/ThetaDev/artifactview/commit/d9f9d6edcaef4086ce51596305909a1d63e132f7))
|
||||||
|
- Improve path header - ([194499b](https://codeberg.org/ThetaDev/artifactview/commit/194499b2768325e27dc77e0f3a71c410667a8851))
|
||||||
|
- Clippy error, async_zip tests - ([5f22997](https://codeberg.org/ThetaDev/artifactview/commit/5f229977d84f50911a42fd66f07f567727098968))
|
||||||
|
- Dont cache empty artifact lists - ([09a5e56](https://codeberg.org/ThetaDev/artifactview/commit/09a5e5639e0ed24f437c0ed81e464530a6b7ee99))
|
||||||
|
|
||||||
|
### 🚜 Refactor
|
||||||
|
|
||||||
|
- [**breaking**] Don't use URL queries for artifact selection - ([72c0e3a](https://codeberg.org/ThetaDev/artifactview/commit/72c0e3af69e101c3690696a065b573624e19626d))
|
||||||
|
|
||||||
|
### 🧪 Testing
|
||||||
|
|
||||||
|
- Add integration tests - ([4aaff46](https://codeberg.org/ThetaDev/artifactview/commit/4aaff462bb602180832cae3fe902161d2f8043a9))
|
||||||
|
|
||||||
|
### ⚙️ Miscellaneous Tasks
|
||||||
|
|
||||||
|
- Update repo URL to Codeberg - ([6a0171c](https://codeberg.org/ThetaDev/artifactview/commit/6a0171c62a7cf1023c8efe203e202a6bccdc04e5))
|
||||||
|
|
||||||
|
|
||||||
## [v0.1.0](https://codeberg.org/ThetaDev/artifactview/commits/tag/v0.1.0) - 2024-05-31
|
## [v0.1.0](https://codeberg.org/ThetaDev/artifactview/commits/tag/v0.1.0) - 2024-05-31
|
||||||
|
|
||||||
Initial release
|
Initial release
|
||||||
|
|
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -141,7 +141,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "artifactview"
|
name = "artifactview"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async_zip",
|
"async_zip",
|
||||||
"axum",
|
"axum",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "artifactview"
|
name = "artifactview"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["ThetaDev <thetadev@magenta.de>"]
|
authors = ["ThetaDev <thetadev@magenta.de>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
|
@ -120,10 +120,15 @@ impl ArtifactApi {
|
||||||
let cache_key = query.cache_key();
|
let cache_key = query.cache_key();
|
||||||
self.qc
|
self.qc
|
||||||
.get_or_insert_async(&cache_key, async {
|
.get_or_insert_async(&cache_key, async {
|
||||||
if query.is_github() {
|
let res = if query.is_github() {
|
||||||
self.list_github(query.as_ref()).await
|
self.list_github(query.as_ref()).await
|
||||||
} else {
|
} else {
|
||||||
self.list_forgejo(query.as_ref()).await
|
self.list_forgejo(query.as_ref()).await
|
||||||
|
};
|
||||||
|
if res.as_ref().is_ok_and(|v| v.is_empty()) {
|
||||||
|
Err(Error::NotFound("artifact".into()))
|
||||||
|
} else {
|
||||||
|
res
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.await
|
.await
|
||||||
|
|
Loading…
Reference in a new issue