Skip to content

Commit e44fb76

Browse files
author
Eric Ball
authored
Initial commit
0 parents  commit e44fb76

File tree

4 files changed

+128
-0
lines changed

4 files changed

+128
-0
lines changed

.github/Contributing.md

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
## <a name="commit"></a> Commit Message Guidelines
2+
3+
We have very precise rules over how our git commit messages can be formatted. This leads to **more readable messages** that are easy to follow when looking through the **project history**. For full contribution guidelines visit
4+
the [Contributors Guide](https://wiki.edgexfoundry.org/display/FA/Committing+Code+Guidelines#CommittingCodeGuidelines-Commits) on the EdgeX Wiki
5+
6+
### Commit Message Format
7+
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special format that includes a **type**, a **scope** and a **subject**:
8+
9+
```
10+
<type>(<scope>): <subject>
11+
<BLANK LINE>
12+
<body>
13+
<BLANK LINE>
14+
<footer>
15+
```
16+
17+
The **header** with **type** is mandatory. The **scope** of the header is optional. This repository has no predefined scopes. A custom scope can be used for clarity if desired.
18+
19+
Any line of the commit message cannot be longer 100 characters! This allows the message to be easier to read on GitHub as well as in various git tools.
20+
21+
The footer should contain a [closing reference to an issue](https://help.github.com/articles/closing-issues-via-commit-messages/) if any.
22+
23+
Example 1:
24+
```
25+
feat: add new device wizard
26+
```
27+
28+
Example 2:
29+
```
30+
fix: correct default database port configuration
31+
32+
Previously configuration used to the wrong default database port. This commit fixes the default database port for Redis in the configuration.
33+
34+
Closes: #123
35+
```
36+
37+
### Revert
38+
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
39+
40+
### Type
41+
Must be one of the following:
42+
43+
* **feat**: A new feature
44+
* **fix**: A bug fix
45+
* **docs**: Documentation only changes
46+
* **style**: Changes that do not affect the meaning of the code (white-space, formatting, etc)
47+
* **refactor**: A code change that neither fixes a bug nor adds a feature
48+
* **perf**: A code change that improves performance
49+
* **test**: Adding missing tests or correcting existing tests
50+
* **build**: Changes that affect the CI/CD pipeline or build system or external dependencies (example scopes: travis, jenkins, makefile)
51+
* **ci**: Changes provided by DevOps for CI purposes.
52+
* **revert**: Reverts a previous commit.
53+
54+
### Scope
55+
There are no predefined scopes for this repository. A custom scope can be provided for clarity.
56+
57+
### Subject
58+
The subject contains a succinct description of the change:
59+
60+
* use the imperative, present tense: "change" not "changed" nor "changes"
61+
* don't capitalize the first letter
62+
* no dot (.) at the end
63+
64+
### Body
65+
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
66+
The body should include the motivation for the change and contrast this with previous behavior.
67+
68+
### Footer
69+
The footer should contain any information about **Breaking Changes** and is also the place to
70+
reference GitHub issues that this commit **Closes**.
71+
72+
**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
73+

.github/PULL_REQUEST_TEMPLATE.md

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
## PR Checklist
2+
Please check if your PR fulfills the following requirements:
3+
4+
- [ ] Tests for the changes have been added (for bug fixes / features)
5+
- [ ] Docs have been added / updated (for bug fixes / features)
6+
7+
**If your build fails** due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-examples/blob/master/.github/CONTRIBUTING.md.
8+
9+
## What is the current behavior?
10+
<!-- Please describe the current behavior and link to a relevant issue. -->
11+
12+
13+
## Issue Number:
14+
15+
16+
## What is the new behavior?
17+
18+
19+
## Does this PR introduce a breaking change?
20+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
21+
22+
- [ ] Yes
23+
- [ ] No
24+
25+
## New Imports
26+
Are there any new imports or modules? If so, what are they used for and why?
27+
28+
## Specific Instructions
29+
Are there any specific instructions or things that should be known prior to reviewing?
30+
31+
32+
## Other information

.github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
# Maintain dependencies for Go modules
4+
- package-ecosystem: "gomod"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"

.github/semantic.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
allowMergeCommits: true
2+
# Always validate the PR title AND all the commits
3+
titleAndCommits: true
4+
types:
5+
- feat
6+
- fix
7+
- docs
8+
- style
9+
- refactor
10+
- perf
11+
- test
12+
- build
13+
- ci
14+
- revert
15+
16+

0 commit comments

Comments
 (0)