Skip to content
This repository was archived by the owner on Jun 6, 2024. It is now read-only.

Commit 373db2e

Browse files
committed
initial commit
0 parents  commit 373db2e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3641
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
29+
**Additional context**
30+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dist
2+
vendor
3+
datree
4+
.DS_STORE
5+
.vscode

.goreleaser.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This is an example .goreleaser.yml file with some sane defaults.
2+
# Make sure to check the documentation at http://goreleaser.com
3+
project_name: datree-cli
4+
release:
5+
prerelease: auto
6+
before:
7+
hooks:
8+
# you may remove this if you don't need go generate
9+
- go generate ./...
10+
builds:
11+
- env:
12+
- CGO_ENABLED=0
13+
binary: datree
14+
id: datree
15+
goos:
16+
- linux
17+
main: ./main.go
18+
flags:
19+
- -tags={{.Env.DATREE_DEPLOYMENT}}
20+
- env:
21+
- CGO_ENABLED=0
22+
binary: datree
23+
id: datree-macos
24+
goos:
25+
- darwin
26+
main: ./main.go
27+
flags:
28+
- -tags={{.Env.DATREE_DEPLOYMENT}}
29+
archives:
30+
- replacements:
31+
darwin: Darwin
32+
linux: Linux
33+
amd64: x86_64
34+
format: zip
35+
checksum:
36+
name_template: 'checksums.txt'
37+
snapshot:
38+
name_template: "{{ .Tag }}-next"
39+
changelog:
40+
sort: asc
41+
filters:
42+
exclude:
43+
- '^docs:'
44+
- '^test:'
45+

.travis.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
language: go
2+
3+
go:
4+
- 1.x
5+
6+
script:
7+
- go build -tags $DATREE_DEPLOYMENT
8+
- curl -sfL https://git.io/goreleaser | VERSION=v$GORELEASER_VERSION sh -s -- check
9+
10+
before_deploy:
11+
- git config --global user.email "[email protected]"
12+
- git config --global user.name "Travis CI"
13+
- export GIT_TAG=0.1.$TRAVIS_BUILD_NUMBER-$TRAVIS_BRANCH
14+
- git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"
15+
- git remote set-url origin https://datree-ci:[email protected]/datreeio/datree.git
16+
- git push --tags
17+
- ls -R
18+
- git stash save --keep-index --include-untracked
19+
20+
deploy:
21+
- provider: script
22+
skip_cleanup: true
23+
script: curl -sL https://git.io/goreleaser | VERSION=v$GORELEASER_VERSION bash
24+
on:
25+
all_branches: true
26+
condition: $TRAVIS_BRANCH =~ ^(staging)$
27+
28+
env:
29+
global:
30+
# GITHUB_TOKEN
31+
- secure: "ircKrCahc3fh1uufpwGDVcCu7oYx2awf4ZUyJeyWE7TmmW5BpY+1+yuppiyeYNDk6Lgq5mN/N19rNMLzGKFJtYIEXsN0iZI+YmSEXOTiKFH/Nze2a9PKZw5Ht3aCwrq+xRIrQEiSaRDQOGHxnH0OtGnlO+pMLqnnv+Szb2zsYc1/fIktJKfsAQdPPSONW2DnaNe5mJUdTH56OsHoDxSak6y8cqBcKZe1UwmQi+y1tzSdVZAkAOOpRpvPZu1qC4XwYeSyG0EFkYcUfmVg7GrwoCx9U71Unuk+wMuuPASiSIgLRT5xwfhIjDWYjR0lTE1wFtIV57CvrwqTi3oEXxRrvtT46AsUSOuJlaYNBIa/cgIieE+/fODy4C72RI2qzSzPS3AyYryVSb2nNmHXWtLYulHfNxx15B42UYeOWR3JRp14UNBZY6xM0Dqfj2SNeSqpRydVQR6TWiHg3fIh1fH+GHXMix8+3Jhp1a0fmgqw8akVeWwzKMx4+qZNN/H8BpSeoaKCOLWhodgFV0eQDKZ2YRGv+6s9Z3n0AbD1dflcY44CXxDmfi4MiXNWj5T1XjWTv6F9gn4np4dsMxTyyysjQv7Oo57BDA7/V7K1Qa9wP0FjUxDvaAAJ5qe2AEU30JK/eV8fUEaA+Eh4Jr+3OWCctgV6ngN/NIKZQ0Qceswp43I="
32+
- GORELEASER_VERSION="0.157.0"
33+
- DATREE_DEPLOYMENT=$TRAVIS_BRANCH

CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@datreeio/developers

CONTRIBUTING.md

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
# Contributing Guide
2+
3+
We would love for you to contribute to this project and help make it even better than it is today!
4+
As a contributor, here are the guidelines we would like you to follow:
5+
6+
- [Code of Conduct](#coc)
7+
- [Question or Problem?](#question)
8+
- [Issues and Bugs](#issue)
9+
- [Feature Requests](#feature)
10+
- [Submission Guidelines](#submit)
11+
- [Commit Message Guidelines](#commit)
12+
- [Signing the CLA](#cla)
13+
14+
15+
## <a name="coc"></a> Code of Conduct
16+
17+
Help us keep this community open and inclusive.
18+
19+
## <a name="question"></a> Got a Question or Problem?
20+
21+
Do not open issues for general support questions as we want to keep GitHub issues for bug reports and feature requests.
22+
Instead, we recommend using "[Discussions](https://github.com/datreeio/datree/discussions)" to ask support-related questions.
23+
You can also email is at [email protected].
24+
25+
26+
## <a name="issue"></a> Found a Bug?
27+
28+
If you find a bug in the source code, you can help us by [submitting an issue](#submit-issue) or even better, you can [submit a Pull Request](#submit-pr) with a fix.
29+
30+
31+
## <a name="feature"></a> Missing a Feature?
32+
You can *request* a new feature by [submitting an issue](#submit-issue) to our GitHub Repository.
33+
34+
## <a name="submit"></a> Submission Guidelines
35+
36+
37+
### <a name="submit-issue"></a> Submitting an Issue
38+
39+
Before you submit an issue, please search the issue tracker, maybe an issue for your problem already exists and the discussion might inform you of workarounds readily available.
40+
41+
We want to fix all the issues as soon as possible, but before fixing a bug we need to reproduce and confirm it.
42+
In order to reproduce bugs, we require that you provide a minimal reproduction.
43+
Having a minimal reproducible scenario gives us a wealth of important information without going back and forth to you with additional questions.
44+
45+
A minimal reproduction allows us to quickly confirm a bug (or point out a coding problem) as well as confirm that we are fixing the right problem.
46+
47+
We require a minimal reproduction to save maintainers' time and ultimately be able to fix more bugs.
48+
Often, developers find coding problems themselves while preparing a minimal reproduction.
49+
We understand that sometimes it might be hard to extract essential bits of code from a larger codebase but we really need to isolate the problem before we can fix it.
50+
51+
Unfortunately, we are not able to investigate / fix bugs without a minimal reproduction, so if we don't hear back from you, we are going to close an issue that doesn't have enough info to be reproduced.
52+
53+
You can file new issues by selecting from our [new issue templates](https://github.com/datreeio/datree/blob/issues-template/.github/ISSUE_TEMPLATE/bug_report.md) and filling out the issue template.
54+
55+
56+
### <a name="submit-pr"></a> Submitting a Pull Request (PR)
57+
58+
Before you submit your Pull Request (PR) consider the following guidelines:
59+
60+
1. Search [GitHub](https://github.com/datreeio/datree/pulls) for an open or closed PR that relates to your submission.
61+
You don't want to duplicate existing efforts.
62+
63+
2. Be sure that an issue describes the problem you're fixing, or documents the design for the feature you'd like to add.
64+
Discussing the design upfront helps to ensure that we're ready to accept your work.
65+
66+
3. Please sign our [Contributor License Agreement (CLA)](#cla) before sending PRs.
67+
We cannot accept code without a signed CLA.
68+
Make sure you author all contributed Git commits with email address associated with your CLA signature.
69+
70+
4. [Fork](https://docs.github.com/en/github/getting-started-with-github/fork-a-repo) the datreeio/datree repo.
71+
72+
5. In your forked repository, make your changes in a new git branch:
73+
74+
```shell
75+
git checkout -b my-fix-branch main
76+
```
77+
78+
6. Create your patch, **including appropriate test cases**.
79+
80+
7. Follow our [Coding Rules](#rules).
81+
82+
8. Run the full test suite, as described in the [developer documentation][dev-doc], and ensure that all tests pass.
83+
84+
9. Commit your changes using a descriptive commit message that follows our [commit message conventions](#commit).
85+
Adherence to these conventions is necessary because release notes are automatically generated from these messages.
86+
87+
```shell
88+
git commit --all
89+
```
90+
Note: the optional commit `-a` command line option will automatically "add" and "rm" edited files.
91+
92+
10. Push your branch to GitHub:
93+
94+
```shell
95+
git push origin my-fix-branch
96+
```
97+
98+
11. In GitHub, send a pull request to `datree:staging`.
99+
100+
### Reviewing a Pull Request
101+
102+
The maintainers team reserves the right not to accept pull requests from community members who haven't been good citizens of the community. Such behavior includes not following the code of conduct.
103+
104+
## <a name="commit"></a> Commit Message Format
105+
106+
*This specification is inspired by and supersedes the [AngularJS commit message format][commit-message-format].*
107+
108+
We have very precise rules over how our Git commit messages must be formatted.
109+
This format leads to **easier to read commit history**.
110+
111+
Each commit message **header** must conform to the [Commit Message Header](#commit-header) format.
112+
113+
#### <a name="commit-header"></a>Commit Message Header
114+
115+
```
116+
<type>: <short summary>
117+
```
118+
119+
##### Type
120+
121+
Must be one of the following:
122+
123+
* **build**: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
124+
* **ci**: Changes to our CI configuration files and scripts (example scopes: Travis CI, GitHub Actions, CircleCI)
125+
* **docs**: Documentation only changes
126+
* **feat**: A new feature
127+
* **fix**: A bug fix
128+
* **perf**: A code change that improves performance
129+
* **refactor**: A code change that neither fixes a bug nor adds a feature
130+
* **test**: Adding missing tests or correcting existing tests
131+
132+
133+
##### Short summary
134+
135+
Use the summary field to provide a succinct description of the change:
136+
137+
* use the imperative, present tense: "change" not "changed" nor "changes"
138+
* don't capitalize the first letter
139+
* no dot (.) at the end
140+
141+
## <a name="cla"></a> Signing the CLA
142+
143+
Please sign our Contributor License Agreement (CLA) before sending pull requests. For any code
144+
changes to be accepted, the CLA must be signed. It's a quick process, we promise!
145+
146+
For individuals and corporations, we have a [simple click-through form](https://cla-assistant.io/datreeio/datree).
147+
148+
If you have more than one GitHub accounts, or multiple email addresses associated with a single GitHub account, you must sign the CLA using the primary email address of the GitHub account used to author Git commits and send pull requests.
149+
150+
The following documents can help you sort out issues with GitHub accounts and multiple email addresses:
151+
152+
* https://help.github.com/articles/setting-your-commit-email-address-in-git/
153+
* https://stackoverflow.com/questions/37245303/what-does-usera-committed-with-userb-13-days-ago-on-github-mean
154+
* https://help.github.com/articles/about-commit-email-addresses/
155+
* https://help.github.com/articles/blocking-command-line-pushes-that-expose-your-personal-email-address/

0 commit comments

Comments
 (0)