Compare commits
5 Commits
dc0040c2d1
...
v_release_
| Author | SHA1 | Date | |
|---|---|---|---|
|
ca46a9eccc
|
|||
|
81350f38e4
|
|||
|
1f2d42e1d5
|
|||
|
a0f67464b5
|
|||
|
ff5699e627
|
@@ -20,17 +20,14 @@ jobs:
|
|||||||
id: read_release
|
id: read_release
|
||||||
with:
|
with:
|
||||||
path: .changes/${{ github.ref_name }}.md
|
path: .changes/${{ github.ref_name }}.md
|
||||||
- name: Setup go for using go gitea actions
|
- name: Release
|
||||||
uses: https://gitea.com/actions/setup-go@v4
|
uses: https://github.com/akkuman/gitea-release-action@v1
|
||||||
with:
|
#env:
|
||||||
go-version: '>=1.20.1'
|
# NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
||||||
- name: Use Go Action to release
|
|
||||||
id: use-go-action
|
|
||||||
uses: https://gitea.com/actions/release-action@main
|
|
||||||
with:
|
with:
|
||||||
files: |-
|
files: |-
|
||||||
target/release/cl-cli
|
target/release/cl-cli
|
||||||
config.toml.dist
|
config.toml.dist
|
||||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
md5sum: true
|
||||||
body: |
|
sha256sum: true
|
||||||
${{ steps.read_release.outputs.content }}
|
body_path: .changes/${{ github.ref_name }}.md
|
||||||
|
|||||||
@@ -1,8 +1,15 @@
|
|||||||
name: Check go code
|
name: Check go code
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push: *
|
push:
|
||||||
pull_request: *
|
branches:
|
||||||
|
- '**'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- '**'
|
||||||
|
pull_request_target:
|
||||||
|
branches:
|
||||||
|
- '**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-release:
|
build-and-release:
|
||||||
|
|||||||
2041
Cargo.lock
generated
2041
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
16
Cargo.toml
16
Cargo.toml
@@ -7,12 +7,12 @@ edition = "2021"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = { version = "4.1.13", features = ["derive"] }
|
clap = { version = "4.1.13", features = ["derive"] }
|
||||||
gitlab = "0.1607.0"
|
gitlab = "0.1804.0"
|
||||||
reqwest = "0.11.23"
|
reqwest = "0.12.24"
|
||||||
serde = { version = "1.0.158", features = ["derive"] }
|
serde = { version = "1.0.228", features = ["derive"] }
|
||||||
toml = "0.7.3"
|
toml = "0.9.8"
|
||||||
url = "2.3.1"
|
url = "2.5.7"
|
||||||
tokio = { version = "1.0.0", features = ["rt", "rt-multi-thread", "macros"] }
|
tokio = { version = "1.0.0", features = ["rt", "rt-multi-thread", "macros"] }
|
||||||
simple-home-dir = "0.2.1"
|
simple-home-dir = "0.5.2"
|
||||||
log = "0.4.17"
|
log = "0.4.28"
|
||||||
open = "5.3.1"
|
open = "5.3.2"
|
||||||
|
|||||||
@@ -2,13 +2,12 @@ use crate::cli::Issue2Work;
|
|||||||
use crate::config::Config;
|
use crate::config::Config;
|
||||||
use crate::error::GeneralError;
|
use crate::error::GeneralError;
|
||||||
use crate::gitlab::client::{client_for_url, has_client_for_url};
|
use crate::gitlab::client::{client_for_url, has_client_for_url};
|
||||||
use crate::gitlab::issue::IssueBundle;
|
use crate::gitlab::issue::{Issue, IssueBundle, Project};
|
||||||
use crate::openproject::client::Client;
|
use crate::openproject::client::Client;
|
||||||
use crate::openproject::user::{GetMe, User};
|
use crate::openproject::user::{GetMe, User};
|
||||||
use crate::openproject::work::WorkPackageWriterAssignee;
|
use crate::openproject::work::WorkPackageWriterAssignee;
|
||||||
use crate::planning::Issue2WorkActionTrait;
|
use crate::planning::Issue2WorkActionTrait;
|
||||||
use gitlab::api::{issues, projects, AsyncQuery};
|
use gitlab::api::{issues, projects, AsyncQuery};
|
||||||
use gitlab::{Issue, Project};
|
|
||||||
use url::Url;
|
use url::Url;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
@@ -41,7 +40,7 @@ impl Issue2WorkActionTrait for GitlabAction {
|
|||||||
let issue = issues.first().unwrap();
|
let issue = issues.first().unwrap();
|
||||||
|
|
||||||
let project_endpoint = projects::Project::builder()
|
let project_endpoint = projects::Project::builder()
|
||||||
.project(issue.project_id.value())
|
.project(issue.project_id)
|
||||||
.build()
|
.build()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,17 @@
|
|||||||
use gitlab::Issue;
|
use serde::Deserialize;
|
||||||
use gitlab::Project;
|
|
||||||
|
#[derive(Clone, Debug, Deserialize)]
|
||||||
|
pub struct Issue {
|
||||||
|
pub iid: u64,
|
||||||
|
pub title: String,
|
||||||
|
pub web_url: String,
|
||||||
|
pub project_id: u64,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Clone, Debug, Deserialize)]
|
||||||
|
pub struct Project {
|
||||||
|
pub name_with_namespace: String,
|
||||||
|
}
|
||||||
|
|
||||||
/// A struct which contains Issue and Project
|
/// A struct which contains Issue and Project
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
|
|||||||
Reference in New Issue
Block a user