Skip to content

Fails when the title is changed #184

Open
@nikaro

Description

@nikaro

Hello,

It looks like this action doesn't handle the case when only the pull request title is changed.

With this trigger the action can be run when the title or the description is changed:

on: 
  pull_request:
    types: [edited]

But when only the title is concerned it seems that the github.context.payload.changes.body variable (used here) is empty or absent (cf. docs).

Leading to this error:

Run marocchino/checkbox-action@03a47510e9dcd6931775838d362ec698bac07c16
  with:
    action: detect
    error: error
    GITHUB_TOKEN: ***
Error: Cannot read properties of undefined (reading 'from')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions