-
Notifications
You must be signed in to change notification settings - Fork 85
Closed
Labels
Milestone
Description
Problem
We need to modify the GitHub sync so that when we create or update the Task we:
- associate tasks without pull requests and with
status: "open"in theTaskListwhereinbox: true - associate tasks with pull requests and with
status: "open"in theTaskListwherepull_requests: true - associate task with
status: "closed"in theTaskListwheredone: trueandmodified_at < 30 days - archive task with
status: "closed"wheredone: trueandmodified_at >= 30 days, and nullify any association with aTaskList
In order to do this, we'll probably want to modify the GitHub.Sync.Issue.Task.Changeset to:
- See if there is a
GithubPullRequestfor the givenGithubIssue - Move the
TaskList |> Repo.get_bylogic into a separate function that takes the changeset and theGithubIssueand determines the right logic per the above - Pattern match against the
statusandmodified_attimestamps in order to either set thearchivedfield or set thetask_list_idassociation