Skip to content

Commit 7ec9bc5

Browse files
authored
Merge pull request #2594 from microsoftgraph/dev
Latest dev changes before deleting dev
2 parents 1354831 + 3d484a7 commit 7ec9bc5

16 files changed

+127
-249
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -261,17 +261,15 @@ extends:
261261
nuGetFeedType: external
262262
publishFeedCredentials: 'microsoftgraph NuGet connection'
263263
- task: GitHubRelease@1
264-
displayName: 'GitHub release (create)'
264+
displayName: 'GitHub release (Upload Artifacts)'
265265
inputs:
266266
gitHubConnection: 'Kiota_Release'
267267
target: $(Build.SourceVersion)
268+
action: edit
268269
tagSource: userSpecifiedTag
269270
tag: 'v$(VERSION_STRING)'
270-
title: '$(VERSION_STRING)'
271-
releaseNotesSource: inline
271+
title: 'v$(VERSION_STRING)'
272272
assets: |
273273
!**/**
274274
$(Pipeline.Workspace)/Microsoft.Graph.*.*nupkg
275-
changeLogType: issueBased
276-
isPreRelease: '$(IS_PRE_RELEASE)'
277-
addChangeLog: true
275+
addChangeLog: false

.github/dependabot.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
version: 2
22
updates:
33
- package-ecosystem: nuget
4-
directory: "/"
4+
directories:
5+
- "**/*"
56
schedule:
67
interval: daily
78
open-pull-requests-limit: 10
9+
groups:
10+
kiota-dependencies:
11+
patterns:
12+
- "*kiota*"
13+
xunit:
14+
patterns:
15+
- xunit*
16+
coverlet:
17+
patterns:
18+
- coverlet*
19+
mstest:
20+
patterns:
21+
- Microsoft.NET.Test.Sdk
22+
- Microsoft.TestPlatform.ObjectModel
823
- package-ecosystem: github-actions
924
directory: "/"
1025
schedule:

.github/policies/msgraph-sdk-dotnet-branch-protection.yml

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -37,45 +37,9 @@ configuration:
3737
requiredStatusChecks:
3838
- build
3939
- license/cla
40-
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
40+
# Require branches to be up-to-date before merging. Requires requiredStatusChecks. boolean
4141
requiresStrictStatusChecks: true
4242
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
4343
restrictsPushes: false
4444
# Restrict who can dismiss pull request reviews. boolean
4545
restrictsReviewDismissals: false
46-
47-
- branchNamePattern: dev
48-
# This branch pattern applies to the following branches as of 06/12/2023 10:31:13:
49-
# dev
50-
51-
# Specifies whether this branch can be deleted. boolean
52-
allowsDeletions: false
53-
# Specifies whether forced pushes are allowed on this branch. boolean
54-
allowsForcePushes: false
55-
# Specifies whether new commits pushed to the matching branches dismiss pull request review approvals. boolean
56-
dismissStaleReviews: true
57-
# Specifies whether admins can overwrite branch protection. boolean
58-
isAdminEnforced: false
59-
# Indicates whether "Require a pull request before merging" is enabled. boolean
60-
requiresPullRequestBeforeMerging: true
61-
# Specifies the number of pull request reviews before merging. int (0-6). Should be null/empty if PRs are not required
62-
requiredApprovingReviewsCount: 1
63-
# Require review from Code Owners. Requires requiredApprovingReviewsCount. boolean
64-
requireCodeOwnersReview: true
65-
# Are commits required to be signed. boolean. TODO: all contributors must have commit signing on local machines.
66-
requiresCommitSignatures: false
67-
# Are conversations required to be resolved before merging? boolean
68-
requiresConversationResolution: true
69-
# Are merge commits prohibited from being pushed to this branch. boolean
70-
requiresLinearHistory: false
71-
# 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
72-
requiredStatusChecks:
73-
- build
74-
- license/cla
75-
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
76-
requiresStrictStatusChecks: true
77-
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.
78-
restrictsPushes: false
79-
# Restrict who can dismiss pull request reviews. boolean
80-
restrictsReviewDismissals: false
81-

.github/policies/resourceManagement.yml

Lines changed: 32 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
id:
1+
id:
22
name: GitOps.PullRequestIssueManagement
33
description: GitOps.PullRequestIssueManagement primitive
4-
owner:
4+
owner:
55
resource: repository
66
disabled: false
7-
where:
7+
where:
88
configuration:
99
resourceManagementConfiguration:
1010
scheduledSearches:
11-
- description:
11+
- description:
1212
frequencies:
1313
- hourly:
1414
hour: 1
@@ -23,7 +23,7 @@ configuration:
2323
days: 3
2424
actions:
2525
- closeIssue
26-
- description:
26+
- description:
2727
frequencies:
2828
- hourly:
2929
hour: 1
@@ -41,7 +41,7 @@ configuration:
4141
label: 'Status: No recent activity'
4242
- addReply:
4343
reply: This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
44-
- description:
44+
- description:
4545
frequencies:
4646
- hourly:
4747
hour: 1
@@ -56,7 +56,7 @@ configuration:
5656
- addReply:
5757
reply: This issue has been marked as duplicate and has not had any activity for **1 day**. It will be closed for housekeeping purposes.
5858
- closeIssue
59-
- description:
59+
- description:
6060
frequencies:
6161
- hourly:
6262
hour: 6
@@ -71,7 +71,7 @@ configuration:
7171
days: 7
7272
actions:
7373
- closeIssue
74-
- description:
74+
- description:
7575
frequencies:
7676
- hourly:
7777
hour: 6
@@ -103,7 +103,7 @@ configuration:
103103
label: 'Needs: Attention :wave:'
104104
- removeLabel:
105105
label: 'status:waiting-for-author-feedback'
106-
description:
106+
description:
107107
- if:
108108
- payloadType: Issues
109109
- not:
@@ -114,7 +114,7 @@ configuration:
114114
then:
115115
- removeLabel:
116116
label: 'Status: No recent activity'
117-
description:
117+
description:
118118
- if:
119119
- payloadType: Issues
120120
- or:
@@ -124,22 +124,32 @@ configuration:
124124
then:
125125
- removeLabel:
126126
label: 'Needs: Triage'
127-
description:
127+
description:
128+
- if:
129+
- payloadType: Issues
130+
- isAction:
131+
action: Closed
132+
- hasLabel:
133+
label: 'status:waiting-for-author-feedback'
134+
then:
135+
- removeLabel:
136+
label: 'status:waiting-for-author-feedback'
137+
description:
128138
- if:
129139
- payloadType: Pull_Request
130140
- isAction:
131141
action: Opened
132142
then:
133143
- addCodeFlowLink
134-
description:
144+
description:
135145
- if:
136146
- payloadType: Issue_Comment
137147
- hasLabel:
138148
label: 'Status: No recent activity'
139149
then:
140150
- removeLabel:
141151
label: 'Status: No recent activity'
142-
description:
152+
description:
143153
- if:
144154
- payloadType: Pull_Request_Review
145155
- isAction:
@@ -149,7 +159,7 @@ configuration:
149159
then:
150160
- addLabel:
151161
label: 'status:waiting-for-author-feedback'
152-
description:
162+
description:
153163
- if:
154164
- payloadType: Pull_Request
155165
- isActivitySender:
@@ -162,7 +172,7 @@ configuration:
162172
then:
163173
- removeLabel:
164174
label: 'status:waiting-for-author-feedback'
165-
description:
175+
description:
166176
- if:
167177
- payloadType: Issue_Comment
168178
- isActivitySender:
@@ -172,7 +182,7 @@ configuration:
172182
then:
173183
- removeLabel:
174184
label: 'status:waiting-for-author-feedback'
175-
description:
185+
description:
176186
- if:
177187
- payloadType: Pull_Request_Review
178188
- isActivitySender:
@@ -182,7 +192,7 @@ configuration:
182192
then:
183193
- removeLabel:
184194
label: 'status:waiting-for-author-feedback'
185-
description:
195+
description:
186196
- if:
187197
- payloadType: Pull_Request
188198
- not:
@@ -193,22 +203,22 @@ configuration:
193203
then:
194204
- removeLabel:
195205
label: 'Status: No recent activity'
196-
description:
206+
description:
197207
- if:
198208
- payloadType: Issue_Comment
199209
- hasLabel:
200210
label: 'Status: No recent activity'
201211
then:
202212
- removeLabel:
203213
label: 'Status: No recent activity'
204-
description:
214+
description:
205215
- if:
206216
- payloadType: Pull_Request_Review
207217
- hasLabel:
208218
label: 'Status: No recent activity'
209219
then:
210220
- removeLabel:
211221
label: 'Status: No recent activity'
212-
description:
213-
onFailure:
214-
onSuccess:
222+
description:
223+
onFailure:
224+
onSuccess:

.github/release-please.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
manifest: true
2+
primaryBranch: master
3+
handleGHRelease: true

.github/workflows/auto-merge-dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- name: Dependabot metadata
2121
id: metadata
22-
uses: dependabot/fetch-metadata@v2.1.0
22+
uses: dependabot/fetch-metadata@v2.2.0
2323
with:
2424
github-token: "${{ secrets.GITHUB_TOKEN }}"
2525

.github/workflows/project-auto-add.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
steps:
1919
- name: Generate token
2020
id: generate_token
21-
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
21+
uses: actions/create-github-app-token@v1
2222
with:
23-
app_id: ${{ secrets.GRAPHBOT_APP_ID }}
24-
private_key: ${{ secrets.GRAPHBOT_APP_PEM }}
23+
app-id: ${{ secrets.GRAPHBOT_APP_ID }}
24+
private-key: ${{ secrets.GRAPHBOT_APP_PEM }}
2525

2626
- name: Get project data
2727
env:

.github/workflows/validatePullRequest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
env:
1919
solutionName: Microsoft.Graph.sln
2020
steps:
21-
- uses: actions/checkout@v4.1.6
21+
- uses: actions/checkout@v4.1.7
2222
- name: Setup .NET
23-
uses: actions/setup-dotnet@v4.0.0
23+
uses: actions/setup-dotnet@v4.0.1
2424
with:
2525
dotnet-version: 6.0.x
2626
- name: Initialize CodeQL

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "5.56.0"
3+
}

CONTRIBUTING.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,43 @@ Thanks for considering making a contribution! Read over our guidelines and we wi
66
There are a few different recommended paths to get contributions into the released version of this library.
77

88
## File issues
9-
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.
9+
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.
1010

1111
## Pull requests
12-
All 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 Nuget package.
12+
All pull requests should be submitted against the **master** branch or a specific feature branch. The master branch is intended to represent the code released in the most-recent Nuget package.
1313

14-
When a new package is about to be released, changes in dev will be merged into master. The package will be generated from master.
14+
## Commit message format
15+
16+
To support our automated release process, pull requests are required to follow the [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/)
17+
format.
18+
19+
Each commit message consists of a **header**, an optional **body** and an optional **footer**. The header is the first line of the commit and
20+
MUST have a **type** (see below for a list of types) and a **description**. An optional **scope** can be added to the header to give extra context.
21+
22+
```
23+
<type>[optional scope]: <short description>
24+
<BLANK LINE>
25+
<optional body>
26+
<BLANK LINE>
27+
<optional footer(s)>
28+
```
29+
30+
The recommended commit types used are:
31+
32+
- **feat** for feature updates (increments the _minor_ version)
33+
- **fix** for bug fixes (increments the _patch_ version)
34+
- **perf** for performance related changes e.g. optimizing an algorithm
35+
- **refactor** for code refactoring changes
36+
- **test** for test suite updates e.g. adding a test or fixing a test
37+
- **style** for changes that don't affect the meaning of code. e.g. formatting changes
38+
- **docs** for documentation updates e.g. ReadMe update or code documentation updates
39+
- **build** for build system changes (gradle updates, external dependency updates)
40+
- **ci** for CI configuration file changes e.g. updating a pipeline
41+
- **chore** for miscallaneous non-sdk changesin the repo e.g. removing an unused file
42+
43+
Adding a footer with the prefix **BREAKING CHANGE:** will cause an increment of the _major_ version.
44+
45+
When a new package is about to be release, the release PR will be merged into master. The package will be generated from master.
1546

1647
Some things to note about this project:
1748

0 commit comments

Comments
 (0)