runhermes/hermes

Closing Interaction between Pull Request and Todo

Opened this issue · 0 comments

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

  1. User opens a PR containing a link to a Basecamp TODO in the description:
    1. It should add a comment in the Basecamp TODO containing a link back to the PR and stating the following:
      1. TODO is open, then it will completed by the PR
      2. TODO is completed/archived, then it just specifies that is being linked from the PR
    2. A new comment should be added back to the PR specifying the actions that will happen once the PR is merged:
      1. TODO is open, then merging the PR/MR should complete the TODO
      2. TODO is completed/archive, nothing happens or a another comment is sent
  2. Once PR is merged then:
    1. TODO is open, add a comment stating in it stating that the PR has been merged and complete the TODO
    2. TODO is close, add a comment in it stating that the PR has been merged
  3. If PR is closed, then add a comment stating that the PR has been closed
  4. 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:

  1. If PR is merged, then a comment should be added to the TODO and completed if TODO is opened
  2. if PR is opened, then the same rules as the applied as above
  3. If PR is closed, then add a comment to the TODO linking back to the PR and saying that the PR is closed

Tasks: