pull-request-action: Failing action status when all looks good

Hi, I have this response (in a private repository), where the pull request is successfully created, but the status check is error:

> Run vsoch/pull-request-action@1.0.7
  env:
    GITHUB_TOKEN: ***
    BRANCH_PREFIX: hotfix-
    PULL_REQUEST_BRANCH: production
    PULL_REQUEST_BODY: 🚀 Opening a pull request for this branch
    PULL_REQUEST_REVIEWERS: AnandChowdhary
/usr/bin/docker run --name b3ac6fc33e50684c946d5a2c15a98de253c71_a5e539 --label 3b3ac6 --workdir /github/workspace --rm -e GITHUB_TOKEN -e BRANCH_PREFIX -e PULL_REQUEST_BRANCH -e PULL_REQUEST_BODY -e PULL_REQUEST_REVIEWERS -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/USERNAME/USERNAME":"/github/workspace" 3b3ac6:fc33e50684c946d5a2c15a98de253c71
==========================================================================
START: Running Pull Request on Branch Update Action!
Found /github/workflow/event.json
Pull requests will go to production
No explicit preference for draft PR: created PRs will be normal PRs.
No explicit preference for maintainer being able to modify: default is true.
PULL_REQUEST_ASSIGNEES is not set, no assignees.
PULL_REQUEST_REVIEWERS is set, AnandChowdhary
PULL_REQUEST_TEAM_REVIEWERS is not set, no team reviewers.
PULL_REQUEST_FROM_BRANCH is not set, checking branch in payload.
Found branch hotfix-real-estate-undefined-done to open PR from
Pull request body is 🚀 Opening a pull request for this branch
No pull request title is set, will use default.
Pull request title is Update from hotfix-real-estate-undefined-done
curl -fsSL -H 'AUTH...' -X GET --data {"base":"production", "head":"hotfix-real-estate-undefined-done", "body":"🚀 Opening a pull request for this branch"} https://api.github.com/repos/USERNAME/REPO/pulls
Response ref: feature-proposal-html
curl -fsSL -H 'AUTH...' -X POST --data {"title":"Update from hotfix-real-estate-undefined-done", "body":"🚀 Opening a pull request for this branch", "base":"production", "head":"hotfix-real-estate-undefined-done", "draft":false, "maintainer_can_modify":true} https://api.github.com/repos/USERNAME/REPO/pulls
> github response
Number opened for PR is 167
Found reviewers: "AnandChowdhary" and team reviewers: ""
github response
{
  "url": "https://api.github.com/repos/USERNAME/REPO/pulls/167",
  "id": 482735942,
  "node_id": "MDExOlB1bGxSZXF1ZXN0NDgyNzM1OTQy",
  "html_url": "https://github.com/USERNAME/REPO/pull/167",
  "diff_url": "https://github.com/USERNAME/REPO/pull/167.diff",
  "patch_url": "https://github.com/USERNAME/REPO/pull/167.patch",
  "issue_url": "https://api.github.com/repos/USERNAME/REPO/issues/167",
  "number": 167,
  "state": "open",
  "locked": false,
  "title": "Update from hotfix-real-estate-undefined-done",
  "user": {
    "login": "USER",
    "id": 67733299,
    "node_id": "MDQ6VXNlcjY3NzMzMjk5",
    "avatar_url": "https://avatars0.githubusercontent.com/u/67733299?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/USER",
    "html_url": "https://github.com/USER",
    "followers_url": "https://api.github.com/users/USER/followers",
    "following_url": "https://api.github.com/users/USER/following{/other_user}",
    "gists_url": "https://api.github.com/users/USER/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/USER/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/USER/subscriptions",
    "organizations_url": "https://api.github.com/users/USER/orgs",
    "repos_url": "https://api.github.com/users/USER/repos",
    "events_url": "https://api.github.com/users/USER/events{/privacy}",
    "received_events_url": "https://api.github.com/users/USER/received_events",
    "type": "User",
    "site_admin": false
  },
  "body": "🚀 Opening a pull request for this branch",
  "created_at": "2020-09-09T10:17:25Z",
  "updated_at": "2020-09-09T10:17:25Z",
  "closed_at": null,
  "merged_at": null,
  "merge_commit_sha": null,
  "assignee": null,
  "assignees": [  
  ],
  "requested_reviewers": [  
  ],
  "requested_teams": [  
  ],
  "labels": [
  ],
  "milestone": null,
  "draft": false,
  "commits_url": "https://api.github.com/repos/USERNAME/REPO/pulls/167/commits",
  "review_comments_url": "https://api.github.com/repos/USERNAME/REPO/pulls/167/comments",
  "review_comment_url": "https://api.github.com/repos/USERNAME/REPO/pulls/comments{/number}",
  "comments_url": "https://api.github.com/repos/USERNAME/REPO/issues/167/comments",
  "statuses_url": "https://api.github.com/repos/USERNAME/REPO/statuses/15c0ea647b7f4824908c6d50540d13954c1ddafb",
  "head": {
    "label": "USERNAME:hotfix-real-estate-undefined-done",
    "ref": "hotfix-real-estate-undefined-done",
    "sha": "15c0ea647b7f4824908c6d50540d13954c1ddafb",
    "user": {
      "login": "USERNAME",
      "id": 65495851,
      "node_id": "MDEyOk9yZ2FuaXphdGlvbjY1NDk1ODUx",
      "avatar_url": "https://avatars3.githubusercontent.com/u/65495851?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/USERNAME",
      "html_url": "https://github.com/USERNAME",
      "followers_url": "https://api.github.com/users/USERNAME/followers",
      "following_url": "https://api.github.com/users/USERNAME/following{/other_user}",
      "gists_url": "https://api.github.com/users/USERNAME/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/USERNAME/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/USERNAME/subscriptions",
      "organizations_url": "https://api.github.com/users/USERNAME/orgs",
      "repos_url": "https://api.github.com/users/USERNAME/repos",
      "events_url": "https://api.github.com/users/USERNAME/events{/privacy}",
      "received_events_url": "https://api.github.com/users/USERNAME/received_events",
      "type": "Organization",
      "site_admin": false
    },
    "repo": {
      "id": 276858968,
      "node_id": "MDEwOlJlcG9zaXRvcnkyNzY4NTg5Njg=",
      "name": "REPO",
      "full_name": "USERNAME/REPO",
      "private": true,
      "owner": {
        "login": "USERNAME",
        "id": 65495851,
        "node_id": "MDEyOk9yZ2FuaXphdGlvbjY1NDk1ODUx",
        "avatar_url": "https://avatars3.githubusercontent.com/u/65495851?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/USERNAME",
        "html_url": "https://github.com/USERNAME",
        "followers_url": "https://api.github.com/users/USERNAME/followers",
        "following_url": "https://api.github.com/users/USERNAME/following{/other_user}",
        "gists_url": "https://api.github.com/users/USERNAME/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/USERNAME/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/USERNAME/subscriptions",
        "organizations_url": "https://api.github.com/users/USERNAME/orgs",
        "repos_url": "https://api.github.com/users/USERNAME/repos",
        "events_url": "https://api.github.com/users/USERNAME/events{/privacy}",
        "received_events_url": "https://api.github.com/users/USERNAME/received_events",
        "type": "Organization",
        "site_admin": false
      },
      "html_url": "https://github.com/USERNAME/REPO",
      "description": "This is the repository description",
      "fork": false,
      "url": "https://api.github.com/repos/USERNAME/REPO",
      "forks_url": "https://api.github.com/repos/USERNAME/REPO/forks",
      "keys_url": "https://api.github.com/repos/USERNAME/REPO/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/USERNAME/REPO/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/USERNAME/REPO/teams",
      "hooks_url": "https://api.github.com/repos/USERNAME/REPO/hooks",
      "issue_events_url": "https://api.github.com/repos/USERNAME/REPO/issues/events{/number}",
      "events_url": "https://api.github.com/repos/USERNAME/REPO/events",
      "assignees_url": "https://api.github.com/repos/USERNAME/REPO/assignees{/user}",
      "branches_url": "https://api.github.com/repos/USERNAME/REPO/branches{/branch}",
      "tags_url": "https://api.github.com/repos/USERNAME/REPO/tags",
      "blobs_url": "https://api.github.com/repos/USERNAME/REPO/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/USERNAME/REPO/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/USERNAME/REPO/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/USERNAME/REPO/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/USERNAME/REPO/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/USERNAME/REPO/languages",
      "stargazers_url": "https://api.github.com/repos/USERNAME/REPO/stargazers",
      "contributors_url": "https://api.github.com/repos/USERNAME/REPO/contributors",
      "subscribers_url": "https://api.github.com/repos/USERNAME/REPO/subscribers",
      "subscription_url": "https://api.github.com/repos/USERNAME/REPO/subscription",
      "commits_url": "https://api.github.com/repos/USERNAME/REPO/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/USERNAME/REPO/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/USERNAME/REPO/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/USERNAME/REPO/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/USERNAME/REPO/contents/{+path}",
      "compare_url": "https://api.github.com/repos/USERNAME/REPO/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/USERNAME/REPO/merges",
      "archive_url": "https://api.github.com/repos/USERNAME/REPO/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/USERNAME/REPO/downloads",
      "issues_url": "https://api.github.com/repos/USERNAME/REPO/issues{/number}",
      "pulls_url": "https://api.github.com/repos/USERNAME/REPO/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/USERNAME/REPO/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/USERNAME/REPO/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/USERNAME/REPO/labels{/name}",
      "releases_url": "https://api.github.com/repos/USERNAME/REPO/releases{/id}",
      "deployments_url": "https://api.github.com/repos/USERNAME/REPO/deployments",
      "created_at": "2020-07-03T09:18:57Z",
      "updated_at": "2020-09-09T10:03:12Z",
      "pushed_at": "2020-09-09T10:17:01Z",
      "git_url": "git://github.com/USERNAME/REPO.git",
      "ssh_url": "git@github.com:USERNAME/REPO.git",
      "clone_url": "https://github.com/USERNAME/REPO.git",
      "svn_url": "https://github.com/USERNAME/REPO",
      "homepage": "https://example.com",
      "size": 4229,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "Svelte",
      "has_issues": true,
      "has_projects": false,
      "has_downloads": true,
      "has_wiki": false,
      "has_pages": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 2,
      "license": {
        "key": "other",
        "name": "Other",
        "spdx_id": "NOASSERTION",
        "url": null,
        "node_id": "MDc6TGljZW5zZTA="
      },
      "forks": 0,
      "open_issues": 2,
      "watchers": 0,
      "default_branch": "master"
    }
  },
  "base": {
    "label": "USERNAME:production",
    "ref": "production",
    "sha": "0ed61487b39475b9985501adc681126016f3667b",
    "user": {
      "login": "USERNAME",
      "id": 65495851,
      "node_id": "MDEyOk9yZ2FuaXphdGlvbjY1NDk1ODUx",
      "avatar_url": "https://avatars3.githubusercontent.com/u/65495851?v=4",
      "gravatar_id": "",
      "url": "https://api.github.com/users/USERNAME",
      "html_url": "https://github.com/USERNAME",
      "followers_url": "https://api.github.com/users/USERNAME/followers",
      "following_url": "https://api.github.com/users/USERNAME/following{/other_user}",
      "gists_url": "https://api.github.com/users/USERNAME/gists{/gist_id}",
      "starred_url": "https://api.github.com/users/USERNAME/starred{/owner}{/repo}",
      "subscriptions_url": "https://api.github.com/users/USERNAME/subscriptions",
      "organizations_url": "https://api.github.com/users/USERNAME/orgs",
      "repos_url": "https://api.github.com/users/USERNAME/repos",
      "events_url": "https://api.github.com/users/USERNAME/events{/privacy}",
      "received_events_url": "https://api.github.com/users/USERNAME/received_events",
      "type": "Organization",
      "site_admin": false
    },
    "repo": {
      "id": 276858968,
      "node_id": "MDEwOlJlcG9zaXRvcnkyNzY4NTg5Njg=",
      "name": "REPO",
      "full_name": "USERNAME/REPO",
      "private": true,
      "owner": {
        "login": "USERNAME",
        "id": 65495851,
        "node_id": "MDEyOk9yZ2FuaXphdGlvbjY1NDk1ODUx",
        "avatar_url": "https://avatars3.githubusercontent.com/u/65495851?v=4",
        "gravatar_id": "",
        "url": "https://api.github.com/users/USERNAME",
        "html_url": "https://github.com/USERNAME",
        "followers_url": "https://api.github.com/users/USERNAME/followers",
        "following_url": "https://api.github.com/users/USERNAME/following{/other_user}",
        "gists_url": "https://api.github.com/users/USERNAME/gists{/gist_id}",
        "starred_url": "https://api.github.com/users/USERNAME/starred{/owner}{/repo}",
        "subscriptions_url": "https://api.github.com/users/USERNAME/subscriptions",
        "organizations_url": "https://api.github.com/users/USERNAME/orgs",
        "repos_url": "https://api.github.com/users/USERNAME/repos",
        "events_url": "https://api.github.com/users/USERNAME/events{/privacy}",
        "received_events_url": "https://api.github.com/users/USERNAME/received_events",
        "type": "Organization",
        "site_admin": false
      },
      "html_url": "https://github.com/USERNAME/REPO",
      "description": "This is the repository description",
      "fork": false,
      "url": "https://api.github.com/repos/USERNAME/REPO",
      "forks_url": "https://api.github.com/repos/USERNAME/REPO/forks",
      "keys_url": "https://api.github.com/repos/USERNAME/REPO/keys{/key_id}",
      "collaborators_url": "https://api.github.com/repos/USERNAME/REPO/collaborators{/collaborator}",
      "teams_url": "https://api.github.com/repos/USERNAME/REPO/teams",
      "hooks_url": "https://api.github.com/repos/USERNAME/REPO/hooks",
      "issue_events_url": "https://api.github.com/repos/USERNAME/REPO/issues/events{/number}",
      "events_url": "https://api.github.com/repos/USERNAME/REPO/events",
      "assignees_url": "https://api.github.com/repos/USERNAME/REPO/assignees{/user}",
      "branches_url": "https://api.github.com/repos/USERNAME/REPO/branches{/branch}",
      "tags_url": "https://api.github.com/repos/USERNAME/REPO/tags",
      "blobs_url": "https://api.github.com/repos/USERNAME/REPO/git/blobs{/sha}",
      "git_tags_url": "https://api.github.com/repos/USERNAME/REPO/git/tags{/sha}",
      "git_refs_url": "https://api.github.com/repos/USERNAME/REPO/git/refs{/sha}",
      "trees_url": "https://api.github.com/repos/USERNAME/REPO/git/trees{/sha}",
      "statuses_url": "https://api.github.com/repos/USERNAME/REPO/statuses/{sha}",
      "languages_url": "https://api.github.com/repos/USERNAME/REPO/languages",
      "stargazers_url": "https://api.github.com/repos/USERNAME/REPO/stargazers",
      "contributors_url": "https://api.github.com/repos/USERNAME/REPO/contributors",
      "subscribers_url": "https://api.github.com/repos/USERNAME/REPO/subscribers",
      "subscription_url": "https://api.github.com/repos/USERNAME/REPO/subscription",
      "commits_url": "https://api.github.com/repos/USERNAME/REPO/commits{/sha}",
      "git_commits_url": "https://api.github.com/repos/USERNAME/REPO/git/commits{/sha}",
      "comments_url": "https://api.github.com/repos/USERNAME/REPO/comments{/number}",
      "issue_comment_url": "https://api.github.com/repos/USERNAME/REPO/issues/comments{/number}",
      "contents_url": "https://api.github.com/repos/USERNAME/REPO/contents/{+path}",
      "compare_url": "https://api.github.com/repos/USERNAME/REPO/compare/{base}...{head}",
      "merges_url": "https://api.github.com/repos/USERNAME/REPO/merges",
      "archive_url": "https://api.github.com/repos/USERNAME/REPO/{archive_format}{/ref}",
      "downloads_url": "https://api.github.com/repos/USERNAME/REPO/downloads",
      "issues_url": "https://api.github.com/repos/USERNAME/REPO/issues{/number}",
      "pulls_url": "https://api.github.com/repos/USERNAME/REPO/pulls{/number}",
      "milestones_url": "https://api.github.com/repos/USERNAME/REPO/milestones{/number}",
      "notifications_url": "https://api.github.com/repos/USERNAME/REPO/notifications{?since,all,participating}",
      "labels_url": "https://api.github.com/repos/USERNAME/REPO/labels{/name}",
      "releases_url": "https://api.github.com/repos/USERNAME/REPO/releases{/id}",
      "deployments_url": "https://api.github.com/repos/USERNAME/REPO/deployments",
      "created_at": "2020-07-03T09:18:57Z",
      "updated_at": "2020-09-09T10:03:12Z",
      "pushed_at": "2020-09-09T10:17:01Z",
      "git_url": "git://github.com/USERNAME/REPO.git",
      "ssh_url": "git@github.com:USERNAME/REPO.git",
      "clone_url": "https://github.com/USERNAME/REPO.git",
      "svn_url": "https://github.com/USERNAME/REPO",
      "homepage": "https://example.com",
      "size": 4229,
      "stargazers_count": 0,
      "watchers_count": 0,
      "language": "Svelte",
      "has_issues": true,
      "has_projects": false,
      "has_downloads": true,
      "has_wiki": false,
      "has_pages": false,
      "forks_count": 0,
      "mirror_url": null,
      "archived": false,
      "disabled": false,
      "open_issues_count": 2,
      "license": {
        "key": "other",
        "name": "Other",
        "spdx_id": "NOASSERTION",
        "url": null,
        "node_id": "MDc6TGljZW5zZTA="
      },
      "forks": 0,
      "open_issues": 2,
      "watchers": 0,
      "default_branch": "master"
    }
  },
  "_links": {
    "self": {
      "href": "https://api.github.com/repos/USERNAME/REPO/pulls/167"
    },
    "html": {
      "href": "https://github.com/USERNAME/REPO/pull/167"
    },
    "issue": {
      "href": "https://api.github.com/repos/USERNAME/REPO/issues/167"
    },
    "comments": {
      "href": "https://api.github.com/repos/USERNAME/REPO/issues/167/comments"
    },
    "review_comments": {
      "href": "https://api.github.com/repos/USERNAME/REPO/pulls/167/comments"
    },
    "review_comment": {
      "href": "https://api.github.com/repos/USERNAME/REPO/pulls/comments{/number}"
    },
    "commits": {
      "href": "https://api.github.com/repos/USERNAME/REPO/pulls/167/commits"
    },
    "statuses": {
      "href": "https://api.github.com/repos/USERNAME/REPO/statuses/15c0ea647b7f4824908c6d50540d13954c1ddafb"
    }
  },
  "author_association": "COLLABORATOR",
  "active_lock_reason": null,
  "merged": false,
  "mergeable": null,
  "rebaseable": null,
  "mergeable_state": "unknown",
  "merged_by": null,
  "comments": 0,
  "review_comments": 0,
  "maintainer_can_modify": false,
  "commits": 1,
  "additions": 22,
  "deletions": 38,
  "changed_files": 1
}

In the above example, I’ve replaced the repository with “USERNAME/REPO” and the user with “USER” to prevent sharing details about the repo.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 36 (20 by maintainers)

Most upvoted comments

Released as 1.0.8. Thanks to you both!

If you set the prefix to just hotfix- it’s going to include any push to any branch that starts with that prefix. The issue doesn’t seem to be opening the PR, but rather assigning reviewers. Have you tried removing the reviewer assignment just for a sanity check?