forgejo-hooks: Add IssueAction::Edited
Signed-off-by: pep <pep@bouah.net>
This commit is contained in:
parent
f50a6dab52
commit
0ec50d7d74
3 changed files with 209 additions and 0 deletions
|
|
@ -202,6 +202,20 @@ pub struct RemovedBranch {
|
|||
#[serde(rename_all = "snake_case")]
|
||||
pub enum IssueAction {
|
||||
Opened,
|
||||
Edited,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug, PartialEq)]
|
||||
pub struct ChangesFromPayload {
|
||||
pub from: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug, PartialEq)]
|
||||
pub struct Changes {
|
||||
pub title: Option<ChangesFromPayload>,
|
||||
pub body: Option<ChangesFromPayload>,
|
||||
#[serde(rename(deserialize = "ref"))]
|
||||
pub ref_: Option<ChangesFromPayload>,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug, PartialEq)]
|
||||
|
|
@ -251,6 +265,7 @@ pub struct IssueAttrs {
|
|||
pub struct Issue {
|
||||
pub action: IssueAction,
|
||||
pub number: u64,
|
||||
pub changes: Option<Changes>,
|
||||
pub issue: IssueAttrs,
|
||||
pub repository: Repository,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue