Skip to content

Commit 441c3af

Browse files
authored
Merge pull request #856 from microsoftgraph/release-please/bootstrap/default
Add release-please configuration
2 parents 07584bb + c52dcb4 commit 441c3af

File tree

5 files changed

+63
-0
lines changed

5 files changed

+63
-0
lines changed

.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

.release-please-manifest.json

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

CONTRIBUTING.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,36 @@ When a new package is about to be released, changes in dev will be merged into m
1515

1616
Some things to note about this project:
1717

18+
## Commit message format
19+
To support our automated release process, pull requests are required to follow the [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/)
20+
format.
21+
22+
Each commit message consists of a **header**, an optional **body** and an optional **footer**. The header is the first line of the commit and
23+
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.
24+
25+
```
26+
<type>[optional scope]: <short description>
27+
<BLANK LINE>
28+
<optional body>
29+
<BLANK LINE>
30+
<optional footer(s)>
31+
```
32+
33+
The recommended commit types used are:
34+
35+
- **feat** for feature updates (increments the _minor_ version)
36+
- **fix** for bug fixes (increments the _patch_ version)
37+
- **perf** for performance related changes e.g. optimizing an algorithm
38+
- **refactor** for code refactoring changes
39+
- **test** for test suite updates e.g. adding a test or fixing a test
40+
- **style** for changes that don't affect the meaning of code. e.g. formatting changes
41+
- **docs** for documentation updates e.g. ReadMe update or code documentation updates
42+
- **build** for build system changes (gradle updates, external dependency updates)
43+
- **ci** for CI configuration file changes e.g. updating a pipeline
44+
- **chore** for miscallaneous non-sdk changesin the repo e.g. removing an unused file
45+
46+
Adding a footer with the prefix **BREAKING CHANGE:** will cause an increment of the _major_ version.
47+
1848
### How the library is built
1949
The .Net client library has a handwritten set of core files and two folders of generated models and request builders. These models and request builders are generated using the [MSGraph SDK Code Generator](https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator). **Changes made to the ```Models``` and ```Requests``` folders will be overwritten** the next time the generator is run.
2050

release-please-config.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"bootstrap-sha": "9903e0c129683979234f287d59f7468ca5cd7341",
3+
"exclude-paths": [
4+
".git",
5+
".idea",
6+
".github",
7+
".vscode"
8+
],
9+
"release-type": "dotnet-yoshi",
10+
"include-component-in-tag": false,
11+
"include-v-in-tag": true,
12+
"packages": {
13+
".": {
14+
"package-name": "src/Microsoft.Graph.Core/",
15+
"changelog-path": "CHANGELOG.md",
16+
"extra-files": [
17+
"src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj"
18+
]
19+
}
20+
},
21+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
22+
}

src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@
2020
<DelaySign>false</DelaySign>
2121
<AssemblyOriginatorKeyFile>35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
2222
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
23+
<!-- x-release-please-start-version -->
2324
<VersionPrefix>3.1.13</VersionPrefix>
25+
<!-- x-release-please-end -->
26+
<!-- VersionPrefix minor version should not be set when the change comes from the generator. It will be updated automatically. -->
27+
<!-- VersionPrefix minor version must be manually set when making manual changes to code. -->
28+
<!-- VersionPrefix major and patch versions must be manually set. -->
2429
<VersionSuffix></VersionSuffix>
2530
<PackageReleaseNotes>
2631
- https://github.com/microsoftgraph/msgraph-sdk-dotnet-core/blob/dev/CHANGELOG.md

0 commit comments

Comments
 (0)