This is a helper crate for Shisho Cloud workflows to write custom policies.
This is the core library to write custom policies.
- decision
includes the structs of output data
(=decsion
results).
- gqlgen
includes the functionalities of converting from geraphql
schema and queries. The original code comes from graphql-client/graphql_client_codegen
- schema
includes the string of datasource
graphql query. The schema is generated by the codegen.
This required the helper crate, shisho-gql-derive
``` use shishogqlderive::; pub use shisho_policy_sdk::decision::data_entry::; pub use shishopolicysdk::decision::github::organization::orgowners::*; pub use shishopolicy_sdk::decision::*;
use self::input::InputGithubOrganizations;
query_path = "src/policies/organization/org_owners/query.graphql",
response_derives = "Debug, PartialEq"
)] pub struct Input;
pub fn decisions(input: input::InputData) -> Vec
pub fn decideoneach_org(o: InputGithubOrganizations) -> Decision
graphql-client/graphql_client_codegen