1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
//! GitHub API integration for Miyabi
//!
//! This crate provides a high-level wrapper around the Octocrab GitHub API client,
//! tailored for Miyabi's autonomous development workflow.
//!
//! # Features
//!
//! - **Issue Management**: Create, read, update, close issues
//! - **Label Management**: Full CRUD operations for labels, bulk sync for 53-label system
//! - **Pull Request Management**: Create, merge, close PRs
//! - **State-based Queries**: Filter issues by Miyabi state labels
//! - **Type Safety**: Uses miyabi-types for consistent type definitions
//!
//! # Example
//!
//! ```no_run
//! use miyabi_github::GitHubClient;
//! use miyabi_types::issue::IssueState;
//!
//! #[tokio::main]
//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
//! let client = GitHubClient::new("ghp_xxx", "owner", "repo")?;
//!
//! // Get issues in "pending" state
//! let pending = client.get_issues_by_state(IssueState::Pending).await?;
//! println!("Found {} pending issues", pending.len());
//!
//! // Create a new issue
//! let issue = client.create_issue(
//! "Implement new feature",
//! Some("Feature description here")
//! ).await?;
//! println!("Created issue #{}", issue.number);
//!
//! Ok(())
//! }
//! ```
// Re-export main types
pub use ;
pub use GitHubClient;
pub use Label;
pub use ;
// Re-export commonly used types from miyabi-types
pub use ;