Skip to content

Commit dd5d1ce

Browse files
update(opensource): Now 01cloud-support is opensource project
0 parents  commit dd5d1ce

65 files changed

Lines changed: 14754 additions & 0 deletions

Some content is hidden

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

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 2
9+
trim_trailing_whitespace = true
10+
11+
[*.go]
12+
indent_style = tab
13+
14+
[Makefile]
15+
indent_style = tab
16+
trim_trailing_whitespace = false

.env.sample

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
GRPC_SERVER_PORT=50051
2+
3+
DB_TYPE=postgres
4+
DB_HOST=localhost
5+
DB_PORT=5432
6+
DB_USER=postgres
7+
DB_NAME=test
8+
DB_PASSWORD=password
9+
10+
DB_NAME_TEST=test_db
11+
RUNMODE=debug
12+
ADMIN_ID=7,8,9,10
13+
14+
HTTP_SERVER_PORT=5000
15+
GRPC_SUPPORT_SERVER=localhost:50051
16+
GRPC_NOTIFICATION_SERVER=localhost:50052
17+
TICKET_API=http://localhost:5000
18+
HOST_URL=http://localhost:5000
19+
SUPPORT_EMAILS=support@example.com
20+
21+
SMTP_FROM_ADDRESS=noreply@01cloud.com
22+
SMTP_HOST=smtp.sendgrid.net
23+
SMTP_PORT=587
24+
SMTP_USERNAME=apikey
25+
SMTP_PASSWORD=***********************************

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* text=auto eol=lf
2+
3+
*.bat text eol=crlf
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Bug report
2+
description: Report a reproducible problem in 01CLOUD-SUPPORT
3+
title: "[Bug]: "
4+
labels:
5+
- bug
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Thanks for taking the time to report a bug.
11+
- type: textarea
12+
id: description
13+
attributes:
14+
label: What happened?
15+
description: Describe the bug and what you expected to happen.
16+
placeholder: A clear and concise description of the problem.
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: steps
21+
attributes:
22+
label: Steps to reproduce
23+
description: Share the smallest reproducible set of steps.
24+
placeholder: |
25+
1. Start the server with ...
26+
2. Call endpoint ...
27+
3. Observe ...
28+
validations:
29+
required: true
30+
- type: textarea
31+
id: environment
32+
attributes:
33+
label: Environment
34+
description: Include versions and relevant local setup.
35+
placeholder: |
36+
- OS:
37+
- Go version:
38+
- Database:
39+
- Commit or branch:
40+
- type: textarea
41+
id: logs
42+
attributes:
43+
label: Logs or screenshots
44+
description: Paste logs or attach screenshots if they help explain the issue.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Security reports
4+
url: mailto:security@berrybytes.com
5+
about: Please report vulnerabilities privately.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Feature request
2+
description: Suggest an improvement for 01CLOUD-SUPPORT
3+
title: "[Feature]: "
4+
labels:
5+
- enhancement
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: |
10+
Thanks for suggesting an improvement.
11+
- type: textarea
12+
id: problem
13+
attributes:
14+
label: Problem to solve
15+
description: What problem are you trying to solve?
16+
placeholder: A clear and concise description of the problem or opportunity.
17+
validations:
18+
required: true
19+
- type: textarea
20+
id: proposal
21+
attributes:
22+
label: Proposed solution
23+
description: Describe the change you would like to see.
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: alternatives
28+
attributes:
29+
label: Alternatives considered
30+
description: Share any alternative approaches you have considered.
31+
- type: textarea
32+
id: context
33+
attributes:
34+
label: Additional context
35+
description: Add links, examples, or related discussion here.

.github/PULL_REQUEST_TEMPLATE.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Pull Request
2+
3+
## Summary
4+
5+
Describe the change and the user or maintainer impact.
6+
7+
## Related Issue
8+
9+
Link the issue this PR closes or relates to.
10+
11+
Closes #
12+
13+
## Testing
14+
15+
Describe how this was tested.
16+
17+
## Checklist
18+
19+
- [ ] I linked the relevant issue, if one exists
20+
- [ ] I added or updated tests where appropriate
21+
- [ ] I updated docs or examples where needed
22+
- [ ] I ran `make test-dev`
23+
- [ ] I ran `make lint` or documented why it was skipped

.github/mergeable.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
version: 2
2+
mergeable:
3+
- when: pull_request.*, pull_request_review.*
4+
validate:
5+
# Validate PR title
6+
- do: title
7+
must_include:
8+
regex: '^(feat|docs|chore|fix|refactor|test|style|perf)(\(\w+\))?: .{5,}'
9+
message: "Semantic release conventions must be followed. Example: feat(auth): add login page. Title must be at least 5 characters after the prefix."
10+
11+
# Ensure PR description is provided
12+
- do: description
13+
must_include:
14+
regex: "[\\s\\S]{20,}" # At least 20 characters
15+
message: "Please provide a meaningful description of the PR (minimum 20 characters)."
16+
17+
# Ensure PR references an associated issue
18+
- do: description
19+
must_include:
20+
regex: "(Closes|Fixes|Resolves|Addresses)\\s+#[0-9]+(,?\\s*#[0-9]+)*"
21+
message: "PR must reference at least one issue (e.g., Closes #123, Fixes #123, #124)."
22+
23+
# Ensure at least one required label is applied
24+
- do: label
25+
must_include:
26+
regex: "^(bug|enhancement|documentation|feature|refactor|performance|chore|wip|test|ci|security|dependencies)$"
27+
message: "PR must include at least one valid label."
28+
# Ensure PR has at least one assignee
29+
30+
- do: assignee
31+
min:
32+
count: 1
33+
message: "PR must have at least one assignee."
34+
# Ensure PR has at least one reviewer requested
35+
- do: approvals
36+
min:
37+
count: 1
38+
message: "PR must have at least one reviewer requested or approved."
39+
40+
pass:
41+
- do: labels
42+
add:
43+
- "validated"
44+
- do: checks
45+
status: "success"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: 5. Notification (Github-Event)
2+
3+
4+
permissions:
5+
issues: write
6+
pull-requests: write
7+
contents: read
8+
9+
10+
on:
11+
issues:
12+
types: [opened, edited, reopened, closed, assigned, labeled]
13+
pull_request:
14+
types: [opened, closed, reopened, ready_for_review, review_requested]
15+
pull_request_review:
16+
types: [submitted, edited, dismissed]
17+
issue_comment:
18+
types: [created, edited]
19+
pull_request_review_comment:
20+
types: [created, edited]
21+
22+
jobs:
23+
notify:
24+
uses: BerryBytes/workflows/.github/workflows/notifications.yaml@main
25+
secrets:
26+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
27+
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
28+
GOOGLE_CHAT_WEBHOOK: ${{ secrets.GOOGLE_CHAT_WEBHOOK }}

.github/workflows/lint.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 1. Lint Workflow
2+
on:
3+
push:
4+
branches:
5+
- feature/**
6+
- feat/**
7+
- fix/**
8+
- fixes/**
9+
- hotfix/**
10+
- refactor/**
11+
- enhance/**
12+
- test/**
13+
jobs:
14+
lint:
15+
name: Lint
16+
secrets: inherit
17+
uses: BerryBytes/workflows/.github/workflows/lint.yaml@main
18+
test:
19+
name: Test
20+
secrets: inherit
21+
uses: BerryBytes/workflows/.github/workflows/test.yaml@main

0 commit comments

Comments
 (0)