context.d.ts 549 B

1234567891011121314151617181920212223242526
  1. import { WebhookPayload } from './interfaces';
  2. export declare class Context {
  3. /**
  4. * Webhook payload object that triggered the workflow
  5. */
  6. payload: WebhookPayload;
  7. eventName: string;
  8. sha: string;
  9. ref: string;
  10. workflow: string;
  11. action: string;
  12. actor: string;
  13. /**
  14. * Hydrate the context from the environment
  15. */
  16. constructor();
  17. get issue(): {
  18. owner: string;
  19. repo: string;
  20. number: number;
  21. };
  22. get repo(): {
  23. owner: string;
  24. repo: string;
  25. };
  26. }