Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 2.0.0 🚀 #1401

Merged
merged 304 commits into from
Nov 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
304 commits
Select commit Hold shift + click to select a range
e1a771e
Update GitHub workflows
Ndiritu Sep 15, 2022
1557205
Update generated files with build 86136
Sep 15, 2022
b519ae1
Bump SDK version
Sep 15, 2022
2435e02
Merge pull request #995 from microsoftgraph/kiota/v1.0/pipelinebuild/…
SilasKenneth Sep 15, 2022
b445574
Update generated files with build 86465
Sep 20, 2022
eaf5397
Bump SDK version
Sep 20, 2022
55ceac4
Merge pull request #1001 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Sep 20, 2022
5e02991
Update generated files with build 87070
Sep 27, 2022
bfe50b8
Bump SDK version
Sep 27, 2022
964e828
Merge pull request #1012 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Sep 28, 2022
2bf0b6c
Update generated files with build 87606
Oct 4, 2022
f691803
Bump SDK version
Oct 4, 2022
cb23c29
Merge pull request #1020 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Oct 5, 2022
b5ef9bf
Update generated files with build 88471
Oct 11, 2022
191f54c
Merge pull request #1031 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Oct 12, 2022
6860182
Update generated files with build 89297
Oct 18, 2022
2ff9a47
Merge pull request #1037 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Oct 19, 2022
f9c6cd6
Update generated files with build 90107
Oct 25, 2022
cc38470
Merge pull request #1042 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Oct 25, 2022
81e4ec2
Update generated files with build 90149
Oct 25, 2022
d59f52a
Merge pull request #1046 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Oct 26, 2022
e170a0b
Update generated files with build 91121
Nov 1, 2022
b4ff32b
Bump SDK version
Nov 1, 2022
2359b0c
Merge pull request #1051 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Nov 1, 2022
642aecf
Bump graph core version
Ndiritu Nov 7, 2022
9ac5ade
Update generated files with build 93081
Nov 15, 2022
2d81697
Bump SDK version
Nov 15, 2022
081ec3c
Merge pull request #1058 from microsoftgraph/fix/graph-core-version
Ndiritu Nov 17, 2022
2b2a48b
Merge pull request #1068 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Nov 17, 2022
e45d3a4
Update generated files with build 94014
Nov 23, 2022
2f6d344
Merge pull request #1074 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Nov 23, 2022
0c9c48a
Update generated files with build 94810
Nov 29, 2022
68b20ed
Bump SDK version
Nov 29, 2022
dc0df10
Merge pull request #1082 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Nov 29, 2022
7c80fa4
Update generated files with build 96244
Dec 6, 2022
1587d4e
Merge pull request #1086 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Dec 6, 2022
e563250
Try bleedingEdge phpstan feature.
SilasKenneth Dec 6, 2022
dbf3424
Add Kiota Preview branch for validation.
SilasKenneth Dec 6, 2022
8afc6e2
Generated changes
SilasKenneth Dec 9, 2022
57c5242
Merge branch 'feat/kiota-preview' into fix/generation-issues
SilasKenneth Dec 9, 2022
60183db
Add kiota preview to PR validation.
SilasKenneth Dec 9, 2022
7df5358
Add decoy test folder.
SilasKenneth Dec 9, 2022
ef6bb71
Remove unused imports and replace Guid with String.
SilasKenneth Dec 9, 2022
d06352d
Merge pull request #1090 from microsoftgraph/fix/generation-issues
SilasKenneth Dec 13, 2022
7d7fbc6
Merge pull request #1088 from microsoftgraph/bleeding/edge
SilasKenneth Dec 13, 2022
fd263a6
Update generated files with build 99126
Dec 27, 2022
30130b4
Merge pull request #1099 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Dec 27, 2022
3e8a005
Update generated files with build 99733
Jan 3, 2023
8b1d04a
Merge pull request #1102 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Jan 4, 2023
3e44de8
Update generated files with build 102225
Jan 17, 2023
608c77a
Merge pull request #1115 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Jan 17, 2023
d863470
Update generated files with build 103122
Jan 24, 2023
db65c72
Bump SDK version
Jan 24, 2023
bcc9221
Merge pull request #1127 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Jan 24, 2023
6606be7
Update code samples to use Graph auth provider
Ndiritu Jan 30, 2023
3ee12a8
Update generated files with build 104196
Jan 31, 2023
b5053b9
Merge pull request #1133 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Feb 1, 2023
26311e9
Merge pull request #1129 from microsoftgraph/fix/default-auth
Ndiritu Feb 1, 2023
380a621
Update generated files with build 104347
Feb 1, 2023
b0ec9f6
Merge pull request #1135 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Feb 2, 2023
5bc9ffc
Update generated files with build 105144
Feb 7, 2023
ca48e7d
Fix generation issue.
SilasKenneth Feb 7, 2023
2b39a83
Update generated files with build 105148
Feb 7, 2023
b9928e7
Merge pull request #1138 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Feb 7, 2023
e1acb6c
Merge pull request #1142 from microsoftgraph/kiota/kiota/v1.0/pipelin…
SilasKenneth Feb 7, 2023
6f31f8f
Update generated files with build 105937
Feb 16, 2023
1f841f2
Merge pull request #1146 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Feb 16, 2023
965e46d
Change base graph request adapter argument ordering
Ndiritu Feb 20, 2023
f9b897d
Update generated files with build 106293
Feb 21, 2023
c4c5a3e
Merge pull request #1148 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Feb 21, 2023
fd8e9e2
Update generated files with build 107286
Feb 28, 2023
9a5e1ed
Merge pull request #1155 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Mar 1, 2023
c540250
Update outdated code samples
Ndiritu Feb 23, 2023
fa10c06
Add BatchRequestBuilder
Ndiritu Mar 2, 2023
11f16ce
Update generated files with build 108103
Mar 7, 2023
8fcbe98
Update README.md
isvargasmsft Mar 7, 2023
0c7a9e2
Update README.md
isvargasmsft Mar 7, 2023
19c9362
Merge pull request #1166 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Mar 9, 2023
5981ca2
Update README.md
isvargasmsft Mar 10, 2023
29e86bb
Update README.md
isvargasmsft Mar 10, 2023
2df77cb
Update README.md
isvargasmsft Mar 10, 2023
204db7b
Update README.md
isvargasmsft Mar 10, 2023
9ec6227
Update README.md
isvargasmsft Mar 10, 2023
6ad9025
Merge pull request #1168 from microsoftgraph/isvargasmsft-edits-1
isvargasmsft Mar 10, 2023
a3c6af2
Update generated files with build 109147
Mar 14, 2023
04e4f91
Bump SDK version
Mar 14, 2023
493cfb1
Merge pull request #1177 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Mar 14, 2023
afe22d4
Update generated files with build 109828
Mar 16, 2023
d1ac092
Merge pull request #1180 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Mar 20, 2023
92d692e
Update generated files with build 110825
Mar 22, 2023
ce65a90
Merge pull request #1185 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Mar 22, 2023
1e4cffd
Add page iterator, large file upload and batch request samples
Ndiritu Mar 23, 2023
a066fa2
Update README badge to read latest preview version
Ndiritu Mar 23, 2023
a662376
Explain different auth context scenarios
Ndiritu Mar 28, 2023
ea27bf8
Rename raw PSR response to raw HTTP response
Ndiritu Mar 28, 2023
de59b24
Update generated files with build 111491
Mar 28, 2023
8e46fc5
Merge pull request #1189 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Mar 28, 2023
8720091
Merge pull request #1151 from microsoftgraph/fix/update-samples
Ndiritu Mar 29, 2023
94ffdcf
Update generated files with build 112037
Apr 4, 2023
f0d93cb
Merge pull request #1194 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Apr 4, 2023
7ec967e
Revert "Generated models and request builders"
Ndiritu Apr 4, 2023
b9ec4cc
Merge pull request #1196 from microsoftgraph/revert-1194-kiota/v1.0/p…
SilasKenneth Apr 4, 2023
9a4b848
Update generated files with build 112255
Apr 6, 2023
1c5ed03
Merge pull request #1197 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Apr 6, 2023
ee89695
Update generated files with build 112480
Apr 11, 2023
9c656b7
Merge pull request #1200 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Apr 11, 2023
6b1b74e
Bump Graph Core version
Ndiritu Apr 17, 2023
58ffd37
Merge pull request #1162 from microsoftgraph/feat/batch-request
Ndiritu Apr 17, 2023
9b2ff32
Merge pull request #1147 from microsoftgraph/fix/graph-request-adapter
Ndiritu Apr 17, 2023
d8d469c
Update generated files with build 113310
Apr 25, 2023
a4a686c
Merge pull request #1213 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Apr 25, 2023
6280e56
Update code samples
Ndiritu Apr 26, 2023
f1abd3d
Update generated files with build 113497
Apr 27, 2023
e20ded1
Merge pull request #1218 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Apr 27, 2023
b288113
Update generated files with build 113700
May 2, 2023
51a945b
Merge pull request #1221 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth May 3, 2023
c68e475
Merge pull request #1216 from microsoftgraph/fix/update-code-samples
Ndiritu May 3, 2023
d9025e1
Add me() method to the GraphServiceClient.
SilasKenneth May 3, 2023
676f9a3
Add DocComment to the code.
SilasKenneth May 3, 2023
ccadd99
Merge pull request #1224 from microsoftgraph/chore/remove-slash-me
SilasKenneth May 9, 2023
d383e87
Update generated files with build 114262
May 10, 2023
396ec5b
Merge pull request #1229 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu May 10, 2023
f529b0e
Update generated files with build 114661
May 16, 2023
848f646
Merge pull request #1235 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu May 16, 2023
eb09a39
Add CAE code samples
Ndiritu May 18, 2023
0106186
Merge pull request #1239 from microsoftgraph/fix/update-samples
Ndiritu May 18, 2023
5988d4d
Update CODEOWNERS
Ndiritu May 22, 2023
97f1d8e
Bump Graph core
Ndiritu May 22, 2023
e720cdb
Merge pull request #1242 from microsoftgraph/fix/bump-core
Ndiritu May 22, 2023
dac03ad
Update generated files with build 115280
May 23, 2023
32d59f6
Bump SDK version
May 23, 2023
9b97b40
Merge pull request #1243 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu May 23, 2023
6360bd4
Initialise Graph client by default using token context and scopes
Ndiritu May 22, 2023
84af3e8
Update code samples & README
Ndiritu May 22, 2023
229504c
Remove static request adapter property
Ndiritu May 29, 2023
f3651eb
Allow initialisation of graph client with national cloud
Ndiritu May 29, 2023
9412b3f
Update generated files with build 115854
May 30, 2023
f2e7272
Merge pull request #1247 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu May 30, 2023
b5ddc0d
Merge pull request #1241 from microsoftgraph/fix/client-initialisation
Ndiritu Jun 1, 2023
220d842
Update Graph client initialisation sample with request adapter
Ndiritu Jun 1, 2023
e0b69d8
Bump Graph core
Ndiritu Jun 6, 2023
ef4c649
Merge pull request #1246 from microsoftgraph/feat/national-clouds
Ndiritu Jun 6, 2023
ff5e7a5
Update generated files with build 116509
Jun 6, 2023
dab70e2
Merge pull request #1253 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Jun 6, 2023
4ee49cf
Update generated files with build 117217
Jun 13, 2023
30880ac
Merge pull request #1260 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Jun 13, 2023
739d98a
Add National Cloud customization sample
Ndiritu Jun 14, 2023
8e18e80
Merge pull request #1261 from microsoftgraph/fix/update-samples
Ndiritu Jun 15, 2023
5f3aae5
Add getter for request adapter on graph client
Ndiritu May 23, 2023
1ee374d
Change code samples initialising core Tasks
Ndiritu May 23, 2023
97a7033
Set correct base URL when custom request adapter is used
Ndiritu Jun 16, 2023
9383e3b
Merge pull request #1264 from microsoftgraph/fix/wrong-base-url
Ndiritu Jun 18, 2023
32b83ea
Update generated files with build 117926
Jun 20, 2023
047ff1e
Bump SDK version
Jun 20, 2023
d039c4f
Merge pull request #1267 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Jun 20, 2023
26b2d10
Update generated files with build 118603
Jun 27, 2023
42555b8
Bump SDK version
Jun 27, 2023
c6a9889
Merge pull request #1277 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Jun 27, 2023
c22a4f9
Update generated files with build 118976
Jun 30, 2023
627af76
Merge pull request #1281 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Jul 3, 2023
46e87e6
Bump PHPStan to level 9
Ndiritu Jul 3, 2023
6ec592d
Merge pull request #1282 from microsoftgraph/fix/bump-phpstan
Ndiritu Jul 4, 2023
f889e23
Update generated files with build 119223
Jul 4, 2023
1281a0d
Bump Graph core
Ndiritu Jul 5, 2023
0a86a5c
Merge pull request #1285 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Jul 5, 2023
582a249
Update generated files with build 119853
Jul 11, 2023
ce0ac64
Bump SDK version
Jul 11, 2023
e0124a4
Merge pull request #1292 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Jul 11, 2023
45e7066
Simplify batch request sample
Ndiritu Jul 12, 2023
805f2a4
Merge pull request #1297 from microsoftgraph/fix/batch-request-samples
Ndiritu Jul 14, 2023
2f3ec8a
Update generated files with build 120794
Jul 20, 2023
05c47c3
Merge pull request #1303 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Jul 21, 2023
6638eae
Update generated files with build 121145
Jul 25, 2023
16f49ac
Bump SDK version
Jul 25, 2023
4eef7e6
Merge pull request #1306 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Jul 25, 2023
4df0262
Update generated files with build 121759
Aug 1, 2023
3fca8a0
Bump SDK version
Aug 1, 2023
d64aaed
Merge pull request #1311 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Aug 2, 2023
ae8ca76
adding note
isvargasmsft Aug 3, 2023
3e77362
Update generated files with build 122273
Aug 8, 2023
a275bd5
Bump SDK version
Aug 8, 2023
8877318
Merge pull request #1315 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Aug 8, 2023
c048a9c
Update generated files with build 122943
Aug 15, 2023
880ad0f
Bump SDK version
Aug 15, 2023
8f500be
Remove create PR step for weekly generation
Ndiritu Jun 6, 2023
e76a5f6
Rename generated PR workflow
Ndiritu Jun 6, 2023
6b31a6d
Remove update docs workflow
Ndiritu Jun 6, 2023
7dd06f5
Remove hack to trigger PR validation runs for generated PRs
Ndiritu Aug 15, 2023
88e08dc
Run PR validation checks using PHP 7.4+
Ndiritu Aug 15, 2023
899cdf3
Merge pull request #1321 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Aug 15, 2023
5789633
Create releases workflow
Ndiritu Aug 16, 2023
b857999
Tag releases when code is merged to v2 branch
Ndiritu Aug 16, 2023
2ec9204
Merge pull request #1254 from microsoftgraph/fix/gh-actions
Ndiritu Aug 17, 2023
d93f19c
Update generated files with build 123456
Aug 22, 2023
ef53065
Merge pull request #1325 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Aug 22, 2023
3011f6f
Update regex in tagging workflow to push RC versions correctly
Ndiritu Aug 22, 2023
922186d
Update README.md
isvargasmsft Aug 22, 2023
e7c3d68
Merge pull request #1312 from microsoftgraph/isvargasmsft-addingnote
Ndiritu Aug 22, 2023
6fee1cc
Merge pull request #1326 from microsoftgraph/fix/gh-workflow
Ndiritu Aug 23, 2023
9605071
Update generated files with build 123982
Aug 30, 2023
255bc39
Bump SDK version
Aug 30, 2023
19a811a
Make tagging & release workflow manually triggered
Ndiritu Aug 30, 2023
0be58db
Merge pull request #1332 from microsoftgraph/fix/gh-actions
Ndiritu Aug 31, 2023
9434b91
Merge pull request #1331 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Aug 31, 2023
92f92e3
Update generated files with build 124351
Sep 5, 2023
29f132a
Bump SDK version
Sep 5, 2023
0326f21
Merge pull request #1338 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Sep 8, 2023
51ea20c
Update generated files with build 124844
Sep 12, 2023
bcc3a7d
Bump SDK version
Sep 12, 2023
01cd5fb
Merge pull request #1345 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Sep 13, 2023
e95c066
Update generated files with build 125212
Sep 19, 2023
bb88095
Merge pull request #1350 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Sep 19, 2023
bea58f5
Update generated files with build 126033
Oct 3, 2023
0eb2c84
Bump SDK version
Oct 3, 2023
3f0cf84
Merge pull request #1356 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Oct 6, 2023
729a6de
Update generated files with build 126471
Oct 10, 2023
c95ede7
Bump SDK version
Oct 10, 2023
4df189b
Merge pull request #1360 from microsoftgraph/kiota/v1.0/pipelinebuild…
SilasKenneth Oct 12, 2023
66e2363
Update generated files with build 127020
Oct 17, 2023
29fcb26
Merge pull request #1365 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Oct 18, 2023
1bb28a4
Disable php-http discovery plugin
Ndiritu Oct 23, 2023
59c652e
Merge pull request #1375 from microsoftgraph/fix/disable-php-http-dis…
Ndiritu Oct 23, 2023
ebb2e52
Bump Graph core
Ndiritu Oct 31, 2023
f74f51f
Merge pull request #1385 from microsoftgraph/fix/bump-graph-core
Ndiritu Oct 31, 2023
f2cc8f2
Update generated files with build 127996
Nov 1, 2023
0dcb918
Bump Graph core
Ndiritu Nov 2, 2023
b2f1b3d
Update page iterator sample
Ndiritu Nov 2, 2023
f8e7965
Resume large file uploads multiple times with retry
Ndiritu Nov 2, 2023
6098a05
Throw network exception if retries fail due to network issues
Ndiritu Nov 2, 2023
82b5129
Merge pull request #1387 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Nov 2, 2023
ce855e6
Merge kiota-preview to dev
Ndiritu Nov 2, 2023
8dd1a2f
Re-enable static analysis as a required check
Ndiritu Nov 2, 2023
1391f9c
Merge pull request #1393 from microsoftgraph/main
Ndiritu Nov 2, 2023
47dd5dd
Merge pull request #1388 from microsoftgraph/fix/code-samples
Ndiritu Nov 2, 2023
35d425d
Update generated files with build 128432
Nov 7, 2023
70edfde
Bump SDK version
Nov 7, 2023
c6b4c9b
Update custom response handler sample
Ndiritu Nov 8, 2023
7c99350
Update version in README
Ndiritu Nov 8, 2023
15f5c2d
Update UPGRADE guide
Ndiritu Nov 8, 2023
697e122
Merge branch 'feat/kiota-preview' into fix/docs
Ndiritu Nov 8, 2023
73d0e6e
Update UPGRADING.md
Ndiritu Nov 8, 2023
4e079f5
Update UPGRADING.md
Ndiritu Nov 8, 2023
b100d3f
Merge pull request #1398 from microsoftgraph/fix/docs
Ndiritu Nov 8, 2023
fe7b737
Update batching sample
Ndiritu Nov 8, 2023
b3867ab
Bump SDK version in GraphConstants
Ndiritu Nov 8, 2023
5312809
Use stable graph core version
Ndiritu Nov 8, 2023
93aa494
Merge pull request #1399 from microsoftgraph/fix/docs
Ndiritu Nov 9, 2023
53d2f16
Merge branch 'fix/merge-v2-to-dev' into kiota/v1.0/pipelinebuild/128432
Ndiritu Nov 9, 2023
c7bf563
Merge pull request #1396 from microsoftgraph/kiota/v1.0/pipelinebuild…
Ndiritu Nov 9, 2023
63e7749
Merge pull request #1392 from microsoftgraph/fix/merge-v2-to-dev
Ndiritu Nov 9, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
6 changes: 3 additions & 3 deletions .github/policies/msgraph-sdk-php-branch-protection.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

# File initially created using https://github.com/MIchaelMainer/policyservicetoolkit/blob/main/branch_protection_export.ps1.
Expand Down Expand Up @@ -35,7 +35,7 @@ configuration:
requiresLinearHistory: false
# Required status checks to pass before merging. Values can be any string, but if the value does not correspond to any existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status
requiredStatusChecks:
#- validate-pull-request #TODO: add this back once we are using Kiota
- check-php-version-matrix
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
requiresStrictStatusChecks: true
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
Expand Down Expand Up @@ -69,7 +69,7 @@ configuration:
requiresLinearHistory: false
# Required status checks to pass before merging. Values can be any string, but if the value does not correspond to any existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status
requiredStatusChecks:
#- validate-pull-request #TODO: add this back once we are using Kiota
- check-php-version-matrix
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
requiresStrictStatusChecks: true
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/bump-generated-sdk-version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.

name: "Bump SDK version in generated pull request"

# Controls when the action will run. Triggers the workflow on push
# events but only for branches with the following branch spec: kiota/v1.0/pipelinebuild/*
on:
push:
branches:
- "kiota/v1.0/pipelinebuild/*"
paths:
- 'src/Generated/**'

defaults:
run:
shell: bash

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
bump-sdk-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Git config user
run: |
git config --global user.email "GraphTooling@service.microsoft.com"
git config --global user.name "Microsoft Graph DevX Tooling"
- name: Run increment script
run: php scripts/BumpStableSdkVersion.php

- name: Commit and push changes if any
run: if git commit -am "Bump SDK version"; then git push origin $GITHUB_REF; fi
35 changes: 0 additions & 35 deletions .github/workflows/bump-sdk-version.yml

This file was deleted.

30 changes: 26 additions & 4 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,36 @@
name: "create release"

on:
push:
tags:
'*'
workflow_dispatch:

defaults:
run:
shell: bash

jobs:
create-tag:
runs-on: ubuntu-latest
outputs:
SDK_VERSION: ${{ steps.tag-step.outputs.SDK_VERSION }}
steps:
- uses: actions/checkout@v3

- name: Get SDK version and set environment variable
run: |
SDK_VERSION=$(grep 'SDK_VERSION' src/GraphConstants.php | grep -oE '[0-9]+\.[0-9]+\.[0-9A-Za-z.\-]+')
echo "SDK_VERSION=$SDK_VERSION" >> $GITHUB_ENV

- id: tag-step
name: Create and publish tag
run: |
echo "SDK_VERSION is:"$SDK_VERSION
git tag $SDK_VERSION && git push origin $SDK_VERSION
echo "SDK_VERSION=$SDK_VERSION" >> "$GITHUB_OUTPUT"

create-release:
needs: create-tag
env:
SDK_VERSION: ${{ needs.create-tag.outputs.SDK_VERSION }}
runs-on: ubuntu-latest
permissions:
contents: write
Expand All @@ -20,5 +40,7 @@ jobs:
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
prerelease: ${{ contains(github.ref_name, 'RC') }}
prerelease: ${{ contains( env.SDK_VERSION, 'RC') }}
skipIfReleaseExists: true
tag: ${{ env.SDK_VERSION }}
name: "Release ${{ env.SDK_VERSION }}"
31 changes: 26 additions & 5 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: "Validate Pull Request"

on:
push:
branches: [ main, dev ]
branches: [ main, dev, feat/kiota-preview ]
pull_request:
branches: [ main, dev ]
branches: [ main, dev, feat/kiota-preview ]

defaults:
run:
Expand All @@ -16,17 +16,38 @@ defaults:
jobs:
validate-pull-request:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.4', '8.0', '8.1', '8.2']
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
- uses: actions/checkout@v4
- name: Validate composer file
run: |
composer validate
- name: Install dependencies
run: |
composer install
composer install -a
- name: run tests
run : |
vendor/bin/phpunit --exclude-group functional
vendor/bin/phpunit --coverage-text
- name: Run static analysis
run: |
vendor/bin/phpstan analyse --memory-limit=1500M --error-format=github
vendor/bin/phpstan analyse --memory-limit=8G --error-format=github

# The check-php-version-matrix returns success if all matrix jobs in build are successful; otherwise, it returns a failure.
# Use this as a PR status check for GitHub Policy Service instead of individual matrix entry checks.
check-php-version-matrix:
runs-on: ubuntu-latest
needs: validate-pull-request
if: always()
steps:
- name: All build matrix options are successful
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: One or more build matrix options failed
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1
31 changes: 0 additions & 31 deletions .github/workflows/tag-release.yml

This file was deleted.

21 changes: 15 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,36 @@ There are a few different recommended paths to get contributions into the releas
The best way to get started with a contribution is to start a dialog with us. Sometimes features will be under development or out of scope for this library and it's best to check before starting work on contribution, especially for large work items.

## Pull requests
If you are making documentation changes, feel free to submit a pull request against the **master** branch. All other pull requests should be submitted against the **dev** branch or a specific feature branch. The master branch is intended to represent the code released in the most-recent composer package.
If you are making documentation changes, feel free to submit a pull request against the **main** branch. All other pull requests should be submitted against the **dev** branch or a specific feature branch. The master branch is intended to represent the code released in the most-recent composer package.

When a new package is about to be released, changes in dev will be merged into master. The package will be generated from master.

Some things to note about this project:

### How the library is built
The PHP SDK has a handwritten set of core files and a folder of autogenerated models. These models are generated using the [MSGraph SDK Code Generator](https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator). **Changes made to the ```Models``` folder will be overwritten** the next time the generator is run.
The PHP SDK has a mix of handwritten "core" files and a folder of autogenerated models and request builder classes.

If you would like to make changes to the models, you can either file an issue or make a PR in the [MSGraph SDK Code Generator](https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator) to the [templates](https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator/tree/master/Templates/PHP/Model). Although there is a lot of logic in the generator, the code used for PHP is fairly minimal.
The models and request builders are generated using [Kiota](https://github.com/microsoft/kiota). **Changes made to the ```Generated``` folder will be overwritten** the next time the generator is run - currently every week on Tuesday. Feel free to contribute to the generated code there.

Hand-written core files are spread across:

- [PHP Core](https://github.com/microsoftgraph/msgraph-sdk-php-core) which contains Graph specific configuration
- [Kiota Abstractions](https://github.com/microsoft/kiota-abstractions-php) which contains all interfaces that tie the SDK together
- [Kiota HTTP using Guzzle](https://github.com/microsoft/kiota-http-guzzle-php) which handles HTTP level concerns
- [Kiota Authentication using PHP League](https://github.com/microsoft/kiota-authentication-phpleague-php) which handles Authentication
- [Kiota Serialization JSON](https://github.com/microsoft/kiota-serialization-json-php) which handles JSON (de)/serialization
- [Kiota Serialization Text](https://github.com/microsoft/kiota-serialization-text-php) which handles `text/plain` (de)/serialization

### How the generator works
You can view the [README](https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator/blob/master/README.md) for a full run-through of its capabilities.
You can view the [README](https://github.com/microsoft/kiota) for a full run-through of its capabilities.

For the purposes of the PHP library, the generator runs through an OData-compliant metadata file published by Microsoft Graph (https://graph.microsoft.com/v1.0/$metadata) and builds up a list of models. These models are converted into PHP code using T4 templates, which use C# to programmatically define what PHP code is written to the file.
For the purposes of the PHP library, the generator runs through an OpenAPI schema description of the Microsoft Graph API (https://github.com/microsoftgraph/msgraph-metadata/blob/master/openapi/v1.0/openapi.yaml) and builds up a list of models and request builders based on the paths.

### When new features are added to the library
Generation happens as part of a manual process that occurs once a significant change or set of changes has been added to the Graph. This may include:
- A new workload comes to v1.0 of Graph (Microsoft Teams, Batching, etc.)
- There is significant addition of functionality (Delta Queries, etc.)

However, this is evaluated on a case-by-case basis. If the library is missing v1.0 Graph functionality that you wish to utilize, please [file an issue](https://github.com/microsoftgraph/msgraph-sdk-php/issues).

We do our best to prevent breaking changes from being introduced into the library during this process. If you find a breaking change, please file an issue and we will work to get this resolved ASAP.
Expand Down
Loading