-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
Problem
When a PR is deleted (not declined) in Bitbucket Server, it sends a pr-deleted
event. Atlantis discards this event and keeps the lock. I believe this can be handled like pr-declined
.
Details
Version: Bitbucket Server v5.11.1
- More event payloads from Atlassian are here.
pr-deleted payload
{
"eventKey": "pr:deleted",
"date": "2017-09-19T11:16:17+1000",
"actor": {
"name": "admin",
"emailAddress": "admin@example.com",
"id": 1,
"displayName": "Administrator",
"active": true,
"slug": "admin",
"type": "NORMAL"
},
"pullRequest": {
"id": 10,
"version": 3,
"title": "Commit message",
"state": "OPEN",
"open": true,
"closed": false,
"createdDate": 1505783668760,
"updatedDate": 1505783750704,
"fromRef": {
"id": "refs/heads/decline-me",
"displayId": "decline-me",
"latestCommit": "2d9fb6b9a46eafb1dcef7b008d1a429d45ca742c",
"repository": {
"slug": "repository",
"id": 84,
"name": "repository",
"scmId": "git",
"state": "AVAILABLE",
"statusMessage": "Available",
"forkable": true,
"project": {
"key": "PROJ",
"id": 84,
"name": "project",
"public": false,
"type": "NORMAL"
},
"public": false
}
},
"toRef": {
"id": "refs/heads/master",
"displayId": "master",
"latestCommit": "7e48f426f0a6e47c5b5e862c31be6ca965f82c9c",
"repository": {
"slug": "repository",
"id": 84,
"name": "repository",
"scmId": "git",
"state": "AVAILABLE",
"statusMessage": "Available",
"forkable": true,
"project": {
"key": "PROJ",
"id": 84,
"name": "project",
"public": false,
"type": "NORMAL"
},
"public": false
}
},
"locked": false,
"author": {
"user": {
"name": "admin",
"emailAddress": "admin@example.com",
"id": 1,
"displayName": "Administrator",
"active": true,
"slug": "admin",
"type": "NORMAL"
},
"role": "AUTHOR",
"approved": false,
"status": "UNAPPROVED"
},
"reviewers": [
{
"user": {
"name": "user",
"emailAddress": "user@example.com",
"id": 2,
"displayName": "User",
"active": true,
"slug": "user",
"type": "NORMAL"
},
"role": "REVIEWER",
"approved": false,
"status": "UNAPPROVED"
}
],
"participants": []
}
}