From 345ab076c059e9521966b60d975d6d056979da61 Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Tue, 7 Jan 2025 11:27:00 +0300 Subject: [PATCH 1/4] ci: setup release please --- .azure-pipelines/ci-build.yml | 10 ++++------ .github/release-please.yml | 3 +++ .release-please-manifest.json | 3 +++ release-please-config.json | 31 +++++++++++++++++++++++++++++++ 4 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 .github/release-please.yml create mode 100644 .release-please-manifest.json create mode 100644 release-please-config.json diff --git a/.azure-pipelines/ci-build.yml b/.azure-pipelines/ci-build.yml index e29a697..2143875 100644 --- a/.azure-pipelines/ci-build.yml +++ b/.azure-pipelines/ci-build.yml @@ -278,13 +278,11 @@ extends: inputs: gitHubConnection: 'Kiota_Release' target: $(Build.SourceVersion) - tagSource: userSpecifiedTag + repositoryName: '$(Build.Repository.Name)' + action: edit tag: 'v$(VERSION_STRING)' - title: '$(VERSION_STRING)' - releaseNotesSource: inline + addChangeLog: false + assetUploadMode: replace assets: | !**/** $(Pipeline.Workspace)/Microsoft.Kiota.*.*nupkg - changeLogType: issueBased - isPreRelease : '$(IS_PRE_RELEASE)' - addChangeLog : true diff --git a/.github/release-please.yml b/.github/release-please.yml new file mode 100644 index 0000000..398e477 --- /dev/null +++ b/.github/release-please.yml @@ -0,0 +1,3 @@ +manifest: true +primaryBranch: main +handleGHRelease: true \ No newline at end of file diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..9bd00eb --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "1.16.2" +} \ No newline at end of file diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..9486091 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,31 @@ +{ + "bootstrap-sha": "e88a174d88534242c73861151f301282d4472edf", + "exclude-paths": [ + ".azure-pipelines", + ".github", + ".idea", + ".vs", + ".vscode" + ], + "release-type": "simple", + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": true, + "include-component-in-tag": false, + "include-v-in-tag": true, + "draft": false, + "prerelease": false, + "packages": { + ".": { + "package-name": "kiota-dotnet", + "changelog-path": "CHANGELOG.md", + "extra-files": [ + { + "type": "xml", + "path": "Directory.Build.props", + "xpath": "//Project/PropertyGroup/VersionPrefix" + } + ] + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +} \ No newline at end of file From ac341c354be7599b71037fab844efcfa7ce3f307 Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Tue, 7 Jan 2025 11:31:44 +0300 Subject: [PATCH 2/4] chore: lint --- .release-please-manifest.json | 2 +- release-please-config.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 9bd00eb..9d8caf2 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { ".": "1.16.2" -} \ No newline at end of file +} diff --git a/release-please-config.json b/release-please-config.json index 9486091..1a8395c 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -28,4 +28,4 @@ } }, "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" -} \ No newline at end of file +} From 8dfd7d818a118252d5452d31e97e0479a63be4ee Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Tue, 7 Jan 2025 12:17:42 +0300 Subject: [PATCH 3/4] update contributing and changelog. --- CHANGELOG.md | 2 -- CONTRIBUTING.md | 58 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 2 deletions(-) create mode 100644 CONTRIBUTING.md diff --git a/CHANGELOG.md b/CHANGELOG.md index a71da1e..af0e73d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,8 +5,6 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] - ## [1.16.2] - 2024-01-07 - Fixed inspecting of response body when response http content is not buffered. [#501](https://github.com/microsoft/kiota-dotnet/issues/501) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..f7740ef --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,58 @@ +# Contributing to Kiota Dotnet + +Kiota Dotnet is a mono-repo containing source code for the following packages: + +## Libraries + +| Library | NuGet Release | +|----------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| [Abstractions](./src/abstractions/README.md) | [![NuGet Version](https://img.shields.io/nuget/vpre/Microsoft.Kiota.Abstractions?label=Latest&logo=nuget)](https://www.nuget.org/packages/Microsoft.Kiota.Abstractions/) | +| [Authentication - Azure](./src/authentication/azure/README.md) | [![NuGet Version](https://img.shields.io/nuget/vpre/Microsoft.Kiota.Authentication.Azure?label=Latest&logo=nuget)](https://www.nuget.org/packages/Microsoft.Kiota.Authentication.Azure/) | +| [Http - HttpClientLibrary](./src/http/httpClient/README.md) | [![NuGet Version](https://img.shields.io/nuget/vpre/Microsoft.Kiota.Http.HttpClientLibrary?label=Latest&logo=nuget)](https://www.nuget.org/packages/Microsoft.Kiota.Http.HttpClientLibrary/) | +| [Serialization - JSON](./src/serialization/json/README.md) | [![NuGet Version](https://img.shields.io/nuget/vpre/Microsoft.Kiota.Serialization.Json?label=Latest&logo=nuget)](https://www.nuget.org/packages/Microsoft.Kiota.Serialization.Json/) | +| [Serialization - FORM](./src/serialization/form/README.md) | [![NuGet Version](https://img.shields.io/nuget/vpre/Microsoft.Kiota.Serialization.Form?label=Latest&logo=nuget)](https://www.nuget.org/packages/Microsoft.Kiota.Serialization.Form/) | +| [Serialization - TEXT](./src/serialization/text/README.md) | [![NuGet Version](https://img.shields.io/nuget/vpre/Microsoft.Kiota.Serialization.Text?label=Latest&logo=nuget)](https://www.nuget.org/packages/Microsoft.Kiota.Serialization.Text/) | +| [Serialization - MULTIPART](./src/serialization/multipart/README.md) | [![NuGet Version](https://img.shields.io/nuget/vpre/Microsoft.Kiota.Serialization.Multipart?label=Latest&logo=nuget)](https://www.nuget.org/packages/Microsoft.Kiota.Serialization.Multipart/) | +| [Bundle](./src/bundle/README.md) | [![NuGet Version](https://img.shields.io/nuget/vpre/Microsoft.Kiota.Bundle?label=Latest&logo=nuget)](https://www.nuget.org/packages/Microsoft.Kiota.Bundle/) | + + +Kiota Dotnet is open to contributions. There are a couple of different recommended paths to get contributions into the released version of this library. + +__NOTE__ A signed a contribution license agreement is required for all contributions, and is checked automatically on new pull requests. Please read and sign [the agreement](https://cla.microsoft.com/) before starting any work for this repository. + +## File issues + +The best way to get started with a contribution is to start a dialog with the owners of this repository. Sometimes features will be under development or out of scope for this SDK and it's best to check before starting work on contribution. Discussions on bugs and potential fixes could point you to the write change to make. + +## Submit pull requests for bug fixes and features + +Feel free to submit a pull request with a linked issue against the __main__ branch. The main branch will be updated frequently. +## 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. + +``` +[optional scope]: + + + + +``` + +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 an exclamation mark after the commit type (`feat!`) or footer with the prefix __BREAKING CHANGE:__ will cause an increment of the _major_ version. \ No newline at end of file From 7ef6862e76a08b59fdc4ce9d3240d21ac4f33114 Mon Sep 17 00:00:00 2001 From: Vincent Biret Date: Tue, 7 Jan 2025 08:20:21 -0500 Subject: [PATCH 4/4] fix: removes bom from encoding Signed-off-by: Vincent Biret --- .release-please-manifest.json | 4 ++-- release-please-config.json | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 9d8caf2..fb1bd8f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ -{ +{ ".": "1.16.2" -} +} \ No newline at end of file diff --git a/release-please-config.json b/release-please-config.json index 1a8395c..c89a3ac 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -1,4 +1,4 @@ -{ +{ "bootstrap-sha": "e88a174d88534242c73861151f301282d4472edf", "exclude-paths": [ ".azure-pipelines", @@ -28,4 +28,4 @@ } }, "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" -} +} \ No newline at end of file