Skip to content

error when running as github action #174

@matthewmayer

Description

@matthewmayer
src/index.ts:52:48 - error TS2339: Property 'issues' does not exist on type 'GitHubAPI'.

52             const issue = await context.github.issues.get(context.issue({
                                                  ~~~~~~

src/index.ts:55:57 - error TS7006: Parameter 'label' implicitly has an 'any' type.

55             const currentLabels = issue.data.labels.map(label => label.name)
                                                           ~~~~~

src/index.ts:81:34 - error TS2339: Property 'issues' does not exist on type 'GitHubAPI'.

81             await context.github.issues.addLabels(context.issue({
                                    ~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions