Skip to content

Commit 7613ce9

Browse files
update(opensource):now 01cloud-backup is now opensource
0 parents  commit 7613ce9

48 files changed

Lines changed: 8379 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.

..revive.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
ignoreGeneratedHeader = false
2+
severity = "error"
3+
confidence = 0.8
4+
errorCode = 1
5+
warningCode = 0
6+
7+
[rule.blank-imports]
8+
[rule.context-as-argument]
9+
[rule.context-keys-type]
10+
[rule.dot-imports]
11+
[rule.error-return]
12+
[rule.error-strings]
13+
[rule.error-naming]
14+
[rule.exported]
15+
severity = "warning"
16+
[rule.if-return]
17+
[rule.increment-decrement]
18+
[rule.var-naming]
19+
[rule.var-declaration]
20+
[rule.package-comments]
21+
[rule.range]
22+
[rule.receiver-naming]
23+
[rule.time-naming]
24+
[rule.unexported-return]
25+
[rule.indent-error-flow]
26+
[rule.errorf]
27+
[rule.argument-limit]
28+
arguments = [4]
29+
[rule.function-result-limit]
30+
arguments = [3]
31+
[rule.empty-block]
32+
[rule.confusing-naming]
33+
[rule.superfluous-else]
34+
[rule.unused-parameter]
35+
[rule.unreachable-code]
36+
[rule.unnecessary-stmt]
37+
[rule.struct-tag]
38+
[rule.atomic]
39+
[rule.empty-lines]
40+
[rule.duplicated-imports]
41+
[rule.import-shadowing]
42+
[rule.confusing-results]
43+
[rule.modifies-parameter]
44+
[rule.redefines-builtin-id]

.dockerignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
bin
2+
.editorconfig
3+
.git
4+
AUTHORS.md
5+
CONTRIBUTING.md
6+
LICENSE
7+
Makefile
8+
NOTICE
9+
README.md
10+
arm/
11+
powerpc/
12+
mips/
13+
Dockerfile

.env.sample

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
DEBUG=true
3+
GRPC_SERVER_PORT=0.0.0.0:50051
4+
GCLOUD_PROJECT=
5+
GCLOUD_NAMESPACE=
6+
WS_SERVER=
7+
API_URL=
8+
API_SECRET=
9+
10+
DB_HOST=
11+
DB_PORT=
12+
DB_USER=
13+
DB_PASSWORD=
14+
DB_NAME=
15+
16+
DB_BACKUP_PATH=
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: Bug report
3+
about: Report a reproducible bug
4+
labels: bug
5+
---
6+
7+
## Description
8+
9+
Describe the bug.
10+
11+
## Steps to reproduce
12+
13+
1.
14+
2.
15+
3.
16+
17+
## Expected behavior
18+
19+
Describe expected behavior.
20+
21+
## Actual behavior
22+
23+
Describe actual behavior.
24+
25+
## Environment
26+
27+
- OS:
28+
- Go version:
29+
- Kubernetes version:
30+
- Velero version:
31+
32+
## Additional context
33+
34+
Add logs/screenshots/other context.

.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 vulnerability report
4+
url: mailto:security@01cloud.io
5+
about: Please report vulnerabilities privately.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Feature request
3+
about: Suggest an enhancement
4+
labels: enhancement
5+
---
6+
7+
## Problem
8+
9+
What problem does this solve?
10+
11+
## Proposed solution
12+
13+
Describe your solution.
14+
15+
## Alternatives considered
16+
17+
Describe alternatives you considered.
18+
19+
## Additional context
20+
21+
Add extra context, links, or examples.

.github/PULL_REQUEST_TEMPLATE.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Pull Request
2+
3+
## Summary
4+
5+
What does this PR change?
6+
7+
## Related Issue
8+
9+
Closes #
10+
11+
## Type of Change
12+
13+
- [ ] Bug fix
14+
- [ ] Feature
15+
- [ ] Refactor
16+
- [ ] Documentation
17+
- [ ] CI/Build/Tooling
18+
19+
## Validation
20+
21+
- [ ] I added/updated tests where needed
22+
- [ ] I ran formatting checks
23+
- [ ] I ran lint checks
24+
- [ ] I ran unit tests
25+
26+
## Notes
27+
28+
Any implementation details for reviewers.

.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)