forked from infra/ansible
mirror_forge_ansible: body is wrapped in a body.
Signed-off-by: James Antill <james@and.org>
This commit is contained in:
parent
d8fad1c724
commit
a5905f94e0
1 changed files with 2 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ class MirrorFromForge(object):
|
|||
if _msg_from is None:
|
||||
pass
|
||||
elif _msg_from == "forgejo": # Lots of things missing here...
|
||||
msg.body = {"repository": {"full_name": self.trigger_names[0]}}
|
||||
msg.body = {"body" : {"repository": {"full_name": self.trigger_names[0]}}}
|
||||
elif _msg_from == "pagure":
|
||||
msg.body = {"repo": {"fullname": self.trigger_names[0]}}
|
||||
self.__call__(message=msg)
|
||||
|
|
@ -97,7 +97,7 @@ class MirrorFromForge(object):
|
|||
if _msg_from is None:
|
||||
pass
|
||||
elif _msg_from == "forgejo":
|
||||
repo_name = message.body.get("repository", {}).get("full_name")
|
||||
repo_name = message.body.get("body", {}).get("repository", {}).get("full_name")
|
||||
elif _msg_from == "pagure":
|
||||
repo_name = message.body.get("repo", {}).get("fullname")
|
||||
if repo_name not in self.trigger_names:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue