Skip to content

Commit

Permalink
Recognize public issues; #7
Browse files Browse the repository at this point in the history
  • Loading branch information
msuchane committed Oct 26, 2023
1 parent 76dc9f8 commit 51d7b84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ pub mod tracker {
pub struct JiraInstance {
pub host: String,
pub api_key: Option<String>,
#[serde(default)]
pub private_projects: Vec<String>,
pub fields: JiraFields,
}

Expand Down
5 changes: 2 additions & 3 deletions src/ticket_abstraction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,8 @@ impl IntoAbstract for Issue {
groups: None,
// If there are no s`fields.security` settings, the ticket is public. If there are some, it's private.
// However, the project as a whole can be public or private, which affects the ticket visibility.
// TODO: Find out how the API reports the project settings.
// public: self.fields.security.is_none(),
public: false,
// All projects are considered public unless you configure them in `JiraInstance::private_projects`.
public: self.fields.security.is_none(),
references,
};

Expand Down

0 comments on commit 51d7b84

Please sign in to comment.