Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: populate Events #20

Closed
wants to merge 11 commits into from
Closed
Prev Previous commit
Next Next commit
fix fmt
ssddOnTop committed Nov 7, 2024

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
commit d9e37ec5b1887045f007ff2774514450a923cbbb
6 changes: 3 additions & 3 deletions workspace/gh-workflow/src/event.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
use std::fmt::{Display, Formatter};

use derive_setters::Setters;
use indexmap::IndexMap;
use serde::Serialize;
use crate::is_default;
use crate::SetEvent;

use crate::{is_default, SetEvent};

#[derive(Serialize, Setters, Clone)]
#[serde(rename_all = "snake_case")]
@@ -651,7 +652,6 @@ pub struct CheckSuite {
types: Vec<CheckSuiteEvent>,
}


#[derive(Default, Serialize, Clone, PartialEq)]
#[serde(rename_all = "snake_case")]
pub struct Create {
2 changes: 1 addition & 1 deletion workspace/gh-workflow/src/lib.rs
Original file line number Diff line number Diff line change
@@ -12,4 +12,4 @@ pub use workflow::*;

pub(crate) fn is_default<T: Default + PartialEq>(value: &T) -> bool {
*value == T::default()
}
}
1 change: 1 addition & 0 deletions workspace/gh-workflow/src/toolchain.rs
Original file line number Diff line number Diff line change
@@ -131,6 +131,7 @@ pub struct Target {
abi: Option<Abi>,
}

///
/// A Rust representation for the inputs of the setup-rust action.
/// More information can be found [here](https://github.com/actions-rust-lang/setup-rust-toolchain/blob/main/action.yml).
/// NOTE: The public API should be close to the original action as much as