Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

Label draft PRs appropriately #20

Open
lleger opened this issue Dec 13, 2018 · 4 comments
Open

Label draft PRs appropriately #20

lleger opened this issue Dec 13, 2018 · 4 comments
Labels

Comments

@lleger
Copy link
Member

lleger commented Dec 13, 2018

When a PR is opened that starts with the prefix [WIP], instead of tagging it needs-review, tag it as in-progress.

@lleger lleger added the feature label Dec 13, 2018
@lleger
Copy link
Member Author

lleger commented Feb 15, 2019

@lleger
Copy link
Member Author

lleger commented Feb 18, 2019

When draft PRs are opened, they get a "draft": true in the JSON payload. When we detect that, we should label the PR as "in-progress" instead of "needs-review".

Example payload

{
 "action": "opened",
 "number": 150,
 "pull_request": {
   "url": "https://api.github.com/repos/newaperio/connectedcare-api/pulls/150",
   "id": 253782536,
   "node_id": "MDExOlB1bGxSZXF1ZXN0MjUzNzgyNTM2",
   "html_url": "https://github.com/newaperio/connectedcare-api/pull/150",
   "diff_url": "https://github.com/newaperio/connectedcare-api/pull/150.diff",
   "patch_url": "https://github.com/newaperio/connectedcare-api/pull/150.patch",
   "issue_url": "https://api.github.com/repos/newaperio/connectedcare-api/issues/150",
   "number": 150,
   "state": "open",
   "locked": false,
   "title": "File uploads",
   "user": {
     "login": "lleger",
     "id": 52359,
     "node_id": "MDQ6VXNlcjUyMzU5",
     "avatar_url": "https://avatars3.githubusercontent.com/u/52359?v=4",
     "gravatar_id": "",
     "url": "https://api.github.com/users/lleger",
     "html_url": "https://github.com/lleger",
     "followers_url": "https://api.github.com/users/lleger/followers",
     "following_url": "https://api.github.com/users/lleger/following{/other_user}",
     "gists_url": "https://api.github.com/users/lleger/gists{/gist_id}",
     "starred_url": "https://api.github.com/users/lleger/starred{/owner}{/repo}",
     "subscriptions_url": "https://api.github.com/users/lleger/subscriptions",
     "organizations_url": "https://api.github.com/users/lleger/orgs",
     "repos_url": "https://api.github.com/users/lleger/repos",
     "events_url": "https://api.github.com/users/lleger/events{/privacy}",
     "received_events_url": "https://api.github.com/users/lleger/received_events",
     "type": "User",
     "site_admin": false
   },
   "body": "TODO:\r\n\r\n- [ ] Update documentation\r\n- [ ] Add GraphQL + tests for users",
   "created_at": "2019-02-18T04:51:57Z",
   "updated_at": "2019-02-18T04:51:57Z",
   "closed_at": null,
   "merged_at": null,
   "merge_commit_sha": null,
   "assignee": null,
   "assignees": [

   ],
   "requested_reviewers": [

   ],
   "requested_teams": [

   ],
   "labels": [

   ],
   "milestone": null,
   "commits_url": "https://api.github.com/repos/newaperio/connectedcare-api/pulls/150/commits",
   "review_comments_url": "https://api.github.com/repos/newaperio/connectedcare-api/pulls/150/comments",
   "review_comment_url": "https://api.github.com/repos/newaperio/connectedcare-api/pulls/comments{/number}",
   "comments_url": "https://api.github.com/repos/newaperio/connectedcare-api/issues/150/comments",
   "statuses_url": "https://api.github.com/repos/newaperio/connectedcare-api/statuses/5f1a0adeecd50f7ebd7b407efe7d610b6cc14111",
   "head": {
     "label": "newaperio:lleger-file-uploads",
     "ref": "lleger-file-uploads",
     "sha": "5f1a0adeecd50f7ebd7b407efe7d610b6cc14111",
     "user": {
       "login": "newaperio",
       "id": 319273,
       "node_id": "MDEyOk9yZ2FuaXphdGlvbjMxOTI3Mw==",
       "avatar_url": "https://avatars1.githubusercontent.com/u/319273?v=4",
       "gravatar_id": "",
       "url": "https://api.github.com/users/newaperio",
       "html_url": "https://github.com/newaperio",
       "followers_url": "https://api.github.com/users/newaperio/followers",
       "following_url": "https://api.github.com/users/newaperio/following{/other_user}",
       "gists_url": "https://api.github.com/users/newaperio/gists{/gist_id}",
       "starred_url": "https://api.github.com/users/newaperio/starred{/owner}{/repo}",
       "subscriptions_url": "https://api.github.com/users/newaperio/subscriptions",
       "organizations_url": "https://api.github.com/users/newaperio/orgs",
       "repos_url": "https://api.github.com/users/newaperio/repos",
       "events_url": "https://api.github.com/users/newaperio/events{/privacy}",
       "received_events_url": "https://api.github.com/users/newaperio/received_events",
       "type": "Organization",
       "site_admin": false
     },
     "repo": {
       "id": 146642765,
       "node_id": "MDEwOlJlcG9zaXRvcnkxNDY2NDI3NjU=",
       "name": "connectedcare-api",
       "full_name": "newaperio/connectedcare-api",
       "private": true,
       "owner": {
         "login": "newaperio",
         "id": 319273,
         "node_id": "MDEyOk9yZ2FuaXphdGlvbjMxOTI3Mw==",
         "avatar_url": "https://avatars1.githubusercontent.com/u/319273?v=4",
         "gravatar_id": "",
         "url": "https://api.github.com/users/newaperio",
         "html_url": "https://github.com/newaperio",
         "followers_url": "https://api.github.com/users/newaperio/followers",
         "following_url": "https://api.github.com/users/newaperio/following{/other_user}",
         "gists_url": "https://api.github.com/users/newaperio/gists{/gist_id}",
         "starred_url": "https://api.github.com/users/newaperio/starred{/owner}{/repo}",
         "subscriptions_url": "https://api.github.com/users/newaperio/subscriptions",
         "organizations_url": "https://api.github.com/users/newaperio/orgs",
         "repos_url": "https://api.github.com/users/newaperio/repos",
         "events_url": "https://api.github.com/users/newaperio/events{/privacy}",
         "received_events_url": "https://api.github.com/users/newaperio/received_events",
         "type": "Organization",
         "site_admin": false
       },
       "html_url": "https://github.com/newaperio/connectedcare-api",
       "description": "Elixir/Phoenix web API for Connected Care.",
       "fork": false,
       "url": "https://api.github.com/repos/newaperio/connectedcare-api",
       "forks_url": "https://api.github.com/repos/newaperio/connectedcare-api/forks",
       "keys_url": "https://api.github.com/repos/newaperio/connectedcare-api/keys{/key_id}",
       "collaborators_url": "https://api.github.com/repos/newaperio/connectedcare-api/collaborators{/collaborator}",
       "teams_url": "https://api.github.com/repos/newaperio/connectedcare-api/teams",
       "hooks_url": "https://api.github.com/repos/newaperio/connectedcare-api/hooks",
       "issue_events_url": "https://api.github.com/repos/newaperio/connectedcare-api/issues/events{/number}",
       "events_url": "https://api.github.com/repos/newaperio/connectedcare-api/events",
       "assignees_url": "https://api.github.com/repos/newaperio/connectedcare-api/assignees{/user}",
       "branches_url": "https://api.github.com/repos/newaperio/connectedcare-api/branches{/branch}",
       "tags_url": "https://api.github.com/repos/newaperio/connectedcare-api/tags",
       "blobs_url": "https://api.github.com/repos/newaperio/connectedcare-api/git/blobs{/sha}",
       "git_tags_url": "https://api.github.com/repos/newaperio/connectedcare-api/git/tags{/sha}",
       "git_refs_url": "https://api.github.com/repos/newaperio/connectedcare-api/git/refs{/sha}",
       "trees_url": "https://api.github.com/repos/newaperio/connectedcare-api/git/trees{/sha}",
       "statuses_url": "https://api.github.com/repos/newaperio/connectedcare-api/statuses/{sha}",
       "languages_url": "https://api.github.com/repos/newaperio/connectedcare-api/languages",
       "stargazers_url": "https://api.github.com/repos/newaperio/connectedcare-api/stargazers",
       "contributors_url": "https://api.github.com/repos/newaperio/connectedcare-api/contributors",
       "subscribers_url": "https://api.github.com/repos/newaperio/connectedcare-api/subscribers",
       "subscription_url": "https://api.github.com/repos/newaperio/connectedcare-api/subscription",
       "commits_url": "https://api.github.com/repos/newaperio/connectedcare-api/commits{/sha}",
       "git_commits_url": "https://api.github.com/repos/newaperio/connectedcare-api/git/commits{/sha}",
       "comments_url": "https://api.github.com/repos/newaperio/connectedcare-api/comments{/number}",
       "issue_comment_url": "https://api.github.com/repos/newaperio/connectedcare-api/issues/comments{/number}",
       "contents_url": "https://api.github.com/repos/newaperio/connectedcare-api/contents/{+path}",
       "compare_url": "https://api.github.com/repos/newaperio/connectedcare-api/compare/{base}...{head}",
       "merges_url": "https://api.github.com/repos/newaperio/connectedcare-api/merges",
       "archive_url": "https://api.github.com/repos/newaperio/connectedcare-api/{archive_format}{/ref}",
       "downloads_url": "https://api.github.com/repos/newaperio/connectedcare-api/downloads",
       "issues_url": "https://api.github.com/repos/newaperio/connectedcare-api/issues{/number}",
       "pulls_url": "https://api.github.com/repos/newaperio/connectedcare-api/pulls{/number}",
       "milestones_url": "https://api.github.com/repos/newaperio/connectedcare-api/milestones{/number}",
       "notifications_url": "https://api.github.com/repos/newaperio/connectedcare-api/notifications{?since,all,participating}",
       "labels_url": "https://api.github.com/repos/newaperio/connectedcare-api/labels{/name}",
       "releases_url": "https://api.github.com/repos/newaperio/connectedcare-api/releases{/id}",
       "deployments_url": "https://api.github.com/repos/newaperio/connectedcare-api/deployments",
       "created_at": "2018-08-29T18:36:15Z",
       "updated_at": "2019-02-14T22:16:41Z",
       "pushed_at": "2019-02-18T04:51:13Z",
       "git_url": "git://github.com/newaperio/connectedcare-api.git",
       "ssh_url": "[email protected]:newaperio/connectedcare-api.git",
       "clone_url": "https://github.com/newaperio/connectedcare-api.git",
       "svn_url": "https://github.com/newaperio/connectedcare-api",
       "homepage": "",
       "size": 428,
       "stargazers_count": 0,
       "watchers_count": 0,
       "language": "Elixir",
       "has_issues": true,
       "has_projects": true,
       "has_downloads": true,
       "has_wiki": true,
       "has_pages": false,
       "forks_count": 0,
       "mirror_url": null,
       "archived": false,
       "open_issues_count": 33,
       "license": null,
       "forks": 0,
       "open_issues": 33,
       "watchers": 0,
       "default_branch": "master"
     }
   },
   "base": {
     "label": "newaperio:master",
     "ref": "master",
     "sha": "b9927bb87284e5c9614e137dab979a8e0b02b6c5",
     "user": {
       "login": "newaperio",
       "id": 319273,
       "node_id": "MDEyOk9yZ2FuaXphdGlvbjMxOTI3Mw==",
       "avatar_url": "https://avatars1.githubusercontent.com/u/319273?v=4",
       "gravatar_id": "",
       "url": "https://api.github.com/users/newaperio",
       "html_url": "https://github.com/newaperio",
       "followers_url": "https://api.github.com/users/newaperio/followers",
       "following_url": "https://api.github.com/users/newaperio/following{/other_user}",
       "gists_url": "https://api.github.com/users/newaperio/gists{/gist_id}",
       "starred_url": "https://api.github.com/users/newaperio/starred{/owner}{/repo}",
       "subscriptions_url": "https://api.github.com/users/newaperio/subscriptions",
       "organizations_url": "https://api.github.com/users/newaperio/orgs",
       "repos_url": "https://api.github.com/users/newaperio/repos",
       "events_url": "https://api.github.com/users/newaperio/events{/privacy}",
       "received_events_url": "https://api.github.com/users/newaperio/received_events",
       "type": "Organization",
       "site_admin": false
     },
     "repo": {
       "id": 146642765,
       "node_id": "MDEwOlJlcG9zaXRvcnkxNDY2NDI3NjU=",
       "name": "connectedcare-api",
       "full_name": "newaperio/connectedcare-api",
       "private": true,
       "owner": {
         "login": "newaperio",
         "id": 319273,
         "node_id": "MDEyOk9yZ2FuaXphdGlvbjMxOTI3Mw==",
         "avatar_url": "https://avatars1.githubusercontent.com/u/319273?v=4",
         "gravatar_id": "",
         "url": "https://api.github.com/users/newaperio",
         "html_url": "https://github.com/newaperio",
         "followers_url": "https://api.github.com/users/newaperio/followers",
         "following_url": "https://api.github.com/users/newaperio/following{/other_user}",
         "gists_url": "https://api.github.com/users/newaperio/gists{/gist_id}",
         "starred_url": "https://api.github.com/users/newaperio/starred{/owner}{/repo}",
         "subscriptions_url": "https://api.github.com/users/newaperio/subscriptions",
         "organizations_url": "https://api.github.com/users/newaperio/orgs",
         "repos_url": "https://api.github.com/users/newaperio/repos",
         "events_url": "https://api.github.com/users/newaperio/events{/privacy}",
         "received_events_url": "https://api.github.com/users/newaperio/received_events",
         "type": "Organization",
         "site_admin": false
       },
       "html_url": "https://github.com/newaperio/connectedcare-api",
       "description": "Elixir/Phoenix web API for Connected Care.",
       "fork": false,
       "url": "https://api.github.com/repos/newaperio/connectedcare-api",
       "forks_url": "https://api.github.com/repos/newaperio/connectedcare-api/forks",
       "keys_url": "https://api.github.com/repos/newaperio/connectedcare-api/keys{/key_id}",
       "collaborators_url": "https://api.github.com/repos/newaperio/connectedcare-api/collaborators{/collaborator}",
       "teams_url": "https://api.github.com/repos/newaperio/connectedcare-api/teams",
       "hooks_url": "https://api.github.com/repos/newaperio/connectedcare-api/hooks",
       "issue_events_url": "https://api.github.com/repos/newaperio/connectedcare-api/issues/events{/number}",
       "events_url": "https://api.github.com/repos/newaperio/connectedcare-api/events",
       "assignees_url": "https://api.github.com/repos/newaperio/connectedcare-api/assignees{/user}",
       "branches_url": "https://api.github.com/repos/newaperio/connectedcare-api/branches{/branch}",
       "tags_url": "https://api.github.com/repos/newaperio/connectedcare-api/tags",
       "blobs_url": "https://api.github.com/repos/newaperio/connectedcare-api/git/blobs{/sha}",
       "git_tags_url": "https://api.github.com/repos/newaperio/connectedcare-api/git/tags{/sha}",
       "git_refs_url": "https://api.github.com/repos/newaperio/connectedcare-api/git/refs{/sha}",
       "trees_url": "https://api.github.com/repos/newaperio/connectedcare-api/git/trees{/sha}",
       "statuses_url": "https://api.github.com/repos/newaperio/connectedcare-api/statuses/{sha}",
       "languages_url": "https://api.github.com/repos/newaperio/connectedcare-api/languages",
       "stargazers_url": "https://api.github.com/repos/newaperio/connectedcare-api/stargazers",
       "contributors_url": "https://api.github.com/repos/newaperio/connectedcare-api/contributors",
       "subscribers_url": "https://api.github.com/repos/newaperio/connectedcare-api/subscribers",
       "subscription_url": "https://api.github.com/repos/newaperio/connectedcare-api/subscription",
       "commits_url": "https://api.github.com/repos/newaperio/connectedcare-api/commits{/sha}",
       "git_commits_url": "https://api.github.com/repos/newaperio/connectedcare-api/git/commits{/sha}",
       "comments_url": "https://api.github.com/repos/newaperio/connectedcare-api/comments{/number}",
       "issue_comment_url": "https://api.github.com/repos/newaperio/connectedcare-api/issues/comments{/number}",
       "contents_url": "https://api.github.com/repos/newaperio/connectedcare-api/contents/{+path}",
       "compare_url": "https://api.github.com/repos/newaperio/connectedcare-api/compare/{base}...{head}",
       "merges_url": "https://api.github.com/repos/newaperio/connectedcare-api/merges",
       "archive_url": "https://api.github.com/repos/newaperio/connectedcare-api/{archive_format}{/ref}",
       "downloads_url": "https://api.github.com/repos/newaperio/connectedcare-api/downloads",
       "issues_url": "https://api.github.com/repos/newaperio/connectedcare-api/issues{/number}",
       "pulls_url": "https://api.github.com/repos/newaperio/connectedcare-api/pulls{/number}",
       "milestones_url": "https://api.github.com/repos/newaperio/connectedcare-api/milestones{/number}",
       "notifications_url": "https://api.github.com/repos/newaperio/connectedcare-api/notifications{?since,all,participating}",
       "labels_url": "https://api.github.com/repos/newaperio/connectedcare-api/labels{/name}",
       "releases_url": "https://api.github.com/repos/newaperio/connectedcare-api/releases{/id}",
       "deployments_url": "https://api.github.com/repos/newaperio/connectedcare-api/deployments",
       "created_at": "2018-08-29T18:36:15Z",
       "updated_at": "2019-02-14T22:16:41Z",
       "pushed_at": "2019-02-18T04:51:13Z",
       "git_url": "git://github.com/newaperio/connectedcare-api.git",
       "ssh_url": "[email protected]:newaperio/connectedcare-api.git",
       "clone_url": "https://github.com/newaperio/connectedcare-api.git",
       "svn_url": "https://github.com/newaperio/connectedcare-api",
       "homepage": "",
       "size": 428,
       "stargazers_count": 0,
       "watchers_count": 0,
       "language": "Elixir",
       "has_issues": true,
       "has_projects": true,
       "has_downloads": true,
       "has_wiki": true,
       "has_pages": false,
       "forks_count": 0,
       "mirror_url": null,
       "archived": false,
       "open_issues_count": 33,
       "license": null,
       "forks": 0,
       "open_issues": 33,
       "watchers": 0,
       "default_branch": "master"
     }
   },
   "_links": {
     "self": {
       "href": "https://api.github.com/repos/newaperio/connectedcare-api/pulls/150"
     },
     "html": {
       "href": "https://github.com/newaperio/connectedcare-api/pull/150"
     },
     "issue": {
       "href": "https://api.github.com/repos/newaperio/connectedcare-api/issues/150"
     },
     "comments": {
       "href": "https://api.github.com/repos/newaperio/connectedcare-api/issues/150/comments"
     },
     "review_comments": {
       "href": "https://api.github.com/repos/newaperio/connectedcare-api/pulls/150/comments"
     },
     "review_comment": {
       "href": "https://api.github.com/repos/newaperio/connectedcare-api/pulls/comments{/number}"
     },
     "commits": {
       "href": "https://api.github.com/repos/newaperio/connectedcare-api/pulls/150/commits"
     },
     "statuses": {
       "href": "https://api.github.com/repos/newaperio/connectedcare-api/statuses/5f1a0adeecd50f7ebd7b407efe7d610b6cc14111"
     }
   },
   "author_association": "CONTRIBUTOR",
   "draft": true,
   "merged": false,
   "mergeable": null,
   "rebaseable": null,
   "mergeable_state": "draft",
   "merged_by": null,
   "comments": 0,
   "review_comments": 0,
   "maintainer_can_modify": false,
   "commits": 2,
   "additions": 464,
   "deletions": 503,
   "changed_files": 10
 },
 "repository": {
   "id": 146642765,
   "node_id": "MDEwOlJlcG9zaXRvcnkxNDY2NDI3NjU=",
   "name": "connectedcare-api",
   "full_name": "newaperio/connectedcare-api",
   "private": true,
   "owner": {
     "login": "newaperio",
     "id": 319273,
     "node_id": "MDEyOk9yZ2FuaXphdGlvbjMxOTI3Mw==",
     "avatar_url": "https://avatars1.githubusercontent.com/u/319273?v=4",
     "gravatar_id": "",
     "url": "https://api.github.com/users/newaperio",
     "html_url": "https://github.com/newaperio",
     "followers_url": "https://api.github.com/users/newaperio/followers",
     "following_url": "https://api.github.com/users/newaperio/following{/other_user}",
     "gists_url": "https://api.github.com/users/newaperio/gists{/gist_id}",
     "starred_url": "https://api.github.com/users/newaperio/starred{/owner}{/repo}",
     "subscriptions_url": "https://api.github.com/users/newaperio/subscriptions",
     "organizations_url": "https://api.github.com/users/newaperio/orgs",
     "repos_url": "https://api.github.com/users/newaperio/repos",
     "events_url": "https://api.github.com/users/newaperio/events{/privacy}",
     "received_events_url": "https://api.github.com/users/newaperio/received_events",
     "type": "Organization",
     "site_admin": false
   },
   "html_url": "https://github.com/newaperio/connectedcare-api",
   "description": "Elixir/Phoenix web API for Connected Care.",
   "fork": false,
   "url": "https://api.github.com/repos/newaperio/connectedcare-api",
   "forks_url": "https://api.github.com/repos/newaperio/connectedcare-api/forks",
   "keys_url": "https://api.github.com/repos/newaperio/connectedcare-api/keys{/key_id}",
   "collaborators_url": "https://api.github.com/repos/newaperio/connectedcare-api/collaborators{/collaborator}",
   "teams_url": "https://api.github.com/repos/newaperio/connectedcare-api/teams",
   "hooks_url": "https://api.github.com/repos/newaperio/connectedcare-api/hooks",
   "issue_events_url": "https://api.github.com/repos/newaperio/connectedcare-api/issues/events{/number}",
   "events_url": "https://api.github.com/repos/newaperio/connectedcare-api/events",
   "assignees_url": "https://api.github.com/repos/newaperio/connectedcare-api/assignees{/user}",
   "branches_url": "https://api.github.com/repos/newaperio/connectedcare-api/branches{/branch}",
   "tags_url": "https://api.github.com/repos/newaperio/connectedcare-api/tags",
   "blobs_url": "https://api.github.com/repos/newaperio/connectedcare-api/git/blobs{/sha}",
   "git_tags_url": "https://api.github.com/repos/newaperio/connectedcare-api/git/tags{/sha}",
   "git_refs_url": "https://api.github.com/repos/newaperio/connectedcare-api/git/refs{/sha}",
   "trees_url": "https://api.github.com/repos/newaperio/connectedcare-api/git/trees{/sha}",
   "statuses_url": "https://api.github.com/repos/newaperio/connectedcare-api/statuses/{sha}",
   "languages_url": "https://api.github.com/repos/newaperio/connectedcare-api/languages",
   "stargazers_url": "https://api.github.com/repos/newaperio/connectedcare-api/stargazers",
   "contributors_url": "https://api.github.com/repos/newaperio/connectedcare-api/contributors",
   "subscribers_url": "https://api.github.com/repos/newaperio/connectedcare-api/subscribers",
   "subscription_url": "https://api.github.com/repos/newaperio/connectedcare-api/subscription",
   "commits_url": "https://api.github.com/repos/newaperio/connectedcare-api/commits{/sha}",
   "git_commits_url": "https://api.github.com/repos/newaperio/connectedcare-api/git/commits{/sha}",
   "comments_url": "https://api.github.com/repos/newaperio/connectedcare-api/comments{/number}",
   "issue_comment_url": "https://api.github.com/repos/newaperio/connectedcare-api/issues/comments{/number}",
   "contents_url": "https://api.github.com/repos/newaperio/connectedcare-api/contents/{+path}",
   "compare_url": "https://api.github.com/repos/newaperio/connectedcare-api/compare/{base}...{head}",
   "merges_url": "https://api.github.com/repos/newaperio/connectedcare-api/merges",
   "archive_url": "https://api.github.com/repos/newaperio/connectedcare-api/{archive_format}{/ref}",
   "downloads_url": "https://api.github.com/repos/newaperio/connectedcare-api/downloads",
   "issues_url": "https://api.github.com/repos/newaperio/connectedcare-api/issues{/number}",
   "pulls_url": "https://api.github.com/repos/newaperio/connectedcare-api/pulls{/number}",
   "milestones_url": "https://api.github.com/repos/newaperio/connectedcare-api/milestones{/number}",
   "notifications_url": "https://api.github.com/repos/newaperio/connectedcare-api/notifications{?since,all,participating}",
   "labels_url": "https://api.github.com/repos/newaperio/connectedcare-api/labels{/name}",
   "releases_url": "https://api.github.com/repos/newaperio/connectedcare-api/releases{/id}",
   "deployments_url": "https://api.github.com/repos/newaperio/connectedcare-api/deployments",
   "created_at": "2018-08-29T18:36:15Z",
   "updated_at": "2019-02-14T22:16:41Z",
   "pushed_at": "2019-02-18T04:51:13Z",
   "git_url": "git://github.com/newaperio/connectedcare-api.git",
   "ssh_url": "[email protected]:newaperio/connectedcare-api.git",
   "clone_url": "https://github.com/newaperio/connectedcare-api.git",
   "svn_url": "https://github.com/newaperio/connectedcare-api",
   "homepage": "",
   "size": 428,
   "stargazers_count": 0,
   "watchers_count": 0,
   "language": "Elixir",
   "has_issues": true,
   "has_projects": true,
   "has_downloads": true,
   "has_wiki": true,
   "has_pages": false,
   "forks_count": 0,
   "mirror_url": null,
   "archived": false,
   "open_issues_count": 33,
   "license": null,
   "forks": 0,
   "open_issues": 33,
   "watchers": 0,
   "default_branch": "master"
 },
 "organization": {
   "login": "newaperio",
   "id": 319273,
   "node_id": "MDEyOk9yZ2FuaXphdGlvbjMxOTI3Mw==",
   "url": "https://api.github.com/orgs/newaperio",
   "repos_url": "https://api.github.com/orgs/newaperio/repos",
   "events_url": "https://api.github.com/orgs/newaperio/events",
   "hooks_url": "https://api.github.com/orgs/newaperio/hooks",
   "issues_url": "https://api.github.com/orgs/newaperio/issues",
   "members_url": "https://api.github.com/orgs/newaperio/members{/member}",
   "public_members_url": "https://api.github.com/orgs/newaperio/public_members{/member}",
   "avatar_url": "https://avatars1.githubusercontent.com/u/319273?v=4",
   "description": null
 },
 "sender": {
   "login": "lleger",
   "id": 52359,
   "node_id": "MDQ6VXNlcjUyMzU5",
   "avatar_url": "https://avatars3.githubusercontent.com/u/52359?v=4",
   "gravatar_id": "",
   "url": "https://api.github.com/users/lleger",
   "html_url": "https://github.com/lleger",
   "followers_url": "https://api.github.com/users/lleger/followers",
   "following_url": "https://api.github.com/users/lleger/following{/other_user}",
   "gists_url": "https://api.github.com/users/lleger/gists{/gist_id}",
   "starred_url": "https://api.github.com/users/lleger/starred{/owner}{/repo}",
   "subscriptions_url": "https://api.github.com/users/lleger/subscriptions",
   "organizations_url": "https://api.github.com/users/lleger/orgs",
   "repos_url": "https://api.github.com/users/lleger/repos",
   "events_url": "https://api.github.com/users/lleger/events{/privacy}",
   "received_events_url": "https://api.github.com/users/lleger/received_events",
   "type": "User",
   "site_admin": false
 },
 "installation": {
   "id": 75801,
   "node_id": "MDIzOkludGVncmF0aW9uSW5zdGFsbGF0aW9uNzU4MDE="
 }
}

@lleger lleger changed the title [WIP] prefix for in-progress labels Label draft PRs appropriately Feb 18, 2019
@lleger
Copy link
Member Author

lleger commented Feb 18, 2019

Doesn't seem like GitHub sends a webhook when draft PRs are marked for review yet, so the best we can do for now is mark them with in-progress label.

@lleger
Copy link
Member Author

lleger commented Feb 20, 2019

We need to avoid re-labeling other than "in-progress" if it's still in draft. I.e., don't mark "ready-to-merge" if it's approved but still draft.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant