Crates.io | gouqi |
lib.rs | gouqi |
version | 0.9.0 |
source | src |
created_at | 2022-06-30 09:23:58.612025 |
updated_at | 2024-10-03 13:23:12.319526 |
description | Rust interface for Jira |
homepage | https://github.com/wunderfrucht/gouqi |
repository | https://github.com/wunderfrucht/gouqi |
max_upload_size | |
id | 616281 |
size | 149,774 |
a rust interface for jira
Forked from goji https://github.com/softprops/goji
Add the following to your Cargo.toml
file
[dependencies]
gouqi = "*"
Please browse the examples directory in this repo for some example applications.
Basic usage requires a jira host, and a flavor of jira::Credentials
for authorization.
Current support api support is limited to search and issue transitioning.
extern crate gouqi;
use gouqi::{Credentials, Jira};
use std::env;
use tracing::error;
fn main() {
if let Ok(host) = env::var("JIRA_HOST") {
let query = env::args().nth(1).unwrap_or("order by created DESC".to_owned());
let jira = Jira::new(host, Credentials::Anonymous).expect("Error initializing Jira");
match jira.search().iter(query, &Default::default()) {
Ok(results) => {
for issue in results {
println!("{:#?}", issue);
}
}
Err(err) => panic!("{:#?}", err),
}
} else {
error!("Missing environment variable JIRA_HOST!");
}
}
Please make sure to run cargo fmt
, cargo test
and cargo clippy
before committing.
New code should contains tests.
Commits to follow the Conventional Commits specification.
Changelog is generated using git cliff
cargo install git-cliff
git cliff -o --use-branch-tags
Jira's name is a shortened form of gojira, another name for godzilla. Goji is a play on that.
Goji (Chinese: 枸杞; pinyin: gǒuqǐ)
Doug Tangren (softprops) 2016-2018