| 1795 | } |
| 1796 | |
| 1797 | interface GitHubEventPayload { |
| 1798 | pull_request?: { |
| 1799 | number?: number; |
| 1800 | head?: { repo?: { id?: number } }; |
| 1801 | base?: { repo?: { id?: number } }; |
| 1802 | }; |
| 1803 | // Present on `workflow_run` events — the trusted SHA of the run that triggered us. |
| 1804 | workflow_run?: { |
| 1805 | head_sha?: string; |
| 1806 | }; |
| 1807 | } |
| 1808 | |
| 1809 | function readGitHubEventPayload(): GitHubEventPayload | null { |
| 1810 | const path = process.env.GITHUB_EVENT_PATH; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…