{"action":"created","issue":{"url":"https://api.github.com/repos/pullapprove/support/issues/46","repository_url":"https://api.github.com/repos/pullapprove/support","labels_url":"https://api.github.com/repos/pullapprove/support/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/pullapprove/support/issues/46/comments","events_url":"https://api.github.com/repos/pullapprove/support/issues/46/events","html_url":"https://github.com/pullapprove/support/issues/46","id":140369467,"number":46,"title":"Add ability to add/remove labels automatically","user":{"login":"Lascorbe","id":1515520,"avatar_url":"https://avatars.githubusercontent.com/u/1515520?v=3","gravatar_id":"","url":"https://api.github.com/users/Lascorbe","html_url":"https://github.com/Lascorbe","followers_url":"https://api.github.com/users/Lascorbe/followers","following_url":"https://api.github.com/users/Lascorbe/following{/other_user}","gists_url":"https://api.github.com/users/Lascorbe/gists{/gist_id}","starred_url":"https://api.github.com/users/Lascorbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lascorbe/subscriptions","organizations_url":"https://api.github.com/users/Lascorbe/orgs","repos_url":"https://api.github.com/users/Lascorbe/repos","events_url":"https://api.github.com/users/Lascorbe/events{/privacy}","received_events_url":"https://api.github.com/users/Lascorbe/received_events","type":"User","site_admin":false},"labels":[{"id":272172673,"url":"https://api.github.com/repos/pullapprove/support/labels/idea","name":"idea","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-03-12T10:06:59Z","updated_at":"2016-12-01T22:20:42Z","closed_at":null,"body":"I'd be great if we could specify labels to put on a PR before and after approval. So, for example, imagine you always put the label `CR-Pending` when you want your colleagues to review your PR, and as soon as it's approved, you remove the label and the label `CR-Approved` is put there instead.\n\nHere's how I think a `.pullapprove.yml` with this feature could look like:\n\n```\napprove_by_comment: true\napprove_regex: '^:\\+1:'\nreject_regex: '^:\\-1:'\nreject_value: -1\nreset_on_push: false\nreset_on_reopened: true\nauthor_approval: ignored\nreviewers:\n    -\n        name: QA\n        required: 1\n        members:\n            - qa_guy\n        labels:\n            pre_approval:\n                - QA-Pending\n                    color: bfd4f2\n            post_approval:\n                - QA-Approved ✓\n                    color: 207de5\n        conditions:\n            labels:\n                - QA-Review\n    -\n        name: Engineering\n        required: 2\n        members:\n            - one_random_guy\n            - other_random_guy\n            - another_random_guy\n        labels:\n            pre_approval_labels:\n                - CR-Pending\n                    color: bfe5bf\n            post_approval_labels:\n                - CR-Approved ✓\n                    color: 009800\n            remove_after_approval: true   # if this is true, it'll remove the labels setted on the `pre_approval` section after the PR has been approved\n```\n\nWhat do you think?\n"},"comment":{"url":"https://api.github.com/repos/pullapprove/support/issues/comments/264313670","html_url":"https://github.com/pullapprove/support/issues/46#issuecomment-264313670","issue_url":"https://api.github.com/repos/pullapprove/support/issues/46","id":264313670,"user":{"login":"duglin","id":1944671,"avatar_url":"https://avatars.githubusercontent.com/u/1944671?v=3","gravatar_id":"","url":"https://api.github.com/users/duglin","html_url":"https://github.com/duglin","followers_url":"https://api.github.com/users/duglin/followers","following_url":"https://api.github.com/users/duglin/following{/other_user}","gists_url":"https://api.github.com/users/duglin/gists{/gist_id}","starred_url":"https://api.github.com/users/duglin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duglin/subscriptions","organizations_url":"https://api.github.com/users/duglin/orgs","repos_url":"https://api.github.com/users/duglin/repos","events_url":"https://api.github.com/users/duglin/events{/privacy}","received_events_url":"https://api.github.com/users/duglin/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T22:20:42Z","updated_at":"2016-12-01T22:20:42Z","body":"To add to this... I'd really like it if PA could add a label based on how many LGTMs there are. For example, add a \"LGTM1\" label after the first.  Some people in our group want to run queries based on how many LGTMs there are on each PR.  Likewise, adding a label to indicate that its ready to be merged (meaning no conflicts or missing LGTMs) would be nice.\r\n\r\nNot to put any pressure on anyone :-)   but I'd prefer to not have to code up a bot myself to do this.  "}}
{"actor":{"display_login":"duglin"}}