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

Add release-please configuration #856

Merged
merged 13 commits into from
Jul 17, 2024
3 changes: 3 additions & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
manifest: true
primaryBranch: master
handleGHRelease: true
23 changes: 23 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
on:
timayabi2020 marked this conversation as resolved.
Show resolved Hide resolved
push:
branches:
- main

permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
# optional. customize path to release-please-config.json
config-file: release-please-config.json
# optional. customize path to .release-please-manifest.json
manifest-file: .release-please-manifest.json

3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "3.1.14"
}
30 changes: 30 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,36 @@ When a new package is about to be released, changes in dev will be merged into m

Some things to note about this project:

## Commit message format
To support our automated release process, pull requests are required to follow the [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/)
format.

Each commit message consists of a **header**, an optional **body** and an optional **footer**. The header is the first line of the commit and
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.

```
<type>[optional scope]: <short description>
<BLANK LINE>
<optional body>
<BLANK LINE>
<optional footer(s)>
```

The recommended commit types used are:

- **feat** for feature updates (increments the _minor_ version)
- **fix** for bug fixes (increments the _patch_ version)
- **perf** for performance related changes e.g. optimizing an algorithm
- **refactor** for code refactoring changes
- **test** for test suite updates e.g. adding a test or fixing a test
- **style** for changes that don't affect the meaning of code. e.g. formatting changes
- **docs** for documentation updates e.g. ReadMe update or code documentation updates
- **build** for build system changes (gradle updates, external dependency updates)
- **ci** for CI configuration file changes e.g. updating a pipeline
- **chore** for miscallaneous non-sdk changesin the repo e.g. removing an unused file

Adding a footer with the prefix **BREAKING CHANGE:** will cause an increment of the _major_ version.

### How the library is built
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.

Expand Down
8 changes: 0 additions & 8 deletions pipelines/productionBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@ extends:
script: |
echo "##vso[task.setvariable variable=JAVA_HOME]$(JAVA_HOME_11_X64)"
echo "##vso[task.setvariable variable=PATH]$(JAVA_HOME_11_X64)\bin;$(PATH)"
- task: PowerShell@2
timayabi2020 marked this conversation as resolved.
Show resolved Hide resolved
displayName: 'Validate updated version'
inputs:
targetType: filePath
filePath: 'scripts\ValidateUpdatedNugetVersion.ps1'
arguments: '-packageName "$(PACKAGE_NAME)" -projectPath "$(PROJECT_PATH)"'
pwsh: true
enabled: true
- powershell: |
dotnet workload install android macos ios maccatalyst
displayName: 'Install needed dotnet workloads'
Expand Down
23 changes: 23 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"bootstrap-sha": "9903e0c129683979234f287d59f7468ca5cd7341",
"exclude-paths": [
".git",
".idea",
".github",
".vscode"
],
"release-type": "dotnet",
timayabi2020 marked this conversation as resolved.
Show resolved Hide resolved
"include-component-in-tag": false,
"include-v-in-tag": true,
"packages": {
".": {
"package-name": "src/Microsoft.Graph.Core/",
"changelog-path": "CHANGELOG.md",
"extra-files": [
"src/Microsoft.Graph.Core/Microsoft.Graph.Core.csproj",
timayabi2020 marked this conversation as resolved.
Show resolved Hide resolved
"README.md"
timayabi2020 marked this conversation as resolved.
Show resolved Hide resolved
]
}
},
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
}