Skip to content

Commit ae2c89d

Browse files
authored
Feature Refresh (#12)
1 parent d1079df commit ae2c89d

File tree

5 files changed

+96
-26
lines changed

5 files changed

+96
-26
lines changed

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Bug Report
2+
description: Report an Issue or Bug with the Package
3+
title: "[Bug]: "
4+
labels: ["bug"]
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
We're sorry to hear you have a problem. Can you help us solve it by providing the following details.
10+
- type: textarea
11+
id: what-happened
12+
attributes:
13+
label: What happened?
14+
description: What did you expect to happen?
15+
placeholder: I cannot currently do X thing because when I do, it breaks X thing.
16+
validations:
17+
required: true
18+
19+
- type: input
20+
id: package-version
21+
attributes:
22+
label: Package Version
23+
description: What version of our Package are you running? Please be as specific as possible
24+
placeholder: 2.0.0
25+
validations:
26+
required: true
27+
- type: input
28+
id: php-version
29+
attributes:
30+
label: PHP Version
31+
description: What version of PHP are you running? Please be as specific as possible
32+
placeholder: 8.2.0
33+
validations:
34+
required: true
35+
- type: input
36+
id: laravel-version
37+
attributes:
38+
label: Laravel Version
39+
description: What version of Laravel are you running? Please be as specific as possible
40+
placeholder: 9.0.0
41+
validations:
42+
required: true
43+
- type: dropdown
44+
id: operating-systems
45+
attributes:
46+
label: Which operating systems does with happen with?
47+
description: You may select more than one.
48+
multiple: true
49+
options:
50+
- macOS
51+
- Windows
52+
- Linux

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
blank_issues_enabled: false
22
contact_links:
3-
- name: Ask a question
4-
url: https://github.com/codebar-ag/laravel-microsoft-planner/issues/new
5-
about: Ask the community for help
6-
- name: Request a feature
7-
url: https://github.com/codebar-ag/laravel-microsoft-planner/issues/new
8-
about: Share ideas for new features
9-
- name: Report a bug
10-
url: https://github.com/codebar-ag/laravel-microsoft-planner/issues/new
11-
about: Report a reproducable bug
3+
- name: Questions & Feature Requests
4+
url: https://github.com/codebar-ag/laravel-microsoft-planner/issues/new
5+
about: Ask the community for help
6+
- name: Report a security issue
7+
url: https://github.com/codebar-ag/laravel-microsoft-planner/security/policy
8+
about: Learn how to notify us for sensitive bugs

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ ubuntu-latest, windows-latest ]
16-
php: [ 8.2 ]
16+
php: [ 8.2, 8.3 ]
1717
laravel: [ 10.* ]
1818
stability: [ prefer-lowest, prefer-stable ]
1919

README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,32 @@ use CodebarAg\LaravelMicrosoftPlanner\Http\Requests\Tasks\PatchTaskDetialsReques
7373
$connector = new MicrosoftPlannerConnector();
7474
$authenticator = $connector->getAccessToken();
7575
$connector->authenticate($authenticator);
76+
```
7677

77-
78+
```php
7879
// Get all tasks from a bucket
80+
7981
$tasksResponse = $connector->send(new GetBucketTasksRequest(bucketId: 'bucket-id'));
8082
$tasks = $tasksResponse->dto();
83+
```
8184

82-
85+
```php
8386
// Get a single task
87+
8488
$taskResponse = $connector->send(new GetTaskRequest(taskId: 'task-id'));
8589
$task = $taskResponse->dto();
90+
```
8691

92+
```php
8793
// Get a tasks details
94+
8895
$taskDetailsResponse = $connector->send(new GetTaskDetailsRequest(taskId: 'task-id'));
8996
$taskDetails = $taskDetailsResponse->dto();
97+
```
9098

99+
```php
91100
// Update a task
101+
92102
$updateTaskRequest = new PatchTaskRequest(taskId: 'task-id', etag: $task->eTag);
93103
$updateTaskRequest->body()->add('somedetail', 'somevalue');
94104

@@ -97,8 +107,11 @@ $updateTaskResponse = $connector->send($updateTaskRequest);
97107
if ($updatedTask->successful()) {
98108
// Do something
99109
}
110+
```
100111

112+
```php
101113
// Update a tasks details
114+
102115
$updateTaskDetailsRequest = new PatchTaskDetialsRequest(taskId: 'task-id', etag: $taskDetails->eTag);
103116
$updateTaskDetailsRequest->body()->add('somedetail', 'somevalue');
104117

@@ -120,12 +133,16 @@ CodebarAg\LaravelMicrosoftPlanner\Data\Checklist {
120133
+lastModifiedDateTime: "2021-08-31T13:00:00Z" // string
121134
+lastModifiedByUserId: "1234456" // string|null
122135
}
136+
```
123137

138+
```php
124139
CodebarAg\LaravelMicrosoftPlanner\Data\Note {
125140
+contentType: 'html' // string
126141
+content: '<p>Some content</p>' // string
127142
}
143+
```
128144

145+
```php
129146
CodebarAg\LaravelMicrosoftPlanner\Data\Reference {
130147
+alias: "test.pdf" // string
131148
+url: "https://something.here/in-this-file/test.pdf" // string
@@ -134,7 +151,9 @@ CodebarAg\LaravelMicrosoftPlanner\Data\Reference {
134151
+lastModifiedDateTime: "2021-08-31T13:00:00Z" // string
135152
+lastModifiedByUserId: "1234456" // string
136153
}
154+
```
137155

156+
```php
138157
CodebarAg\LaravelMicrosoftPlanner\Data\TaskDetails {
139158
+eTag: "W/"1238934jbdf89bfdkkjbr34g98hh98vhhcc="" // string
140159
+description: "Some Description" // string
@@ -144,7 +163,9 @@ CodebarAg\LaravelMicrosoftPlanner\Data\TaskDetails {
144163
+references: Illuminate\Support\Collection // Collection
145164
+checklist: Illuminate\Support\Collection // Collection
146165
}
166+
```
147167

168+
```php
148169
CodebarAg\LaravelMicrosoftPlanner\Data\Task {
149170
+eTag: "W/"JzEtVGFzsdfsdEBAQEBAQEBAQEBAQEBJcCc="" // string
150171
+planId: "aL8rSpzb_0-0IGcHql4P0ZcAG3_B" // string

composer.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@
1818
"require": {
1919
"php": "^8.1",
2020
"illuminate/contracts": "^10.0",
21-
"saloonphp/saloon": "^3.0",
22-
"spatie/laravel-data": "^3.9",
23-
"spatie/laravel-package-tools": "^1.14.0"
21+
"saloonphp/saloon": "^3.4",
22+
"spatie/laravel-data": "^3.11",
23+
"spatie/laravel-package-tools": "^1.16"
2424
},
2525
"require-dev": {
26-
"laravel/pint": "^1.0",
27-
"nunomaduro/collision": "^7.8",
28-
"nunomaduro/larastan": "^2.0.1",
29-
"orchestra/testbench": "^8.8",
30-
"pestphp/pest": "^2.20",
31-
"pestphp/pest-plugin-arch": "^2.0",
32-
"pestphp/pest-plugin-laravel": "^2.0",
33-
"phpstan/extension-installer": "^1.1",
34-
"phpstan/phpstan-deprecation-rules": "^1.0",
35-
"phpstan/phpstan-phpunit": "^1.0",
36-
"spatie/laravel-ray": "^1.26"
26+
"laravel/pint": "^1.13",
27+
"nunomaduro/collision": "^7.10",
28+
"nunomaduro/larastan": "^2.8",
29+
"orchestra/testbench": "^8.20",
30+
"pestphp/pest": "^2.31",
31+
"pestphp/pest-plugin-arch": "^2.6",
32+
"pestphp/pest-plugin-laravel": "^2.2",
33+
"phpstan/extension-installer": "^1.3",
34+
"phpstan/phpstan-deprecation-rules": "^1.1",
35+
"phpstan/phpstan-phpunit": "^1.3",
36+
"spatie/laravel-ray": "^1.33"
3737
},
3838
"autoload": {
3939
"psr-4": {

0 commit comments

Comments
 (0)