Skip to content

Error on scheduled event #11

@tombruijn

Description

@tombruijn

When running lintje with a scheduled event, it fails with this error:

 Error: Lintje failed with error: TypeError: Cannot read properties of undefined (reading 'length')
TypeError: Cannot read properties of undefined (reading 'length')
    at main (/home/runner/work/_actions/lintje/action/v0.11/dist/index.js:67455:37)

https://github.com/appsignal/appsignal-python/actions/runs/7496053602/job/20407364828

Could be that it receives no information about the last pushed commits on the branch. The action can either skip on the "schedule" event and do nothing, or lint the last commit.

Possible workaround, skip Lintje on schedule events: appsignal/appsignal-python#188

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions