Skip to content

Doesn't work on issue_comment event type #135

Description

@plieberg

Would be really nice to have support for the issue_comment event type. This allows ad hoc runs by commenting on an open PR.

Current code only supports push and pull_request.

switch (context.eventName) {
      case 'push':
        innerContext = {
          repo: context.repo,
          after: context.payload.after,
          before: context.payload.before
        }
        break
      case 'pull_request':
        innerContext = {
          repo: context.repo,
          after: context.payload.pull_request!.head.sha,
          before: context.payload.pull_request!.base.sha
        }
        break
      default:
        throw new Error('Event type not supported')
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions