Closing Interaction between Pull Request and Todo
Opened this issue · 0 comments
renehernandez commented
Linking a PR with a Basecamp TODO should require a keyword within the keywords of linking-a-pull-request-to-an-issue
This is a high level overview oh how a Pull Request (MR) and TODO should interact
- User opens a PR containing a link to a Basecamp TODO in the description:
- It should add a comment in the Basecamp TODO containing a link back to the PR and stating the following:
- TODO is open, then it will completed by the PR
- TODO is completed/archived, then it just specifies that is being linked from the PR
- A new comment should be added back to the PR specifying the actions that will happen once the PR is merged:
- TODO is open, then merging the PR/MR should complete the TODO
- TODO is completed/archive, nothing happens or a another comment is sent
- It should add a comment in the Basecamp TODO containing a link back to the PR and stating the following:
- Once PR is merged then:
- TODO is open, add a comment stating in it stating that the PR has been merged and complete the TODO
- TODO is close, add a comment in it stating that the PR has been merged
- If PR is closed, then add a comment stating that the PR has been closed
- If PR is reopened, then add a comment stating that the PR is reopened
If PR description is edited and a TODO's link with a keyword is added to the description, then the following actions should be applied:
- If PR is merged, then a comment should be added to the TODO and completed if TODO is opened
- if PR is opened, then the same rules as the applied as above
- If PR is closed, then add a comment to the TODO linking back to the PR and saying that the PR is closed
Tasks: