Skip to content

Commit 73612d9

Browse files
authored
Merge pull request #439 from microsoftgraph/shem/add_release_please_configuration
Add release pleae configuration
2 parents 5652329 + 2b9e788 commit 73612d9

File tree

9 files changed

+68
-41
lines changed

9 files changed

+68
-41
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 & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +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 "chore: Update version"
35-
git push origin ${{ github.ref }}
36-
3712
build:
38-
needs: [version]
3913
uses: ./.github/workflows/build.yml
4014

4115
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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +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).
7-
85
## [1.5.0] - 2024-05-23
96

107
### Changed

CONTRIBUTING.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,36 @@ Revisions of this nature will result in a 0.0.X change of the version number.
1818

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

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

msgraph_beta/_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-beta-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 Beta 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": "9096adb098e11bd5484335b5e08bd0c882db7407",
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_beta",
15+
"changelog-path": "CHANGELOG.md",
16+
"extra-files": [
17+
"pyproject.toml",
18+
"msgraph_beta/_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)