How grisolfi/pocci works
Project type and purpose
• This is a lightweight Python-based backend service that acts as a demonstration CI server.
• It registers as a GitHub App, listens for incoming webhook events, and uses the GitHub Checks API to report status back to GitHub.
File structure
• Top‐level:
• main.py – the HTTP server entrypoint that receives GitHub webhooks and orchestrates the workflow
• requirements.txt – lists Python dependencies (e.g., Flask or aiohttp, PyJWT, requests)
• tool/ directory:
• auth_helper.py – generates JWTs or installations tokens for authenticating as the GitHub App
• repo.py – encapsulates API calls to GitHub (creating/updating check runs)
• No database or UI components; no persistent storage.
README for additional insights
• Expects two env vars: GH_APPLICATION_ID and GH_PEM_FILE
• Invoked by running main.py
• Optionally uses an external tunneling service (smee.io) to forward GitHub traffic to your local host