Skip to content
This repository was archived by the owner on Nov 10, 2026. It is now read-only.
This repository was archived by the owner on Nov 10, 2026. It is now read-only.

[Bug] Action fails on pull request close #12

Open

Description

@m31-galaxy

Issue

If a pull request is closed without merging, the action fails with an error at the Parse content metadata step.

Example

jq: error (at organization-Breadcord-issue-PR_kwDOItt-hs5Gk46V.json:0): Cannot iterate over null (null)

Full debug log from running this job in a repository: debug.log

The relevant code from the workflow file:

on:
  issues:
    types: [ closed ]
  pull_request:
    types: [ closed ]

  if_closed:
    name: Mark as Closed
    if: ${{ github.event.issue.state_reason == 'not_planned' || (github.event_name == 'pull_request' && !github.event.pull_request.merged) }}
    runs-on: ubuntu-latest
    steps:
      - uses: Breadcord/update-project-action@main
        with:
          github_token: ${{ secrets.ACTIONS_TOKEN }}
          organization: Breadcord
          project_number: 1
          content_id: ${{ github.event.issue.node_id || github.event.pull_request.node_id }}
          field: Status
          value: Closed

Note that Breadcord/update-project-action is a clone of this action, but with PRs #8 and #10 merged in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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