gouqi
a rust interface for jira
Forked from goji https://github.com/softprops/goji
install
Add the following to your Cargo.toml file
[]
= "*"
# Optional: Enable async API
= { = "*", = ["async"] }
usage
Please browse the examples directory in this repo for some example applications.
🚀 Jira V3 API Migration
gouqi automatically handles the Jira V3 API transition! Your existing code continues to work seamlessly:
// Works on both V2 and V3 automatically - no code changes needed!
let results = jira.search.list?;
For advanced field control and migration details, see the Jira V3 Migration Guide.
Basic usage requires a jira host, and a flavor of jira::Credentials for authorization.
Synchronous API
The default API uses synchronous requests:
use ;
use env;
use error;
Asynchronous API
With the async feature enabled, you can use the asynchronous API:
use StreamExt;
use ;
use env;
use error;
async
You can also convert between sync and async clients:
// Convert from sync to async
let sync_jira = new?;
let async_jira = sync_jira.into_async;
// Convert from async to sync
let async_jira = r#new?;
let sync_jira = from;
Commiting a PR
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
what's with the name
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