Skip to content

Private GH repo: Cannot read properties of undefined (reading 'number') #3742

Open
@ayussh-verma

Description

@ayussh-verma

Hello, I'm facing the same issue as #2790 with v7.0.6.

This is a private repo, and I'm pinning to v7.0.6 explicitly.
The PR was created successfully, but it isn't getting updated. More specifically, the PR is being force-pushed but the title and body isn't being updated.

Running on ubuntu-24.04. I've tried using v6.0.1 to no avail.

Logs:

Run peter-evans/create-pull-request@v7.0.6
  with:
    token: ***
    sign-commits: true
    commit-message: chore(release): release TOOL 0.10.0
    title: chore(release): release TOOL 0.10.0
    body: ## TOOL [0.10.0](https://github.com/org/repo/tree/0.10.0)
    branch: release
    committer: user[bot] <blah.user[bot]@users.noreply.github.com>
    author: user[bot] <blah.user[bot]@users.noreply.github.com>
    delete-branch: true
    labels: auto
    signoff: false
    draft: false
    maintainer-can-modify: true
  
Fetching existing pull request
  Attempting update of pull request
  Error: Cannot read properties of undefined (reading 'number')

Code:

      - name: Update PR
        uses: peter-evans/create-pull-request@v7.0.6
        with:
          token: ${{ steps.get-app-token.outputs.token }}
          sign-commits: true
          commit-message: ${{ needs.determine-title.outputs.title }}
          title: ${{ needs.determine-title.outputs.title }}
          body: ${{ steps.get-changelog-entry.outputs.draft-output }}
          branch: release
          committer: '${{ env.GIT_AUTHOR_USERNAME }} <${{ env.GIT_AUTHOR_EMAIL }}>'
          author: '${{ env.GIT_AUTHOR_USERNAME }} <${{ env.GIT_AUTHOR_EMAIL }}>'
          delete-branch: true
          labels: auto

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