Skip to content

Commit 89e3405

Browse files
authored
Merge pull request #757 from microsoftgraph/shem/add_release_please_configuration
Add Release Please configuration
2 parents d1eb469 + 0b68d56 commit 89e3405

File tree

9 files changed

+67
-40
lines changed

9 files changed

+67
-40
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: main
3+
handleGHRelease: true

.github/workflows/publish.yml

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,7 @@ permissions:
99
contents: write
1010

1111
jobs:
12-
version:
13-
name: Update version
14-
runs-on: ubuntu-latest
15-
if: startsWith(github.ref, 'refs/tags/v')
16-
steps:
17-
- name: Checkout code
18-
uses: actions/checkout@v4
19-
- name: Set up Python
20-
uses: actions/setup-python@v5
21-
with:
22-
python-version: 3.12
23-
- name: Install poetry
24-
run: |
25-
pip install --upgrade poetry
26-
- name: Update version
27-
run: |
28-
VERSION=${GITHUB_REF#refs/tags/v}
29-
poetry version $VERSION
30-
- name: Commit changes
31-
run: |
32-
git config --local user.email "${{ secrets.GIT_USER_EMAIL }}"
33-
git config --local user.name "${{ secrets.GIT_USER_NAME }}"
34-
git commit -am "Update version"
35-
git push origin ${{ github.ref }}
36-
37-
3812
build:
39-
needs: [version]
4013
uses: ./.github/workflows/build.yml
4114

4215
publish:

.release-please-manifest.json

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

CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
75

86
## [1.5.0] - 2024-05-23
97

CONTRIBUTING.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,35 @@ Revisions of this nature will result in a 0.0.X change of the version number.
1919
If major functionality is being added, or there will need to be gestation time for a change, it should be submitted against the __feature__ branch.
2020

2121
Revisions of this nature will result in a 0.X.X change of the version number.
22+
23+
## Commit message format
24+
25+
To support our automated release process, pull requests are required to follow the [Conventional Commit](https://www.conventionalcommits.org/en/v1.0.0/)
26+
format.
27+
28+
Each commit message consists of a **header**, an optional **body** and an optional **footer**. The header is the first line of the commit and
29+
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.
30+
31+
```
32+
<type>[optional scope]: <short description>
33+
<BLANK LINE>
34+
<optional body>
35+
<BLANK LINE>
36+
<optional footer(s)>
37+
```
38+
39+
The recommended commit types used are:
40+
41+
- **feat** for feature updates (increments the _minor_ version)
42+
- **fix** for bug fixes (increments the _patch_ version)
43+
- **perf** for performance related changes e.g. optimizing an algorithm
44+
- **refactor** for code refactoring changes
45+
- **test** for test suite updates e.g. adding a test or fixing a test
46+
- **style** for changes that don't affect the meaning of code. e.g. formatting changes
47+
- **docs** for documentation updates e.g. ReadMe update or code documentation updates
48+
- **build** for build system changes (gradle updates, external dependency updates)
49+
- **ci** for CI configuration file changes e.g. updating a pipeline
50+
- **chore** for miscallaneous non-sdk changesin the repo e.g. removing an unused file
51+
52+
Adding a footer with the prefix **BREAKING CHANGE:** will cause an increment of the _major_ version.
53+

msgraph/_version.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
# The SDK version
2+
# x-release-please-start-version
13
VERSION: str = '1.5.0'
4+
# x-release-please-end

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "msgraph-sdk"
7+
# The SDK version
8+
# x-release-please-start-version
79
version = "1.5.0"
10+
# x-release-please-end
811
authors = [{name = "Microsoft", email = "graphtooling+python@microsoft.com"}]
912
description = "The Microsoft Graph Python SDK"
1013
dependencies = [

release-please-config.json

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

scripts/incrementMinorVersion.ps1

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)