Skip to content

[error]Could not get pull request from context, exiting #13

@ravikp7

Description

@ravikp7

Hi @futuratrepadeira ! Thanks for this nifty action. I'm running into this issue.

My workflow looks like this:

- name: Changed Files Exporter
        id: get_file_changes
        uses: futuratrepadeira/changed-files@v3.2.1
        with:
          repo-token: ${{ secrets.GITHUB_TOKEN }}
          pattern: '^.*\.(ts|tsx)$'

Inspecting the code, I see it failing at the below line.

https://github.com/futuratrepadeira/changed-files/blob/ca328ebf8ca65f94258677cea8478f0094d76a8e/src/main.ts#L100

What could be a possible reason? Can I debug this locally?

Let me know if you need more debug info.

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