Skip to content

Commit 79c6519

Browse files
calebkiagebaywet
authored andcommitted
ci: add release please bot
1 parent aa648d1 commit 79c6519

File tree

6 files changed

+90
-9
lines changed

6 files changed

+90
-9
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
name: release-please
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: google-github-actions/release-please-action@v4
17+
with:
18+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }} # TODO: Create this token with repo
19+
config-file: release-please-config.json # Set to update gradle.properties & pom.xml
20+
manifest-file: .release-please-manifest.json
21+
target-branch: main

.release-please-manifest.json

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

CHANGELOG.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +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-
8-
## [Unreleased]
9-
10-
### Added
11-
12-
### Changed
13-
145
## [6.6.0] - 2024-04-16
156

167
### Added

CONTRIBUTING.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,37 @@ Revisions of this nature will result in a 0.X.X change of the version number.
2525

2626
All the code of the current repository is being generated automatically by the [SDK generator](https://github.com/microsoftgraph/MSGraph-SDK-Code-Generator/) in which any change must be reflected.
2727

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

3061
This project follows the [all contributors](https://github.com/kentcdodds/all-contributors) specification. When making a contribution, please add yourself to the table of contributors:

gradle.properties

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@ org.gradle.caching=true
2525

2626
mavenGroupId = com.microsoft.graph
2727
mavenArtifactId = microsoft-graph
28+
# x-release-please-start-major
2829
mavenMajorVersion = 6
30+
# x-release-please-end
31+
# x-release-please-start-minor
2932
mavenMinorVersion = 6
33+
# x-release-please-end
34+
# x-release-please-start-patch
3035
mavenPatchVersion = 0
36+
# x-release-please-end
3137
mavenArtifactSuffix =
3238

3339
#These values are used to run functional tests

release-please-config.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"bootstrap-sha": "TODO: Update this value",
3+
"exclude-paths": [
4+
".git",
5+
".idea",
6+
".github",
7+
".vscode"
8+
],
9+
"release-type": "java",
10+
"include-component-in-tag": false,
11+
"include-v-in-tag": true,
12+
"packages": {
13+
".": {
14+
"package-name": "com.microsoft.graph.microsoft-graph",
15+
"changelog-path": "CHANGELOG.md",
16+
"extra-files": [
17+
{
18+
"type": "generic",
19+
"path": "gradle.properties"
20+
},
21+
{
22+
"type": "pom",
23+
"path": "pom.xml"
24+
}
25+
]
26+
}
27+
},
28+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
29+
}

0 commit comments

Comments
 (0)