-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
chore(release): set up conventional commit changelog tool. Part of #3920 #4033
Changes from 10 commits
2e9eb76
d337ea8
bf5136c
ab8866f
6815aab
78bff2c
de82f4c
2bdb7c5
1ab3107
9ca846b
393d84d
f0df84d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,14 @@ | |
|
||
|
||
**Checklist:** | ||
- [ ] PR title should follow our convention. Examples: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggested revision:
|
||
* `"fix(frontend): fixes empty page. Fixes #1234"` | ||
* `"feat(backend): configurable service account. Fixes #1234, fixes #1235"` | ||
* `"chore: refactor some files"` | ||
* `"test: fix CI failure. Part of #1234"` // use "part of" when a PR is an work item of some issue, but shouldn't close the issue when merged. | ||
|
||
Read more about the format we use in [CONTRIBUTING.md](https://github.com/kubeflow/pipelines/blob/master/CONTRIBUTING.md#pull-request-title-convention). | ||
|
||
- [ ] Do you want this PR cherry picked to release branch? | ||
|
||
If yes, please either | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,66 @@ use GitHub pull requests for this purpose. Consult | |
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more | ||
information on using pull requests. | ||
|
||
## Pull Request Title Convention | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @joeliedtke and this section |
||
|
||
We enforce a PR title convention to quickly indicate type and scope of a PR. | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
We also parse it programmatically for changelog generation. | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
PR titles should | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* be a user facing description of the change | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* be [conventional](https://www.conventionalcommits.org/en/v1.0.0/) | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* append fixed issue(s) at the end (if any) | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Examples: | ||
* `"fix(ui): fixes empty page. Fixes #1234"` | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* `"feat(backend): configurable service account. Fixes #1234, fixes #1235"` | ||
* `"chore: refactor some files"` | ||
* `"test: fix CI failure. Part of #1234"` // use "part of" when a PR is an work item of some issue, but shouldn't close the issue when merged. | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
A quick summary of the conventions we care about: | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
### PR Title Structure | ||
``` | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<type>[optional scope]: <description> [Fixes #<issue-number>] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Currently, the variable substitutions are inconsistent. Consider changing this to something like:
Also consider adding a section like the following below the code block: Replace the following:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess sth not clear is that, there's a syntax that uses The replace the following section is really helpful. Gonna add it, thanks! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please take a look at new revision |
||
``` | ||
### PR Type | ||
Type can be one of | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* feat: A new feature | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* fix: A bug fix (however a bug fix to test infra is not user facing, so it should be test type instead) | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* docs: Documentation only changes | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* chore: Anything else that do not need to be user facing | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* test: Adding missing tests or correcting existing tests | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* refactor: A code change that neither fixes a bug nor adds a feature | ||
* perf: A code change that improves performance | ||
|
||
Note, only feature and fix type PRs will be included in CHANGELOG, because they are | ||
user facing. | ||
|
||
If you think the PR contains multiple types, you can choose the major one or | ||
split the PR to focused sub-PRs. | ||
|
||
If you are not sure which type your PR is and it does not have user impact, | ||
use `chore` as the fallback. | ||
|
||
### PR Scope | ||
Scope is optional, it can be one of | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* frontend - UI or UI server related, folder `frontend`, `frontend/server` | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* backend - Backend, folder `backend` | ||
* sdk - `kfp` python package, folder `sdk` | ||
* sdk/client - `kfp-server-api` python package, folder `backend/api/python_http_client` | ||
* components - Pipeline components, folder `components` | ||
* deployment - Kustomize or gcp marketplace manifests, folder `manifests` | ||
* metadata - Related to machine learning metadata (MLMD), folder `backend/metadata_writer` | ||
* cache - Caching, folder `backend/src/cache` | ||
* swf - Scheduled workflow, folder `backend/src/crd/controller/scheduledworkflow` | ||
* viewer - Tensorboard viewer, folder `backend/src/crd/controller/viewer` | ||
|
||
If you think the PR is related to multiple scopes, you can choose the major one or | ||
split the PR to focused sub-PRs. Note, suggest splitting a huge PR because different scopes | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
usually have different reviewers, it helps getting through the review process faster too. | ||
|
||
If you are not sure, or the PR doesn't fit into above scopes. You can either | ||
omit the scope because it's optional, or propose an additional scope here. | ||
Bobgy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
## Community Guidelines | ||
|
||
This project follows | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.0.0-dev.2 | ||
1.0.0-dev.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joeliedtke Can you also review this section?
Thanks!