Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Max Schmidt <max.schmidt@outlook.de>
  • Loading branch information
mooxl committed May 17, 2023
1 parent 35a01e6 commit d5c4c23
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion payload/src/collections/Posts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,22 @@ const Posts: CollectionConfig = {
create: () => true,
update: () => true,
},

hooks: {
afterChange: [
async () => {
await fetch("https://api.github.com/repos/mooxl/astroad/dispatches", {
method: "POST",
headers: {
Accept: "application/vnd.github.everest-preview+json",
Authorization: "token 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",
},
body: JSON.stringify({
event_type: "payload_update",
}),
});
},
],
},
fields: [
{
name: "title",
Expand Down

0 comments on commit d5c4c23

Please sign in to comment.