Skip to content
This repository was archived by the owner on Jul 1, 2025. It is now read-only.

Commit b5103ef

Browse files
committed
Example of commenting on an issue
1 parent 724669d commit b5103ef

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,16 @@ $issue->setTester(1234);
5858
$issue->addAttachment('/path/to/some/file.md');
5959

6060
$addedIssue = $project->addIssue($issue);
61+
```
62+
63+
### Comment on an issue
64+
65+
```php
66+
$client = new Manavo\DoneDone\Client('team_name', 'username', 'password/api_token');
67+
$issue = $client->project(29881)->issue(16);
68+
69+
$comment = new \Manavo\DoneDone\Comment();
70+
$comment->setMessage('I am commenting!!!');
71+
72+
$addedComment = $issue->addComment($comment);
6173
```

0 commit comments

Comments
 (0)