mirror of
https://framagit.org/veretcle/tootube.git
synced 2025-12-06 08:33:14 +01:00
Merge branch '13-uncheck-the-generated-using-ai-automatically' into 'main'
Resolve "Uncheck the « Generated using AI » automatically" Closes #13 See merge request veretcle/tootube!30
This commit is contained in:
20
.gitea/workflows/check.yml
Normal file
20
.gitea/workflows/check.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
name: rust-check
|
||||||
|
|
||||||
|
on: # yamllint disable-line rule:truthy
|
||||||
|
- push
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
rust-check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
with:
|
||||||
|
components: "clippy,rustfmt"
|
||||||
|
- run: cargo fmt -- --check
|
||||||
|
- run: cargo check
|
||||||
|
- run: cargo clippy -- -D warnings
|
||||||
|
- run: cargo test
|
||||||
|
- run: cargo build
|
||||||
23
.gitea/workflows/release.yml
Normal file
23
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
name: rust-release
|
||||||
|
|
||||||
|
on: # yamllint disable-line rule:truthy
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v6
|
||||||
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
|
- name: Get package name
|
||||||
|
run: echo "CARGO_PKG_NAME=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[0].name')" >> $GITEA_ENV
|
||||||
|
- run: cargo build --release
|
||||||
|
- uses: https://gitea.com/actions/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
target/release/${{ env.CARGO_PKG_NAME }}
|
||||||
|
api_key: '${{ secrets.RELEASE_TOKEN }}'
|
||||||
1008
Cargo.lock
generated
1008
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tootube"
|
name = "tootube"
|
||||||
authors = ["VC <veretcle+framagit@mateu.be>"]
|
authors = ["VC <veretcle+framagit@mateu.be>"]
|
||||||
version = "0.10.0"
|
version = "0.10.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|||||||
@@ -79,6 +79,8 @@ impl Default for YoutubeUploadParamsSnippet {
|
|||||||
struct YoutubeUploadParamsStatus {
|
struct YoutubeUploadParamsStatus {
|
||||||
#[serde(rename = "selfDeclaredMadeForKids")]
|
#[serde(rename = "selfDeclaredMadeForKids")]
|
||||||
self_declared_made_for_kids: bool,
|
self_declared_made_for_kids: bool,
|
||||||
|
#[serde(rename = "containsSyntheticMedia")]
|
||||||
|
contains_synthetic_media: bool,
|
||||||
#[serde(rename = "privacyStatus")]
|
#[serde(rename = "privacyStatus")]
|
||||||
privacy_status: String,
|
privacy_status: String,
|
||||||
license: String,
|
license: String,
|
||||||
@@ -88,6 +90,7 @@ impl Default for YoutubeUploadParamsStatus {
|
|||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
YoutubeUploadParamsStatus {
|
YoutubeUploadParamsStatus {
|
||||||
self_declared_made_for_kids: false,
|
self_declared_made_for_kids: false,
|
||||||
|
contains_synthetic_media: false,
|
||||||
privacy_status: "public".to_string(),
|
privacy_status: "public".to_string(),
|
||||||
license: "creativeCommon".to_string(),
|
license: "creativeCommon".to_string(),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user