Skip to content

Commit

Permalink
Merge pull request #68 from fussybeaver/ND/ureq-3-rc5
Browse files Browse the repository at this point in the history
Bump to ureq 3.0.0-rc5 and update endpoints/models
  • Loading branch information
fussybeaver authored Jan 12, 2025
2 parents dfe7d85 + d86b3fa commit 13e4792
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ bytes = { version = "1", optional = true }
reqwest = { version = "0.12", optional = true, features = [] }

# ureq
ureq = { version = "3.0.0-rc4", optional = true, features = ["json"] }
ureq = { version = "3.0.0-rc5", optional = true, features = ["json"] }

# wasm
[target.'cfg(target_arch = "wasm32")'.dependencies]
Expand Down
4 changes: 2 additions & 2 deletions src/endpoints/secret_scanning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ impl<'api, C: Client> SecretScanning<'api, C> where AdapterError: From<<C as Cli
///
/// # Get secret scanning scan history for a repository
///
/// Lists the latest incremental and backfill scans by type for a repository.
/// Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included.
///
/// OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
///
Expand Down Expand Up @@ -1274,7 +1274,7 @@ impl<'api, C: Client> SecretScanning<'api, C> where AdapterError: From<<C as Cli
///
/// # Get secret scanning scan history for a repository
///
/// Lists the latest incremental and backfill scans by type for a repository.
/// Lists the latest default incremental and backfill scans by type for a repository. Scans from Copilot Secret Scanning are not included.
///
/// OAuth app tokens and personal access tokens (classic) need the `repo` or `security_events` scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the `public_repo` scope instead.
///
Expand Down
44 changes: 38 additions & 6 deletions src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2621,6 +2621,8 @@ pub struct BaseGist {
#[serde(skip_serializing_if="Option::is_none")]
pub comments: Option<i64>,
#[serde(skip_serializing_if="Option::is_none")]
pub comments_enabled: Option<bool>,
#[serde(skip_serializing_if="Option::is_none")]
pub user: Option<NullableSimpleUser>,
#[serde(skip_serializing_if="Option::is_none")]
pub comments_url: Option<String>,
Expand Down Expand Up @@ -4578,7 +4580,7 @@ pub struct PostReposCreateTagProtection {

#[derive(Debug, Default, Clone, PartialEq, Serialize, Deserialize)]
pub struct PutReposReplaceAllTopics {
/// An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` cannot contain uppercase letters.
/// An array of topics to add to the repository. Pass one or more topics to _replace_ the set of existing topics. Send an empty array (`[]`) to clear all topics from the repository. **Note:** Topic `names` will be saved as lowercase.
#[serde(skip_serializing_if="Option::is_none")]
pub names: Option<Vec<String>>,
}
Expand Down Expand Up @@ -11906,6 +11908,8 @@ pub struct Gist {
#[serde(skip_serializing_if="Option::is_none")]
pub comments: Option<i64>,
#[serde(skip_serializing_if="Option::is_none")]
pub comments_enabled: Option<bool>,
#[serde(skip_serializing_if="Option::is_none")]
pub user: Option<NullableSimpleUser>,
#[serde(skip_serializing_if="Option::is_none")]
pub comments_url: Option<String>,
Expand Down Expand Up @@ -12024,6 +12028,8 @@ pub struct GistSimple {
#[serde(skip_serializing_if="Option::is_none")]
pub comments: Option<i64>,
#[serde(skip_serializing_if="Option::is_none")]
pub comments_enabled: Option<bool>,
#[serde(skip_serializing_if="Option::is_none")]
pub user: Option<String>,
#[serde(skip_serializing_if="Option::is_none")]
pub comments_url: Option<String>,
Expand Down Expand Up @@ -37335,9 +37341,14 @@ pub struct WebhookcodescanningalertappearedinbranchAlert {
pub dismissed_at: Option<chrono::DateTime<chrono::Utc>>,
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_by: Option<User1>,
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_comment: Option<CodeScanningAlertDismissedComment>,
/// The reason for dismissing or closing the alert.
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_reason: Option<String>,
/// The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
#[serde(skip_serializing_if="Option::is_none")]
pub fixed_at: Option<Value>,
/// The GitHub URL of the alert resource.
#[serde(skip_serializing_if="Option::is_none")]
pub html_url: Option<String>,
Expand All @@ -37348,7 +37359,7 @@ pub struct WebhookcodescanningalertappearedinbranchAlert {
pub number: Option<i64>,
#[serde(skip_serializing_if="Option::is_none")]
pub rule: Option<WebhookcodescanningalertappearedinbranchAlertRule>,
/// State of a code scanning alert.
/// State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed.
#[serde(skip_serializing_if="Option::is_none")]
pub state: Option<String>,
#[serde(skip_serializing_if="Option::is_none")]
Expand Down Expand Up @@ -37391,9 +37402,14 @@ pub struct WebhookcodescanningalertclosedbyuserAlert {
pub dismissed_at: Option<chrono::DateTime<chrono::Utc>>,
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_by: Option<User1>,
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_comment: Option<CodeScanningAlertDismissedComment>,
/// The reason for dismissing or closing the alert.
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_reason: Option<String>,
/// The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
#[serde(skip_serializing_if="Option::is_none")]
pub fixed_at: Option<Value>,
/// The GitHub URL of the alert resource.
#[serde(skip_serializing_if="Option::is_none")]
pub html_url: Option<String>,
Expand Down Expand Up @@ -37465,6 +37481,7 @@ pub struct WebhookcodescanningalertcreatedAlert {
/// The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_reason: Option<Value>,
/// The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
#[serde(skip_serializing_if="Option::is_none")]
pub fixed_at: Option<Value>,
/// The GitHub URL of the alert resource.
Expand All @@ -37479,7 +37496,7 @@ pub struct WebhookcodescanningalertcreatedAlert {
pub number: Option<i64>,
#[serde(skip_serializing_if="Option::is_none")]
pub rule: Option<WebhookcodescanningalertclosedbyuserAlertRule>,
/// State of a code scanning alert.
/// State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed.
#[serde(skip_serializing_if="Option::is_none")]
pub state: Option<String>,
#[serde(skip_serializing_if="Option::is_none")]
Expand All @@ -37501,9 +37518,14 @@ pub struct WebhookcodescanningalertfixedAlert {
pub dismissed_at: Option<chrono::DateTime<chrono::Utc>>,
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_by: Option<User1>,
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_comment: Option<CodeScanningAlertDismissedComment>,
/// The reason for dismissing or closing the alert.
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_reason: Option<String>,
/// The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
#[serde(skip_serializing_if="Option::is_none")]
pub fixed_at: Option<Value>,
/// The GitHub URL of the alert resource.
#[serde(skip_serializing_if="Option::is_none")]
pub html_url: Option<String>,
Expand All @@ -37516,7 +37538,7 @@ pub struct WebhookcodescanningalertfixedAlert {
pub number: Option<i64>,
#[serde(skip_serializing_if="Option::is_none")]
pub rule: Option<WebhookcodescanningalertclosedbyuserAlertRule>,
/// State of a code scanning alert.
/// State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed.
#[serde(skip_serializing_if="Option::is_none")]
pub state: Option<String>,
#[serde(skip_serializing_if="Option::is_none")]
Expand All @@ -37536,9 +37558,14 @@ pub struct WebhookcodescanningalertreopenedAlert {
pub dismissed_at: Option<String>,
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_by: Option<HashMap<String, Value>>,
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_comment: Option<CodeScanningAlertDismissedComment>,
/// The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_reason: Option<String>,
/// The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
#[serde(skip_serializing_if="Option::is_none")]
pub fixed_at: Option<Value>,
/// The GitHub URL of the alert resource.
#[serde(skip_serializing_if="Option::is_none")]
pub html_url: Option<String>,
Expand All @@ -37549,7 +37576,7 @@ pub struct WebhookcodescanningalertreopenedAlert {
pub number: Option<i64>,
#[serde(skip_serializing_if="Option::is_none")]
pub rule: Option<WebhookcodescanningalertclosedbyuserAlertRule>,
/// State of a code scanning alert.
/// State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed.
#[serde(skip_serializing_if="Option::is_none")]
pub state: Option<String>,
#[serde(skip_serializing_if="Option::is_none")]
Expand All @@ -37569,9 +37596,14 @@ pub struct WebhookcodescanningalertreopenedbyuserAlert {
pub dismissed_at: Option<Value>,
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_by: Option<Value>,
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_comment: Option<CodeScanningAlertDismissedComment>,
/// The reason for dismissing or closing the alert. Can be one of: `false positive`, `won't fix`, and `used in tests`.
#[serde(skip_serializing_if="Option::is_none")]
pub dismissed_reason: Option<Value>,
/// The time that the alert was fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
#[serde(skip_serializing_if="Option::is_none")]
pub fixed_at: Option<Value>,
/// The GitHub URL of the alert resource.
#[serde(skip_serializing_if="Option::is_none")]
pub html_url: Option<String>,
Expand All @@ -37582,7 +37614,7 @@ pub struct WebhookcodescanningalertreopenedbyuserAlert {
pub number: Option<i64>,
#[serde(skip_serializing_if="Option::is_none")]
pub rule: Option<WebhookcodescanningalertappearedinbranchAlertRule>,
/// State of a code scanning alert.
/// State of a code scanning alert. Events for alerts found outside the default branch will return a `null` value until they are dismissed or fixed.
#[serde(skip_serializing_if="Option::is_none")]
pub state: Option<String>,
#[serde(skip_serializing_if="Option::is_none")]
Expand Down

0 comments on commit 13e4792

Please sign in to comment.