vsoch / pull-request-action

open a pull request when a branch is pushed or updated
https://github.com/marketplace/actions/pull-request-action
MIT License
173 stars 62 forks source link

Failing action status when all looks good #41

Closed AnandChowdhary closed 4 years ago

AnandChowdhary commented 4 years ago

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.

vsoch commented 4 years ago

Sorry what’s the issue? The PR is created and the response looks like I’d expect.

AnandChowdhary commented 4 years ago

Yep, that's exactly right, everything works but the status check is failing:

Screen Shot 2020-09-09 at 16 25 40

vsoch commented 4 years ago

There must be another reason - can you share the complete log?

vsoch commented 4 years ago

And please try the previous version - https://github.com/vsoch/pull-request-action/releases/tag/1.0.6. A contributor changed the exit code logic about a month ago and possibly screwed things up.

saitho commented 4 years ago

I came across the same error with 1.0.6. Latest version 1.0.7 worked fine for me... :shrug:

vsoch commented 4 years ago

So you are not able to reproduce 1.0.7 not working? We need some kind of direction to decide to go in - the messages here are conflicting and it’s not clear what action to take!

AnandChowdhary commented 4 years ago

I'm on v1.0.7 with the following .github/workflows/hotfix-pull-request.yml:

name: Hotfix Branch Pull Request
on:
  push:
    branches-ignore:
      - master
      - production
jobs:
  auto-pull-request:
    name: PullRequestAction
    runs-on: ubuntu-latest
    steps:
      - name: pull-request-action
        uses: vsoch/pull-request-action@1.0.7
        env:
          GITHUB_TOKEN: ${{ secrets.GH_PAT }}
          BRANCH_PREFIX: "hotfix-"
          PULL_REQUEST_BRANCH: "production"
          PULL_REQUEST_BODY: "πŸš€ Opening a pull request for this branch"
          PULL_REQUEST_REVIEWERS: "AnandChowdhary"
Full raw logs:
2020-09-18T07:06:35.9111045Z ##[section]Starting: Request a runner to run this job
2020-09-18T07:06:36.1616727Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'ubuntu-latest'
2020-09-18T07:06:36.1616831Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2020-09-18T07:06:36.1617045Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'ubuntu-latest'
2020-09-18T07:06:36.3071437Z ##[section]Finishing: Request a runner to run this job
2020-09-18T07:06:44.9772975Z Current runner version: '2.273.2'
2020-09-18T07:06:44.9804788Z ##[group]Operating System
2020-09-18T07:06:44.9805523Z Ubuntu
2020-09-18T07:06:44.9805803Z 18.04.5
2020-09-18T07:06:44.9806497Z LTS
2020-09-18T07:06:44.9806811Z ##[endgroup]
2020-09-18T07:06:44.9807456Z ##[group]Virtual Environment
2020-09-18T07:06:44.9807949Z Environment: ubuntu-18.04
2020-09-18T07:06:44.9808349Z Version: 20200914.1
2020-09-18T07:06:44.9809460Z Included Software: https://github.com/actions/virtual-environments/blob/ubuntu18/20200914.1/images/linux/Ubuntu1804-README.md
2020-09-18T07:06:44.9810133Z ##[endgroup]
2020-09-18T07:06:44.9811154Z Prepare workflow directory
2020-09-18T07:06:44.9999386Z Prepare all required actions
2020-09-18T07:06:45.0012532Z Download action repository 'vsoch/pull-request-action@1.0.7'
2020-09-18T07:06:47.2814108Z ##[group]Build container for action use: '/home/runner/work/_actions/vsoch/pull-request-action/1.0.7/Dockerfile'.
2020-09-18T07:06:47.2876924Z ##[command]/usr/bin/docker build -t 9e3346:fcc16a4bd28b4eaea34fbc3db435e0cf -f "/home/runner/work/_actions/vsoch/pull-request-action/1.0.7/Dockerfile" "/home/runner/work/_actions/vsoch/pull-request-action/1.0.7"
2020-09-18T07:06:48.2298336Z Sending build context to Docker daemon  63.49kB
2020-09-18T07:06:48.2298717Z 
2020-09-18T07:06:48.2389666Z Step 1/9 : FROM alpine
2020-09-18T07:06:49.1843866Z latest: Pulling from library/alpine
2020-09-18T07:06:49.5161068Z df20fa9351a1: Pulling fs layer
2020-09-18T07:06:49.9366513Z df20fa9351a1: Download complete
2020-09-18T07:06:50.0784035Z df20fa9351a1: Pull complete
2020-09-18T07:06:50.0800388Z Digest: sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321
2020-09-18T07:06:50.0840829Z Status: Downloaded newer image for alpine:latest
2020-09-18T07:06:50.0854929Z  ---> a24bb4013296
2020-09-18T07:06:50.0856491Z Step 2/9 : LABEL "com.github.actions.name"="Pull Request on Branch Push"
2020-09-18T07:06:50.2121677Z  ---> Running in 9d89997efe33
2020-09-18T07:06:51.0081325Z Removing intermediate container 9d89997efe33
2020-09-18T07:06:51.0082409Z  ---> f3bae07302a9
2020-09-18T07:06:51.0084944Z Step 3/9 : LABEL "com.github.actions.description"="Create a pull request when a branch is created or updated"
2020-09-18T07:06:51.0245827Z  ---> Running in d4585fd9838a
2020-09-18T07:06:52.0081685Z Removing intermediate container d4585fd9838a
2020-09-18T07:06:52.0082548Z  ---> 02881b394eb8
2020-09-18T07:06:52.0083414Z Step 4/9 : LABEL "com.github.actions.icon"="activity"
2020-09-18T07:06:52.0295291Z  ---> Running in 1f542e62b908
2020-09-18T07:06:53.0079534Z Removing intermediate container 1f542e62b908
2020-09-18T07:06:53.0080213Z  ---> b18d93ecdc82
2020-09-18T07:06:53.0081968Z Step 5/9 : LABEL "com.github.actions.color"="yellow"
2020-09-18T07:06:53.0271908Z  ---> Running in c0a6539be3dd
2020-09-18T07:06:54.0080251Z Removing intermediate container c0a6539be3dd
2020-09-18T07:06:54.0080888Z  ---> 8cd2a303aa4a
2020-09-18T07:06:54.0082114Z Step 6/9 : RUN apk --no-cache add curl wget git bash jq
2020-09-18T07:06:54.0266106Z  ---> Running in de854b946a6f
2020-09-18T07:06:54.3841844Z fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
2020-09-18T07:06:54.4643841Z fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
2020-09-18T07:06:54.6075349Z (1/16) Installing ncurses-terminfo-base (6.2_p20200523-r0)
2020-09-18T07:06:54.6165229Z (2/16) Installing ncurses-libs (6.2_p20200523-r0)
2020-09-18T07:06:54.6304291Z (3/16) Installing readline (8.0.4-r0)
2020-09-18T07:06:54.6397363Z (4/16) Installing bash (5.0.17-r0)
2020-09-18T07:06:54.6636890Z Executing bash-5.0.17-r0.post-install
2020-09-18T07:06:54.6660724Z (5/16) Installing ca-certificates (20191127-r4)
2020-09-18T07:06:54.6863807Z (6/16) Installing nghttp2-libs (1.41.0-r0)
2020-09-18T07:06:54.6937973Z (7/16) Installing libcurl (7.69.1-r1)
2020-09-18T07:06:54.7067775Z (8/16) Installing curl (7.69.1-r1)
2020-09-18T07:06:54.7154813Z (9/16) Installing expat (2.2.9-r1)
2020-09-18T07:06:54.7226425Z (10/16) Installing pcre2 (10.35-r0)
2020-09-18T07:06:54.7362228Z (11/16) Installing git (2.26.2-r0)
2020-09-18T07:06:54.9264845Z (12/16) Installing oniguruma (6.9.5-r1)
2020-09-18T07:06:54.9372544Z (13/16) Installing jq (1.6-r1)
2020-09-18T07:06:54.9463839Z (14/16) Installing libunistring (0.9.10-r0)
2020-09-18T07:06:54.9658827Z (15/16) Installing libidn2 (2.3.0-r0)
2020-09-18T07:06:54.9742310Z (16/16) Installing wget (1.20.3-r1)
2020-09-18T07:06:54.9857790Z Executing busybox-1.31.1-r16.trigger
2020-09-18T07:06:54.9896853Z Executing ca-certificates-20191127-r4.trigger
2020-09-18T07:06:55.0272092Z OK: 27 MiB in 30 packages
2020-09-18T07:06:56.3118076Z Removing intermediate container de854b946a6f
2020-09-18T07:06:56.3118616Z  ---> 41f175e7369c
2020-09-18T07:06:56.3119072Z Step 7/9 : COPY pull-request.sh /pull-request.sh
2020-09-18T07:06:57.0083205Z  ---> 59a8fb06d796
2020-09-18T07:06:57.0092640Z Step 8/9 : RUN chmod u+x /pull-request.sh
2020-09-18T07:06:57.0234705Z  ---> Running in 478270b713c1
2020-09-18T07:06:58.0095279Z Removing intermediate container 478270b713c1
2020-09-18T07:06:58.0095691Z  ---> 7e0d2b3a216b
2020-09-18T07:06:58.0096040Z Step 9/9 : ENTRYPOINT ["/pull-request.sh"]
2020-09-18T07:06:58.0249057Z  ---> Running in a1158525562e
2020-09-18T07:06:59.0106668Z Removing intermediate container a1158525562e
2020-09-18T07:06:59.0107206Z  ---> 2fa44703fb98
2020-09-18T07:06:59.0112738Z Successfully built 2fa44703fb98
2020-09-18T07:06:59.0148376Z Successfully tagged 9e3346:fcc16a4bd28b4eaea34fbc3db435e0cf
2020-09-18T07:06:59.0189892Z ##[endgroup]
2020-09-18T07:06:59.0349529Z ##[group]Run vsoch/pull-request-action@1.0.7
2020-09-18T07:06:59.0350102Z env:
2020-09-18T07:06:59.0351091Z   GITHUB_TOKEN: ***
2020-09-18T07:06:59.0351422Z   BRANCH_PREFIX: hotfix-
2020-09-18T07:06:59.0351783Z   PULL_REQUEST_BRANCH: production
2020-09-18T07:06:59.0352365Z   PULL_REQUEST_BODY: πŸš€ Opening a pull request for this branch
2020-09-18T07:06:59.0352799Z   PULL_REQUEST_REVIEWERS: AnandChowdhary
2020-09-18T07:06:59.0353177Z ##[endgroup]
2020-09-18T07:06:59.0390578Z ##[command]/usr/bin/docker run --name e3346fcc16a4bd28b4eaea34fbc3db435e0cf_0b80f2 --label 9e3346 --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 GITHUB_PATH -e GITHUB_ENV -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/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/koj/koj":"/github/workspace" 9e3346:fcc16a4bd28b4eaea34fbc3db435e0cf
2020-09-18T07:06:59.3827482Z ==========================================================================
2020-09-18T07:06:59.3827992Z START: Running Pull Request on Branch Update Action!
2020-09-18T07:06:59.3828507Z Found /github/workflow/event.json
2020-09-18T07:06:59.3829126Z Pull requests will go to production
2020-09-18T07:06:59.3829663Z No explicit preference for draft PR: created PRs will be normal PRs.
2020-09-18T07:06:59.3830641Z No explicit preference for maintainer being able to modify: default is true.
2020-09-18T07:06:59.3831221Z PULL_REQUEST_ASSIGNEES is not set, no assignees.
2020-09-18T07:06:59.3831726Z PULL_REQUEST_REVIEWERS is set, AnandChowdhary
2020-09-18T07:06:59.3832555Z PULL_REQUEST_TEAM_REVIEWERS is not set, no team reviewers.
2020-09-18T07:06:59.3833380Z PULL_REQUEST_FROM_BRANCH is not set, checking branch in payload.
2020-09-18T07:06:59.4277438Z Found branch hotfix-dockerfile-production to open PR from
2020-09-18T07:06:59.4278543Z Pull request body is πŸš€ Opening a pull request for this branch
2020-09-18T07:06:59.4279185Z No pull request title is set, will use default.
2020-09-18T07:06:59.4279934Z Pull request title is Update from hotfix-dockerfile-production
2020-09-18T07:06:59.7586903Z curl -fsSL -H 'AUTH...' -X GET --data {"base":"production", "head":"hotfix-dockerfile-production", "body":"πŸš€ Opening a pull request for this branch"} https://api.github.com/repos/koj-co/koj/pulls
2020-09-18T07:07:00.4373495Z Response ref: feature-proposal-html
2020-09-18T07:07:00.4379034Z curl -fsSL -H 'AUTH...' -X POST --data {"title":"Update from hotfix-dockerfile-production", "body":"πŸš€ Opening a pull request for this branch", "base":"production", "head":"hotfix-dockerfile-production", "draft":false, "maintainer_can_modify":true} https://api.github.com/repos/koj-co/koj/pulls
2020-09-18T07:07:02.4635704Z ##[group]github response
2020-09-18T07:07:02.4655437Z {
2020-09-18T07:07:02.4656888Z   "url": "https://api.github.com/repos/koj-co/koj/pulls/195",
2020-09-18T07:07:02.4657432Z   "id": 489123187,
2020-09-18T07:07:02.4658247Z   "node_id": "MDExOlB1bGxSZXF1ZXN0NDg5MTIzMTg3",
2020-09-18T07:07:02.4659042Z   "html_url": "https://github.com/koj-co/koj/pull/195",
2020-09-18T07:07:02.4660092Z   "diff_url": "https://github.com/koj-co/koj/pull/195.diff",
2020-09-18T07:07:02.4660876Z   "patch_url": "https://github.com/koj-co/koj/pull/195.patch",
2020-09-18T07:07:02.4662010Z   "issue_url": "https://api.github.com/repos/koj-co/koj/issues/195",
2020-09-18T07:07:02.4663248Z   "number": 195,
2020-09-18T07:07:02.4663503Z   "state": "open",
2020-09-18T07:07:02.4663779Z   "locked": false,
2020-09-18T07:07:02.4664461Z   "title": "Update from hotfix-dockerfile-production",
2020-09-18T07:07:02.4664923Z   "user": {
2020-09-18T07:07:02.4665179Z     "login": "KojBot",
2020-09-18T07:07:02.4665425Z     "id": 67733299,
2020-09-18T07:07:02.4665809Z     "node_id": "MDQ6VXNlcjY3NzMzMjk5",
2020-09-18T07:07:02.4666527Z     "avatar_url": "https://avatars0.githubusercontent.com/u/67733299?v=4",
2020-09-18T07:07:02.4667308Z     "gravatar_id": "",
2020-09-18T07:07:02.4667903Z     "url": "https://api.github.com/users/KojBot",
2020-09-18T07:07:02.4668384Z     "html_url": "https://github.com/KojBot",
2020-09-18T07:07:02.4668877Z     "followers_url": "https://api.github.com/users/KojBot/followers",
2020-09-18T07:07:02.4669937Z     "following_url": "https://api.github.com/users/KojBot/following{/other_user}",
2020-09-18T07:07:02.4670671Z     "gists_url": "https://api.github.com/users/KojBot/gists{/gist_id}",
2020-09-18T07:07:02.4671380Z     "starred_url": "https://api.github.com/users/KojBot/starred{/owner}{/repo}",
2020-09-18T07:07:02.4672186Z     "subscriptions_url": "https://api.github.com/users/KojBot/subscriptions",
2020-09-18T07:07:02.4703996Z     "organizations_url": "https://api.github.com/users/KojBot/orgs",
2020-09-18T07:07:02.4704741Z     "repos_url": "https://api.github.com/users/KojBot/repos",
2020-09-18T07:07:02.4705336Z     "events_url": "https://api.github.com/users/KojBot/events{/privacy}",
2020-09-18T07:07:02.4705999Z     "received_events_url": "https://api.github.com/users/KojBot/received_events",
2020-09-18T07:07:02.4706451Z     "type": "User",
2020-09-18T07:07:02.4706694Z     "site_admin": false
2020-09-18T07:07:02.4706914Z   },
2020-09-18T07:07:02.4707628Z   "body": "πŸš€ Opening a pull request for this branch",
2020-09-18T07:07:02.4708142Z   "created_at": "2020-09-18T07:07:01Z",
2020-09-18T07:07:02.4708548Z   "updated_at": "2020-09-18T07:07:01Z",
2020-09-18T07:07:02.4708806Z   "closed_at": null,
2020-09-18T07:07:02.4709052Z   "merged_at": null,
2020-09-18T07:07:02.4709686Z   "merge_commit_sha": null,
2020-09-18T07:07:02.4709986Z   "assignee": null,
2020-09-18T07:07:02.4710271Z   "assignees": [
2020-09-18T07:07:02.4710440Z 
2020-09-18T07:07:02.4710697Z   ],
2020-09-18T07:07:02.4710976Z   "requested_reviewers": [
2020-09-18T07:07:02.4711177Z 
2020-09-18T07:07:02.4711383Z   ],
2020-09-18T07:07:02.4711635Z   "requested_teams": [
2020-09-18T07:07:02.4711850Z 
2020-09-18T07:07:02.4712243Z   ],
2020-09-18T07:07:02.4712629Z   "labels": [
2020-09-18T07:07:02.4713142Z 
2020-09-18T07:07:02.4713337Z   ],
2020-09-18T07:07:02.4713587Z   "milestone": null,
2020-09-18T07:07:02.4713839Z   "draft": false,
2020-09-18T07:07:02.4714504Z   "commits_url": "https://api.github.com/repos/koj-co/koj/pulls/195/commits",
2020-09-18T07:07:02.4715345Z   "review_comments_url": "https://api.github.com/repos/koj-co/koj/pulls/195/comments",
2020-09-18T07:07:02.4716226Z   "review_comment_url": "https://api.github.com/repos/koj-co/koj/pulls/comments{/number}",
2020-09-18T07:07:02.4717042Z   "comments_url": "https://api.github.com/repos/koj-co/koj/issues/195/comments",
2020-09-18T07:07:02.4718025Z   "statuses_url": "https://api.github.com/repos/koj-co/koj/statuses/7c416e768a72f0dc78a4a0e095a7469d99b956ff",
2020-09-18T07:07:02.4718607Z   "head": {
2020-09-18T07:07:02.4719364Z     "label": "koj-co:hotfix-dockerfile-production",
2020-09-18T07:07:02.4720190Z     "ref": "hotfix-dockerfile-production",
2020-09-18T07:07:02.4720794Z     "sha": "7c416e768a72f0dc78a4a0e095a7469d99b956ff",
2020-09-18T07:07:02.4721184Z     "user": {
2020-09-18T07:07:02.4721567Z       "login": "koj-co",
2020-09-18T07:07:02.4721819Z       "id": 65495851,
2020-09-18T07:07:02.4722685Z       "node_id": "MDEyOk9yZ2FuaXphdGlvbjY1NDk1ODUx",
2020-09-18T07:07:02.4723482Z       "avatar_url": "https://avatars3.githubusercontent.com/u/65495851?v=4",
2020-09-18T07:07:02.4724226Z       "gravatar_id": "",
2020-09-18T07:07:02.4725381Z       "url": "https://api.github.com/users/koj-co",
2020-09-18T07:07:02.4726123Z       "html_url": "https://github.com/koj-co",
2020-09-18T07:07:02.4726893Z       "followers_url": "https://api.github.com/users/koj-co/followers",
2020-09-18T07:07:02.4727807Z       "following_url": "https://api.github.com/users/koj-co/following{/other_user}",
2020-09-18T07:07:02.4729492Z       "gists_url": "https://api.github.com/users/koj-co/gists{/gist_id}",
2020-09-18T07:07:02.4730352Z       "starred_url": "https://api.github.com/users/koj-co/starred{/owner}{/repo}",
2020-09-18T07:07:02.4731856Z       "subscriptions_url": "https://api.github.com/users/koj-co/subscriptions",
2020-09-18T07:07:02.4733168Z       "organizations_url": "https://api.github.com/users/koj-co/orgs",
2020-09-18T07:07:02.4733974Z       "repos_url": "https://api.github.com/users/koj-co/repos",
2020-09-18T07:07:02.4734827Z       "events_url": "https://api.github.com/users/koj-co/events{/privacy}",
2020-09-18T07:07:02.4735854Z       "received_events_url": "https://api.github.com/users/koj-co/received_events",
2020-09-18T07:07:02.4736370Z       "type": "Organization",
2020-09-18T07:07:02.4736661Z       "site_admin": false
2020-09-18T07:07:02.4736890Z     },
2020-09-18T07:07:02.4737111Z     "repo": {
2020-09-18T07:07:02.4737671Z       "id": 276858968,
2020-09-18T07:07:02.4738405Z       "node_id": "MDEwOlJlcG9zaXRvcnkyNzY4NTg5Njg=",
2020-09-18T07:07:02.4738931Z       "name": "koj",
2020-09-18T07:07:02.4739584Z       "full_name": "koj-co/koj",
2020-09-18T07:07:02.4739927Z       "private": true,
2020-09-18T07:07:02.4740214Z       "owner": {
2020-09-18T07:07:02.4740670Z         "login": "koj-co",
2020-09-18T07:07:02.4740916Z         "id": 65495851,
2020-09-18T07:07:02.4741467Z         "node_id": "MDEyOk9yZ2FuaXphdGlvbjY1NDk1ODUx",
2020-09-18T07:07:02.4743157Z         "avatar_url": "https://avatars3.githubusercontent.com/u/65495851?v=4",
2020-09-18T07:07:02.4744265Z         "gravatar_id": "",
2020-09-18T07:07:02.4744910Z         "url": "https://api.github.com/users/koj-co",
2020-09-18T07:07:02.4745567Z         "html_url": "https://github.com/koj-co",
2020-09-18T07:07:02.4746311Z         "followers_url": "https://api.github.com/users/koj-co/followers",
2020-09-18T07:07:02.4747318Z         "following_url": "https://api.github.com/users/koj-co/following{/other_user}",
2020-09-18T07:07:02.4748123Z         "gists_url": "https://api.github.com/users/koj-co/gists{/gist_id}",
2020-09-18T07:07:02.4748897Z         "starred_url": "https://api.github.com/users/koj-co/starred{/owner}{/repo}",
2020-09-18T07:07:02.4750129Z         "subscriptions_url": "https://api.github.com/users/koj-co/subscriptions",
2020-09-18T07:07:02.4751038Z         "organizations_url": "https://api.github.com/users/koj-co/orgs",
2020-09-18T07:07:02.4751899Z         "repos_url": "https://api.github.com/users/koj-co/repos",
2020-09-18T07:07:02.4753001Z         "events_url": "https://api.github.com/users/koj-co/events{/privacy}",
2020-09-18T07:07:02.4753813Z         "received_events_url": "https://api.github.com/users/koj-co/received_events",
2020-09-18T07:07:02.4754327Z         "type": "Organization",
2020-09-18T07:07:02.4754607Z         "site_admin": false
2020-09-18T07:07:02.4754828Z       },
2020-09-18T07:07:02.4755290Z       "html_url": "https://github.com/koj-co/koj",
2020-09-18T07:07:02.4755932Z       "description": "🌐 The official Koj website on https://koj.co",
2020-09-18T07:07:02.4756343Z       "fork": false,
2020-09-18T07:07:02.4756881Z       "url": "https://api.github.com/repos/koj-co/koj",
2020-09-18T07:07:02.4757546Z       "forks_url": "https://api.github.com/repos/koj-co/koj/forks",
2020-09-18T07:07:02.4758290Z       "keys_url": "https://api.github.com/repos/koj-co/koj/keys{/key_id}",
2020-09-18T07:07:02.4759336Z       "collaborators_url": "https://api.github.com/repos/koj-co/koj/collaborators{/collaborator}",
2020-09-18T07:07:02.4760264Z       "teams_url": "https://api.github.com/repos/koj-co/koj/teams",
2020-09-18T07:07:02.4761103Z       "hooks_url": "https://api.github.com/repos/koj-co/koj/hooks",
2020-09-18T07:07:02.4762104Z       "issue_events_url": "https://api.github.com/repos/koj-co/koj/issues/events{/number}",
2020-09-18T07:07:02.4763295Z       "events_url": "https://api.github.com/repos/koj-co/koj/events",
2020-09-18T07:07:02.4764124Z       "assignees_url": "https://api.github.com/repos/koj-co/koj/assignees{/user}",
2020-09-18T07:07:02.4764961Z       "branches_url": "https://api.github.com/repos/koj-co/koj/branches{/branch}",
2020-09-18T07:07:02.4765721Z       "tags_url": "https://api.github.com/repos/koj-co/koj/tags",
2020-09-18T07:07:02.4766516Z       "blobs_url": "https://api.github.com/repos/koj-co/koj/git/blobs{/sha}",
2020-09-18T07:07:02.4767302Z       "git_tags_url": "https://api.github.com/repos/koj-co/koj/git/tags{/sha}",
2020-09-18T07:07:02.4768062Z       "git_refs_url": "https://api.github.com/repos/koj-co/koj/git/refs{/sha}",
2020-09-18T07:07:02.4768819Z       "trees_url": "https://api.github.com/repos/koj-co/koj/git/trees{/sha}",
2020-09-18T07:07:02.4769989Z       "statuses_url": "https://api.github.com/repos/koj-co/koj/statuses/{sha}",
2020-09-18T07:07:02.4770941Z       "languages_url": "https://api.github.com/repos/koj-co/koj/languages",
2020-09-18T07:07:02.4772053Z       "stargazers_url": "https://api.github.com/repos/koj-co/koj/stargazers",
2020-09-18T07:07:02.4774948Z       "contributors_url": "https://api.github.com/repos/koj-co/koj/contributors",
2020-09-18T07:07:02.4776232Z       "subscribers_url": "https://api.github.com/repos/koj-co/koj/subscribers",
2020-09-18T07:07:02.4778194Z       "subscription_url": "https://api.github.com/repos/koj-co/koj/subscription",
2020-09-18T07:07:02.4779711Z       "commits_url": "https://api.github.com/repos/koj-co/koj/commits{/sha}",
2020-09-18T07:07:02.4780595Z       "git_commits_url": "https://api.github.com/repos/koj-co/koj/git/commits{/sha}",
2020-09-18T07:07:02.4781487Z       "comments_url": "https://api.github.com/repos/koj-co/koj/comments{/number}",
2020-09-18T07:07:02.4783172Z       "issue_comment_url": "https://api.github.com/repos/koj-co/koj/issues/comments{/number}",
2020-09-18T07:07:02.4784123Z       "contents_url": "https://api.github.com/repos/koj-co/koj/contents/{+path}",
2020-09-18T07:07:02.4785008Z       "compare_url": "https://api.github.com/repos/koj-co/koj/compare/{base}...{head}",
2020-09-18T07:07:02.4785806Z       "merges_url": "https://api.github.com/repos/koj-co/koj/merges",
2020-09-18T07:07:02.4787031Z       "archive_url": "https://api.github.com/repos/koj-co/koj/{archive_format}{/ref}",
2020-09-18T07:07:02.4787858Z       "downloads_url": "https://api.github.com/repos/koj-co/koj/downloads",
2020-09-18T07:07:02.4789040Z       "issues_url": "https://api.github.com/repos/koj-co/koj/issues{/number}",
2020-09-18T07:07:02.4790030Z       "pulls_url": "https://api.github.com/repos/koj-co/koj/pulls{/number}",
2020-09-18T07:07:02.4791098Z       "milestones_url": "https://api.github.com/repos/koj-co/koj/milestones{/number}",
2020-09-18T07:07:02.4792785Z       "notifications_url": "https://api.github.com/repos/koj-co/koj/notifications{?since,all,participating}",
2020-09-18T07:07:02.4794302Z       "labels_url": "https://api.github.com/repos/koj-co/koj/labels{/name}",
2020-09-18T07:07:02.4795156Z       "releases_url": "https://api.github.com/repos/koj-co/koj/releases{/id}",
2020-09-18T07:07:02.4796321Z       "deployments_url": "https://api.github.com/repos/koj-co/koj/deployments",
2020-09-18T07:07:02.4797027Z       "created_at": "2020-07-03T09:18:57Z",
2020-09-18T07:07:02.4797492Z       "updated_at": "2020-09-18T06:55:32Z",
2020-09-18T07:07:02.4797974Z       "pushed_at": "2020-09-18T07:06:31Z",
2020-09-18T07:07:02.4798984Z       "git_url": "git://github.com/koj-co/koj.git",
2020-09-18T07:07:02.4799768Z       "ssh_url": "git@github.com:koj-co/koj.git",
2020-09-18T07:07:02.4800395Z       "clone_url": "https://github.com/koj-co/koj.git",
2020-09-18T07:07:02.4801134Z       "svn_url": "https://github.com/koj-co/koj",
2020-09-18T07:07:02.4801568Z       "homepage": "https://koj.co",
2020-09-18T07:07:02.4801876Z       "size": 5166,
2020-09-18T07:07:02.4802398Z       "stargazers_count": 0,
2020-09-18T07:07:02.4802894Z       "watchers_count": 0,
2020-09-18T07:07:02.4803179Z       "language": "Svelte",
2020-09-18T07:07:02.4803454Z       "has_issues": true,
2020-09-18T07:07:02.4803898Z       "has_projects": false,
2020-09-18T07:07:02.4804187Z       "has_downloads": true,
2020-09-18T07:07:02.4804459Z       "has_wiki": false,
2020-09-18T07:07:02.4804716Z       "has_pages": false,
2020-09-18T07:07:02.4804968Z       "forks_count": 0,
2020-09-18T07:07:02.4805236Z       "mirror_url": null,
2020-09-18T07:07:02.4805814Z       "archived": false,
2020-09-18T07:07:02.4806077Z       "disabled": false,
2020-09-18T07:07:02.4806361Z       "open_issues_count": 2,
2020-09-18T07:07:02.4806754Z       "license": {
2020-09-18T07:07:02.4806991Z         "key": "other",
2020-09-18T07:07:02.4807229Z         "name": "Other",
2020-09-18T07:07:02.4807505Z         "spdx_id": "NOASSERTION",
2020-09-18T07:07:02.4807786Z         "url": null,
2020-09-18T07:07:02.4808083Z         "node_id": "MDc6TGljZW5zZTA="
2020-09-18T07:07:02.4808358Z       },
2020-09-18T07:07:02.4808562Z       "forks": 0,
2020-09-18T07:07:02.4808814Z       "open_issues": 2,
2020-09-18T07:07:02.4809249Z       "watchers": 0,
2020-09-18T07:07:02.4809543Z       "default_branch": "master"
2020-09-18T07:07:02.4809811Z     }
2020-09-18T07:07:02.4810019Z   },
2020-09-18T07:07:02.4810195Z   "base": {
2020-09-18T07:07:02.4810667Z     "label": "koj-co:production",
2020-09-18T07:07:02.4811000Z     "ref": "production",
2020-09-18T07:07:02.4811586Z     "sha": "d4ed1e0c9f419a7ef4a014a5165e169163b363a9",
2020-09-18T07:07:02.4812366Z     "user": {
2020-09-18T07:07:02.4812739Z       "login": "koj-co",
2020-09-18T07:07:02.4812988Z       "id": 65495851,
2020-09-18T07:07:02.4813634Z       "node_id": "MDEyOk9yZ2FuaXphdGlvbjY1NDk1ODUx",
2020-09-18T07:07:02.4814453Z       "avatar_url": "https://avatars3.githubusercontent.com/u/65495851?v=4",
2020-09-18T07:07:02.4815026Z       "gravatar_id": "",
2020-09-18T07:07:02.4815746Z       "url": "https://api.github.com/users/koj-co",
2020-09-18T07:07:02.4816367Z       "html_url": "https://github.com/koj-co",
2020-09-18T07:07:02.4817095Z       "followers_url": "https://api.github.com/users/koj-co/followers",
2020-09-18T07:07:02.4817942Z       "following_url": "https://api.github.com/users/koj-co/following{/other_user}",
2020-09-18T07:07:02.4818714Z       "gists_url": "https://api.github.com/users/koj-co/gists{/gist_id}",
2020-09-18T07:07:02.4819729Z       "starred_url": "https://api.github.com/users/koj-co/starred{/owner}{/repo}",
2020-09-18T07:07:02.4820802Z       "subscriptions_url": "https://api.github.com/users/koj-co/subscriptions",
2020-09-18T07:07:02.4821860Z       "organizations_url": "https://api.github.com/users/koj-co/orgs",
2020-09-18T07:07:02.4823172Z       "repos_url": "https://api.github.com/users/koj-co/repos",
2020-09-18T07:07:02.4824128Z       "events_url": "https://api.github.com/users/koj-co/events{/privacy}",
2020-09-18T07:07:02.4824977Z       "received_events_url": "https://api.github.com/users/koj-co/received_events",
2020-09-18T07:07:02.4825541Z       "type": "Organization",
2020-09-18T07:07:02.4825843Z       "site_admin": false
2020-09-18T07:07:02.4826097Z     },
2020-09-18T07:07:02.4826309Z     "repo": {
2020-09-18T07:07:02.4826529Z       "id": 276858968,
2020-09-18T07:07:02.4826989Z       "node_id": "MDEwOlJlcG9zaXRvcnkyNzY4NTg5Njg=",
2020-09-18T07:07:02.4827452Z       "name": "koj",
2020-09-18T07:07:02.4827881Z       "full_name": "koj-co/koj",
2020-09-18T07:07:02.4828191Z       "private": true,
2020-09-18T07:07:02.4828405Z       "owner": {
2020-09-18T07:07:02.4828970Z         "login": "koj-co",
2020-09-18T07:07:02.4829417Z         "id": 65495851,
2020-09-18T07:07:02.4829904Z         "node_id": "MDEyOk9yZ2FuaXphdGlvbjY1NDk1ODUx",
2020-09-18T07:07:02.4830768Z         "avatar_url": "https://avatars3.githubusercontent.com/u/65495851?v=4",
2020-09-18T07:07:02.4831557Z         "gravatar_id": "",
2020-09-18T07:07:02.4832515Z         "url": "https://api.github.com/users/koj-co",
2020-09-18T07:07:02.4833254Z         "html_url": "https://github.com/koj-co",
2020-09-18T07:07:02.4834060Z         "followers_url": "https://api.github.com/users/koj-co/followers",
2020-09-18T07:07:02.4834921Z         "following_url": "https://api.github.com/users/koj-co/following{/other_user}",
2020-09-18T07:07:02.4835740Z         "gists_url": "https://api.github.com/users/koj-co/gists{/gist_id}",
2020-09-18T07:07:02.4836567Z         "starred_url": "https://api.github.com/users/koj-co/starred{/owner}{/repo}",
2020-09-18T07:07:02.4837462Z         "subscriptions_url": "https://api.github.com/users/koj-co/subscriptions",
2020-09-18T07:07:02.4838324Z         "organizations_url": "https://api.github.com/users/koj-co/orgs",
2020-09-18T07:07:02.4839626Z         "repos_url": "https://api.github.com/users/koj-co/repos",
2020-09-18T07:07:02.4840610Z         "events_url": "https://api.github.com/users/koj-co/events{/privacy}",
2020-09-18T07:07:02.4841748Z         "received_events_url": "https://api.github.com/users/koj-co/received_events",
2020-09-18T07:07:02.4842587Z         "type": "Organization",
2020-09-18T07:07:02.4842907Z         "site_admin": false
2020-09-18T07:07:02.4843390Z       },
2020-09-18T07:07:02.4843952Z       "html_url": "https://github.com/koj-co/koj",
2020-09-18T07:07:02.4844853Z       "description": "🌐 The official Koj website on https://koj.co",
2020-09-18T07:07:02.4845274Z       "fork": false,
2020-09-18T07:07:02.4845869Z       "url": "https://api.github.com/repos/koj-co/koj",
2020-09-18T07:07:02.4846954Z       "forks_url": "https://api.github.com/repos/koj-co/koj/forks",
2020-09-18T07:07:02.4847714Z       "keys_url": "https://api.github.com/repos/koj-co/koj/keys{/key_id}",
2020-09-18T07:07:02.4848595Z       "collaborators_url": "https://api.github.com/repos/koj-co/koj/collaborators{/collaborator}",
2020-09-18T07:07:02.4849627Z       "teams_url": "https://api.github.com/repos/koj-co/koj/teams",
2020-09-18T07:07:02.4850351Z       "hooks_url": "https://api.github.com/repos/koj-co/koj/hooks",
2020-09-18T07:07:02.4851206Z       "issue_events_url": "https://api.github.com/repos/koj-co/koj/issues/events{/number}",
2020-09-18T07:07:02.4852062Z       "events_url": "https://api.github.com/repos/koj-co/koj/events",
2020-09-18T07:07:02.4853046Z       "assignees_url": "https://api.github.com/repos/koj-co/koj/assignees{/user}",
2020-09-18T07:07:02.4853886Z       "branches_url": "https://api.github.com/repos/koj-co/koj/branches{/branch}",
2020-09-18T07:07:02.4854686Z       "tags_url": "https://api.github.com/repos/koj-co/koj/tags",
2020-09-18T07:07:02.4855567Z       "blobs_url": "https://api.github.com/repos/koj-co/koj/git/blobs{/sha}",
2020-09-18T07:07:02.4856343Z       "git_tags_url": "https://api.github.com/repos/koj-co/koj/git/tags{/sha}",
2020-09-18T07:07:02.4857110Z       "git_refs_url": "https://api.github.com/repos/koj-co/koj/git/refs{/sha}",
2020-09-18T07:07:02.4857873Z       "trees_url": "https://api.github.com/repos/koj-co/koj/git/trees{/sha}",
2020-09-18T07:07:02.4858664Z       "statuses_url": "https://api.github.com/repos/koj-co/koj/statuses/{sha}",
2020-09-18T07:07:02.4860106Z       "languages_url": "https://api.github.com/repos/koj-co/koj/languages",
2020-09-18T07:07:02.4861000Z       "stargazers_url": "https://api.github.com/repos/koj-co/koj/stargazers",
2020-09-18T07:07:02.4861949Z       "contributors_url": "https://api.github.com/repos/koj-co/koj/contributors",
2020-09-18T07:07:02.4863569Z       "subscribers_url": "https://api.github.com/repos/koj-co/koj/subscribers",
2020-09-18T07:07:02.4864437Z       "subscription_url": "https://api.github.com/repos/koj-co/koj/subscription",
2020-09-18T07:07:02.4865278Z       "commits_url": "https://api.github.com/repos/koj-co/koj/commits{/sha}",
2020-09-18T07:07:02.4866079Z       "git_commits_url": "https://api.github.com/repos/koj-co/koj/git/commits{/sha}",
2020-09-18T07:07:02.4866968Z       "comments_url": "https://api.github.com/repos/koj-co/koj/comments{/number}",
2020-09-18T07:07:02.4867928Z       "issue_comment_url": "https://api.github.com/repos/koj-co/koj/issues/comments{/number}",
2020-09-18T07:07:02.4868819Z       "contents_url": "https://api.github.com/repos/koj-co/koj/contents/{+path}",
2020-09-18T07:07:02.4869864Z       "compare_url": "https://api.github.com/repos/koj-co/koj/compare/{base}...{head}",
2020-09-18T07:07:02.5049812Z       "merges_url": "https://api.github.com/repos/koj-co/koj/merges",
2020-09-18T07:07:02.5051235Z       "archive_url": "https://api.github.com/repos/koj-co/koj/{archive_format}{/ref}",
2020-09-18T07:07:02.5052179Z       "downloads_url": "https://api.github.com/repos/koj-co/koj/downloads",
2020-09-18T07:07:02.5053461Z       "issues_url": "https://api.github.com/repos/koj-co/koj/issues{/number}",
2020-09-18T07:07:02.5054410Z       "pulls_url": "https://api.github.com/repos/koj-co/koj/pulls{/number}",
2020-09-18T07:07:02.5055184Z       "milestones_url": "https://api.github.com/repos/koj-co/koj/milestones{/number}",
2020-09-18T07:07:02.5056147Z       "notifications_url": "https://api.github.com/repos/koj-co/koj/notifications{?since,all,participating}",
2020-09-18T07:07:02.5057055Z       "labels_url": "https://api.github.com/repos/koj-co/koj/labels{/name}",
2020-09-18T07:07:02.5057786Z       "releases_url": "https://api.github.com/repos/koj-co/koj/releases{/id}",
2020-09-18T07:07:02.5058554Z       "deployments_url": "https://api.github.com/repos/koj-co/koj/deployments",
2020-09-18T07:07:02.5059560Z       "created_at": "2020-07-03T09:18:57Z",
2020-09-18T07:07:02.5060162Z       "updated_at": "2020-09-18T06:55:32Z",
2020-09-18T07:07:02.5060576Z       "pushed_at": "2020-09-18T07:06:31Z",
2020-09-18T07:07:02.5061094Z       "git_url": "git://github.com/koj-co/koj.git",
2020-09-18T07:07:02.5061669Z       "ssh_url": "git@github.com:koj-co/koj.git",
2020-09-18T07:07:02.5062724Z       "clone_url": "https://github.com/koj-co/koj.git",
2020-09-18T07:07:02.5063357Z       "svn_url": "https://github.com/koj-co/koj",
2020-09-18T07:07:02.5063757Z       "homepage": "https://koj.co",
2020-09-18T07:07:02.5064034Z       "size": 5166,
2020-09-18T07:07:02.5064281Z       "stargazers_count": 0,
2020-09-18T07:07:02.5064554Z       "watchers_count": 0,
2020-09-18T07:07:02.5064863Z       "language": "Svelte",
2020-09-18T07:07:02.5065122Z       "has_issues": true,
2020-09-18T07:07:02.5065377Z       "has_projects": false,
2020-09-18T07:07:02.5065651Z       "has_downloads": true,
2020-09-18T07:07:02.5065913Z       "has_wiki": false,
2020-09-18T07:07:02.5066316Z       "has_pages": false,
2020-09-18T07:07:02.5066717Z       "forks_count": 0,
2020-09-18T07:07:02.5066956Z       "mirror_url": null,
2020-09-18T07:07:02.5067631Z       "archived": false,
2020-09-18T07:07:02.5067895Z       "disabled": false,
2020-09-18T07:07:02.5068160Z       "open_issues_count": 2,
2020-09-18T07:07:02.5068410Z       "license": {
2020-09-18T07:07:02.5068798Z         "key": "other",
2020-09-18T07:07:02.5069220Z         "name": "Other",
2020-09-18T07:07:02.5069483Z         "spdx_id": "NOASSERTION",
2020-09-18T07:07:02.5069750Z         "url": null,
2020-09-18T07:07:02.5070039Z         "node_id": "MDc6TGljZW5zZTA="
2020-09-18T07:07:02.5070313Z       },
2020-09-18T07:07:02.5070511Z       "forks": 0,
2020-09-18T07:07:02.5070736Z       "open_issues": 2,
2020-09-18T07:07:02.5070976Z       "watchers": 0,
2020-09-18T07:07:02.5071244Z       "default_branch": "master"
2020-09-18T07:07:02.5071479Z     }
2020-09-18T07:07:02.5071650Z   },
2020-09-18T07:07:02.5071991Z   "_links": {
2020-09-18T07:07:02.5072415Z     "self": {
2020-09-18T07:07:02.5072992Z       "href": "https://api.github.com/repos/koj-co/koj/pulls/195"
2020-09-18T07:07:02.5073356Z     },
2020-09-18T07:07:02.5073539Z     "html": {
2020-09-18T07:07:02.5074009Z       "href": "https://github.com/koj-co/koj/pull/195"
2020-09-18T07:07:02.5074706Z     },
2020-09-18T07:07:02.5074884Z     "issue": {
2020-09-18T07:07:02.5075409Z       "href": "https://api.github.com/repos/koj-co/koj/issues/195"
2020-09-18T07:07:02.5075771Z     },
2020-09-18T07:07:02.5075959Z     "comments": {
2020-09-18T07:07:02.5076535Z       "href": "https://api.github.com/repos/koj-co/koj/issues/195/comments"
2020-09-18T07:07:02.5077023Z     },
2020-09-18T07:07:02.5077409Z     "review_comments": {
2020-09-18T07:07:02.5078023Z       "href": "https://api.github.com/repos/koj-co/koj/pulls/195/comments"
2020-09-18T07:07:02.5078403Z     },
2020-09-18T07:07:02.5078592Z     "review_comment": {
2020-09-18T07:07:02.5079607Z       "href": "https://api.github.com/repos/koj-co/koj/pulls/comments{/number}"
2020-09-18T07:07:02.5080035Z     },
2020-09-18T07:07:02.5080236Z     "commits": {
2020-09-18T07:07:02.5080841Z       "href": "https://api.github.com/repos/koj-co/koj/pulls/195/commits"
2020-09-18T07:07:02.5081253Z     },
2020-09-18T07:07:02.5081458Z     "statuses": {
2020-09-18T07:07:02.5082818Z       "href": "https://api.github.com/repos/koj-co/koj/statuses/7c416e768a72f0dc78a4a0e095a7469d99b956ff"
2020-09-18T07:07:02.5083339Z     }
2020-09-18T07:07:02.5083501Z   },
2020-09-18T07:07:02.5083771Z   "author_association": "COLLABORATOR",
2020-09-18T07:07:02.5084093Z   "active_lock_reason": null,
2020-09-18T07:07:02.5084341Z   "merged": false,
2020-09-18T07:07:02.5084564Z   "mergeable": null,
2020-09-18T07:07:02.5085387Z   "rebaseable": null,
2020-09-18T07:07:02.5086098Z   "mergeable_state": "unknown",
2020-09-18T07:07:02.5086468Z   "merged_by": null,
2020-09-18T07:07:02.5086746Z   "comments": 0,
2020-09-18T07:07:02.5087040Z   "review_comments": 0,
2020-09-18T07:07:02.5087394Z   "maintainer_can_modify": false,
2020-09-18T07:07:02.5088224Z   "commits": 3,
2020-09-18T07:07:02.5088503Z   "additions": 3,
2020-09-18T07:07:02.5088785Z   "deletions": 4,
2020-09-18T07:07:02.5089085Z   "changed_files": 2
2020-09-18T07:07:02.5089333Z }
2020-09-18T07:07:02.5090097Z ##[endgroup]
2020-09-18T07:07:02.5157702Z Number opened for PR is 195
2020-09-18T07:07:02.5609574Z Found reviewers: "AnandChowdhary" and team reviewers: ""
2020-09-18T07:07:02.7210253Z Cleaning up orphan processes

I think that I've noticed that this is only happening when PULL_REQUEST_BRANCH is "production". When it's "master", it works perfectly.

vsoch commented 4 years ago

It looks like this is a private repository - the pull request is opened but you are saying the exit code is non zero? Have you tried 1) for a public repository, and 2) without reviewer? It would be good to figure out where the exit code is turning to non zero and inspect that. For example, it looks like you are a collaborator on the repo - are you able to assign yourself to manually review?

vsoch commented 4 years ago

It doesn't seem to be making it beyond here https://github.com/vsoch/pull-request-action/blob/master/pull-request.sh#L142. If you like, I can create a testing branch that doesn't silence the output there.

vsoch commented 4 years ago

Here you go! Could you please test https://github.com/vsoch/pull-request-action/tree/test-pr-wrapper? That should give us more output about what is happening.

    steps:
      - name: pull-request-action
        uses: vsoch/pull-request-action@test-pr-wrapper
AnandChowdhary commented 4 years ago

Okay, I've used the test-pr-wrapper branch in a public repository.

These are the logs: https://github.com/koj-co/template/runs/1133593292?check_suite_focus=true.

vsoch commented 4 years ago

Hmm that seems to have us taken backwards! Did you try 1.0.7 in a public repository to rule out an issue between public and private?

AnandChowdhary commented 4 years ago

Here you go! It seems like the problem is still there.

Full logs: https://github.com/koj-co/template/runs/1135167893?check_suite_focus=true

AnandChowdhary commented 4 years ago

As a third example, I changed the branch production to master, still broken.

However, I see "hotfix-example-2" in line 26: https://github.com/koj-co/template/runs/1135185477?check_suite_focus=true#step:3:26, when this is creating a PR for "hotfix-example-4". Does this tell us anything about what could be wrong?

vsoch commented 4 years ago

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?

AnandChowdhary commented 4 years ago

Yes, it's working without reviewer assignment: https://github.com/koj-co/template/runs/1135611371?check_suite_focus=true.

vsoch commented 4 years ago

Ah, so this is good information! First let's confirm that you are able to manually assign a reviewer to a PR. Next, I've updated the testing branch to give a little more verbose output: https://github.com/vsoch/pull-request-action/commit/22860a09e5c90e99e4a2e051677ccacf4f6fecdd so let's try the action with the reviewer there as we did before!

AnandChowdhary commented 4 years ago

Here's 22860a0: https://github.com/koj-co/template/runs/1135663923?check_suite_focus=true.

This is new:

No pull request title is set, will use default.
Pull request title is Update from hotfix-example-6
parse error: Invalid numeric literal at line 1, column 5

Thanks for all your hard work!

Edit: Seems like something to do with jq: https://github.com/stedolan/jq/issues/501

vsoch commented 4 years ago

Interesting! Let's grab all the input to the function and see if we can reproduce locally. I added a print statement https://github.com/vsoch/pull-request-action/commit/9952006dd8cd367e81ba61321ee1c49e58079e3e if you want to give it a re-run.

AnandChowdhary commented 4 years ago

Here it is: https://github.com/koj-co/template/actions/runs/262292794

There seems to be no difference in the output, maybe it's not reaching create_pull_request() now?

No pull request title is set, will use default.
Pull request title is Update from hotfix-example-7
parse error: Invalid numeric literal at line 1, column 5
vsoch commented 4 years ago

There is one more line, actually! A print of all the arguments, which happens inside the function (so we know that it hits it)

hotfix-example-7 production πŸš€ Opening a pull request for this branch Update from hotfix-example-7 false true  AnandChowdhary 

So this is good because we know it does enter the function, and likely the current issue is with the update that I did to the curl_wrapper. Could you please re-run that job with the same branch? I updated the function and added some more verbosity earlier. https://github.com/vsoch/pull-request-action/commit/3b11e02a3b36e0ba12be2c90fb5b58d29f268d76.

AnandChowdhary commented 4 years ago

Here you go! https://github.com/koj-co/template/actions/runs/263951457

vsoch commented 4 years ago

Thank you! So the bug was something that I introduced by not piping the call into stderr, this call:

PR=$(echo "${RESPONSE}" | jq --raw-output '.[] | .head.ref')

specifically RESPONSE included not just the response, but also a print of the command (and the invalid character at line 1 column 5 is in reference to here:

curl -fsSL -H -X[
  {

The space I believe. I've updated the branch, and this should get us further along to reveal (what I think) will ultimately be a permisisons error. Can you click re-run? And if it's a hassle, if you want to add me to the testing repo I can do the re-runs until it's fully working. I appreciate your patience and helping to debug this!

AnandChowdhary commented 4 years ago

No worries, I ran it here: https://github.com/koj-co/template/runs/1143456983?check_suite_focus=true. Interestingly, no failing check this time, and the PR is also correctly created (https://github.com/koj-co/template/pull/11) with me assigned as a reviewer, which is weird, right?

vsoch commented 4 years ago

Likely it means we fixed the bug! @saitho would you care to test the branch as well? We can do a release of it works better for you too.

saitho commented 4 years ago

Works for me as well.

vsoch commented 4 years ago

Released as 1.0.8. Thanks to you both!

AnandChowdhary commented 4 years ago

Hate to do this to you again @vsoch, but I'm getting the same error with v1.0.8 again. 😒

Example run: https://github.com/koj-co/template/pull/16/checks?check_run_id=1159824991

vsoch commented 4 years ago

Did you not report that the test-pr-wrapper branch worked? What has changed?

vsoch commented 4 years ago

okay well let's test this out again! I'm really not happy with how this function that another user contributed doesn't seem to be working at all. Here is a branch to try first. https://github.com/vsoch/pull-request-action/tree/test-assignees

AnandChowdhary commented 4 years ago

Did you not report that the test-pr-wrapper branch worked? What has changed?

Yes, that branch was working perfectly. I just pushed a new branch today and not sure why I"m getting that error again.

Maybe it's easiest if I create a new testing repo where you can test. Let me get back to you with one!

AnandChowdhary commented 4 years ago

This is the repo: https://github.com/AnandChowdhary/vsoch-pull-request-action-41, and I've also added you as a collaborator (you'll get an email).

Passing check using v1.0.8: https://github.com/AnandChowdhary/vsoch-pull-request-action-41/runs/1160148365?check_suite_focus=true, but the PR is not created:

curl: (22) The requested URL returned error: 422 Unprocessable Entity
Error 0 creating PR: 
==========================================================================
END: Finished
vsoch commented 4 years ago

Thank you! I'll get started on debugging this!

vsoch commented 4 years ago

here is the issue:

{'message': 'Review cannot be requested from pull request author.',
 'documentation_url': 'https://docs.github.com/rest/reference/pulls#request-reviewers-for-a-pull-request'}
AnandChowdhary commented 4 years ago

Aaah, very interesting! Do you think it makes sense to add a condition that if the branch author is the reviewer, skip adding the reviewer? I'm sure it would happen frequently that a CODEOWNER is also the committer.

vsoch commented 4 years ago

I think we probably just want better error output, I've re-written the script in Python to make it easier too, am testing now.