8 Commits

Author SHA1 Message Date
e49b539e61 Uncomment NODE_OPTIONS environment variable in release workflow.
Some checks failed
Check go code / build-and-release (pull_request) Successful in 1m10s
Check go code / build-and-release (pull_request_target) Successful in 1m5s
Check go code / build-and-release (push) Failing after 10m30s
Release binary for cl-cli / build-and-release (push) Successful in 1m21s
2025-10-25 00:27:00 +02:00
c1e8019688 Update release workflow to use Gitea URL for release action
Some checks failed
Release binary for cl-cli / build-and-release (push) Failing after 1m34s
2025-10-25 00:23:24 +02:00
b648599088 fake v_release content
Some checks failed
Check go code / build-and-release (push) Successful in 1m5s
Release binary for cl-cli / build-and-release (push) Failing after 1m18s
2025-10-25 00:17:48 +02:00
ca46a9eccc Update build-and-release workflow to use full GitHub URL for release action
Some checks failed
Release binary for cl-cli / build-and-release (push) Failing after 1m19s
2025-10-25 00:14:41 +02:00
81350f38e4 Update dependencies in Cargo.lock to the latest versions
All checks were successful
Check go code / build-and-release (push) Successful in 1m4s
2025-10-25 00:13:23 +02:00
1f2d42e1d5 Update release workflow to include pull_request_target event and specify branches
All checks were successful
Check go code / build-and-release (push) Successful in 1m3s
2025-10-24 23:43:11 +02:00
a0f67464b5 Simplify build-and-release workflow by switching to akkuman/gitea-release-action and enabling checksum generation.
Some checks failed
Release binary for cl-cli / build-and-release (push) Failing after 7s
2025-10-24 23:41:29 +02:00
ff5699e627 Update workflow to specify branches for push and pull_request events 2025-10-24 23:35:28 +02:00
7 changed files with 1281 additions and 826 deletions

View File

@@ -0,0 +1 @@
ok

View File

@@ -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://gitea.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

View File

@@ -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

File diff suppressed because it is too large Load Diff

View File

@@ -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"

View File

@@ -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();

View File

@@ -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)]