Skip to content

Commit 25f933f

Browse files
committed
expose sender and repository in the payload
1 parent 1e37d80 commit 25f933f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/githubapp/core.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -805,9 +805,13 @@ async def _handle_request(self, request: Request):
805805
event = request.headers.get("X-GitHub-Event")
806806
action = payload.get("action")
807807
installation = payload.get("installation") or {}
808+
sender = payload.get("sender") or {}
809+
repository = payload.get("repository") or {}
808810
self.event = event
809811
self.action = action
810812
self.installation_id = installation.get("id")
813+
self.sender_login = sender.get("login")
814+
self.repository_full_name = repository.get("full_name")
811815
if not event:
812816
raise HTTPException(
813817
status_code=status.HTTP_400_BAD_REQUEST,

0 commit comments

Comments
 (0)