INNER CODE UNIT · Python

PartialGithubEventHeadCommit

layer5io/layer5 · .github/actions/comment-preview-on-pr/app/main.py:22

class PartialGithubEventHeadCommit(BaseModel):
    id: str


class PartialGithubEventWorkflowRun(BaseModel):
    head_commit: PartialGithubEventHeadCommit


class PartialGithubEvent(BaseModel):
    workflow_run: PartialGithubEventWorkflowRun


if __name__ == "__main__":
    logging.basicConfig(level=logging.INFO)
    settings = Settings()
    logging.info(f"Using config: {settings.json()}")
    g = Github(settings.input_token.get_secret_value())
    repo = g.get_repo(settings.github_repository)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…