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 Closedif: ${{ github.event.issue.state_reason == 'not_planned' || (github.event_name == 'pull_request' && !github.event.pull_request.merged) }}runs-on: ubuntu-lateststeps:
- uses: Breadcord/update-project-action@mainwith:
github_token: ${{ secrets.ACTIONS_TOKEN }}organization: Breadcordproject_number: 1content_id: ${{ github.event.issue.node_id || github.event.pull_request.node_id }}field: Statusvalue: ClosedNote that Breadcord/update-project-action is a clone of this action, but with PRs #8 and #10 merged in.
Issue
If a pull request is closed without merging, the action fails with an error at the
Parse content metadatastep.Example
Full debug log from running this job in a repository: debug.log
The relevant code from the workflow file:
Note that
Breadcord/update-project-actionis a clone of this action, but with PRs #8 and #10 merged in.