Skip to content

Commit

Permalink
zig/db- move GithubWebhookData struct outside Remote
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Jan 22, 2022
1 parent 1a51a3f commit 343a82e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/db/Remote.zig
Original file line number Diff line number Diff line change
Expand Up @@ -158,16 +158,6 @@ pub const Remote = struct {
};
}

const GithubWebhookData = struct {
name: string,
config: struct {
url: string,
events: []const string,
content_type: string,
active: bool,
},
};

pub fn installWebhook(self: Remote, alloc: std.mem.Allocator, user: User, rm_id: string, rm_name: string, hookurl: string) !?json.Value {
_ = rm_id;
return switch (self.type) {
Expand Down Expand Up @@ -226,3 +216,13 @@ fn containsPackage(haystack: []const Package, id: string, name: string) bool {
}
return false;
}

const GithubWebhookData = struct {
name: string,
config: struct {
url: string,
events: []const string,
content_type: string,
active: bool,
},
};

0 comments on commit 343a82e

Please sign in to comment.