-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
The pulls API returns an auto_merge
field which is currently not available in the PullRequest
struct.
When auto-merge is enabled for a Pull-Request the returned auto_merge
field looks like:
"auto_merge": {
"enabled_by": {
"login": "fho",
"id": 514535,
"node_id": "MDQ6VXNlcjUxNDUzNQ==",
"avatar_url": "https://avatars.githubusercontent.com/u/514535?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/fho",
"html_url": "https://github.com/fho",
"followers_url": "https://api.github.com/users/fho/followers",
"following_url": "https://api.github.com/users/fho/following{/other_user}",
"gists_url": "https://api.github.com/users/fho/gists{/gist_id}",
"starred_url": "https://api.github.com/users/fho/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fho/subscriptions",
"organizations_url": "https://api.github.com/users/fho/orgs",
"repos_url": "https://api.github.com/users/fho/repos",
"events_url": "https://api.github.com/users/fho/events{/privacy}",
"received_events_url": "https://api.github.com/users/fho/received_events",
"type": "User",
"site_admin": false
},
"merge_method": "rebase",
"commit_title": "",
"commit_message": ""
},
It would be great if go-github could parse this field and make it accessible.
gmlewis, kurtmc and simongottschlag