README.mdView |
---|
16 | 16 | text: string? |
17 | 17 | } |
18 | 18 | ``` |
19 | 19 | |
20 | | -#### type: issue-edit |
| 20 | +#### issue edits |
21 | 21 | |
22 | | -An edit to an issue. Only considered valid if its author is the author of the |
| 22 | +Edits to an issue may be done by any ssb message type. For example, you can |
| 23 | +make a post that updates an issue, or push a git commit that updates an issue. |
| 24 | +If the message does not have any content other than to update the issue, then |
| 25 | +the type may be `issue-edit`. |
| 26 | + |
| 27 | +An issue edit is only considered valid if its author is the author of the |
23 | 28 | issue (`issue.author`) or of the project of the issue (`issue.projectAuthor`). |
24 | 29 | |
25 | 30 | ```js |
26 | 31 | { |
27 | | - type: 'issue-edit', |
28 | | - issue: IssueRef, |
29 | | - open: boolean?, |
30 | | - title: string? |
| 32 | + type: 'issue-edit'|'post'|'git-update', |
| 33 | + issues: [{ |
| 34 | + link: IssueRef, |
| 35 | + open: boolean, |
| 36 | + }] |
31 | 37 | } |
32 | 38 | ``` |
33 | 39 | |
34 | 40 | ## API |