Skip to content

Commit 267881d

Browse files
authored
Merge pull request #85 from ChaoLing140/setup-cicd-pipeline-github-actions
feat: setup CI/CD pipeline with GitHub Actions
2 parents c5f4795 + ccdb3a7 commit 267881d

12 files changed

Lines changed: 1448 additions & 0 deletions

File tree

.github/CODEOWNERS

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Code owners for ChainBridge
2+
3+
# Default owners
4+
* @ChaoLing140
5+
6+
# Smart contracts
7+
smartcontract/ @ChaoLing140
8+
9+
# Relayer
10+
relayer/ @ChaoLing140
11+
12+
# Frontend
13+
frontend/ @ChaoLing140
14+
15+
# Backend
16+
backend/ @ChaoLing140
17+
18+
# Tests
19+
tests/ @ChaoLing140
20+
21+
# CI/CD
22+
.github/ @ChaoLing140
23+
24+
# Documentation
25+
docs/ @ChaoLing140
26+
*.md @ChaoLing140
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
name: Bug Report
3+
about: Report a bug in ChainBridge
4+
title: '[BUG] '
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
## Description
10+
A clear and concise description of the bug.
11+
12+
## Steps to Reproduce
13+
1. Go to '...'
14+
2. Click on '....'
15+
3. Scroll down to '....'
16+
4. See error
17+
18+
## Expected Behavior
19+
A clear and concise description of what you expected to happen.
20+
21+
## Actual Behavior
22+
A clear and concise description of what actually happened.
23+
24+
## Screenshots
25+
If applicable, add screenshots to help explain your problem.
26+
27+
## Environment
28+
- OS: [e.g., Ubuntu 22.04]
29+
- Node.js version: [e.g., 18.17.0]
30+
- Rust version: [e.g., 1.75.0]
31+
- Python version: [e.g., 3.11.0]
32+
- ChainBridge version/commit: [e.g., v0.1.0 or commit hash]
33+
34+
## Logs
35+
```
36+
Paste any relevant logs here
37+
```
38+
39+
## Additional Context
40+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 📖 Documentation
4+
url: https://github.com/floxxih/ChainBridge/blob/master/README.md
5+
about: Check the documentation for usage guides and setup instructions
6+
- name: 💬 Discussions
7+
url: https://github.com/floxxih/ChainBridge/discussions
8+
about: Ask questions and discuss ideas with the community
9+
- name: 🔒 Security Issues
10+
url: security@chainbridge.io
11+
about: Report security vulnerabilities privately
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Feature Request
3+
about: Suggest a new feature for ChainBridge
4+
title: '[FEATURE] '
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
## Description
10+
A clear and concise description of the feature you'd like to see.
11+
12+
## Problem Statement
13+
What problem does this feature solve? Why is it needed?
14+
15+
## Proposed Solution
16+
A clear and concise description of what you want to happen.
17+
18+
## Alternatives Considered
19+
A clear and concise description of any alternative solutions or features you've considered.
20+
21+
## Use Cases
22+
Describe specific use cases for this feature.
23+
24+
## Implementation Ideas
25+
If you have ideas on how to implement this feature, describe them here.
26+
27+
## Additional Context
28+
Add any other context or screenshots about the feature request here.
29+
30+
## Would you be willing to implement this feature?
31+
- [ ] Yes, I'd like to submit a PR for this feature
32+
- [ ] I can help with testing
33+
- [ ] I can help with documentation

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
name: Pull Request Template
3+
about: Submit changes to ChainBridge
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
## Description
10+
Brief description of changes.
11+
12+
## Type of Change
13+
- [ ] Bug fix (non-breaking change which fixes an issue)
14+
- [ ] New feature (non-breaking change which adds functionality)
15+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
16+
- [ ] Documentation update
17+
- [ ] Code refactoring
18+
- [ ] Performance improvement
19+
- [ ] Test improvement
20+
21+
## Related Issues
22+
Closes #(issue number)
23+
24+
## Changes Made
25+
List the changes made:
26+
-
27+
-
28+
-
29+
30+
## Testing
31+
Describe the tests you ran to verify your changes:
32+
- [ ] Unit tests added/updated
33+
- [ ] Integration tests added/updated
34+
- [ ] Manual testing performed
35+
36+
### Test Results
37+
```
38+
Paste test output here
39+
```
40+
41+
## Screenshots (if applicable)
42+
Add screenshots to help explain your changes.
43+
44+
## Checklist
45+
- [ ] My code follows the style guidelines of this project
46+
- [ ] I have performed a self-review of my own code
47+
- [ ] I have commented my code, particularly in hard-to-understand areas
48+
- [ ] I have made corresponding changes to the documentation
49+
- [ ] My changes generate no new warnings
50+
- [ ] I have added tests that prove my fix is effective or that my feature works
51+
- [ ] New and existing unit tests pass locally with my changes
52+
- [ ] Any dependent changes have been merged and published
53+
54+
## Additional Notes
55+
Add any other notes for reviewers.

.github/dependabot.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "cargo"
4+
directory: "/smartcontract"
5+
schedule:
6+
interval: "weekly"
7+
day: "monday"
8+
time: "06:00"
9+
open-pull-requests-limit: 5
10+
reviewers:
11+
- "ChaoLing140"
12+
labels:
13+
- "dependencies"
14+
- "rust"
15+
commit-message:
16+
prefix: "deps"
17+
include: "scope"
18+
19+
- package-ecosystem: "cargo"
20+
directory: "/relayer"
21+
schedule:
22+
interval: "weekly"
23+
day: "monday"
24+
time: "06:00"
25+
open-pull-requests-limit: 5
26+
reviewers:
27+
- "ChaoLing140"
28+
labels:
29+
- "dependencies"
30+
- "rust"
31+
commit-message:
32+
prefix: "deps"
33+
include: "scope"
34+
35+
- package-ecosystem: "cargo"
36+
directory: "/tests"
37+
schedule:
38+
interval: "weekly"
39+
day: "monday"
40+
time: "06:00"
41+
open-pull-requests-limit: 5
42+
reviewers:
43+
- "ChaoLing140"
44+
labels:
45+
- "dependencies"
46+
- "rust"
47+
- "testing"
48+
commit-message:
49+
prefix: "deps"
50+
include: "scope"
51+
52+
- package-ecosystem: "pip"
53+
directory: "/backend"
54+
schedule:
55+
interval: "weekly"
56+
day: "monday"
57+
time: "06:00"
58+
open-pull-requests-limit: 5
59+
reviewers:
60+
- "ChaoLing140"
61+
labels:
62+
- "dependencies"
63+
- "python"
64+
commit-message:
65+
prefix: "deps"
66+
include: "scope"
67+
68+
- package-ecosystem: "npm"
69+
directory: "/frontend"
70+
schedule:
71+
interval: "weekly"
72+
day: "monday"
73+
time: "06:00"
74+
open-pull-requests-limit: 5
75+
reviewers:
76+
- "ChaoLing140"
77+
labels:
78+
- "dependencies"
79+
- "javascript"
80+
- "typescript"
81+
commit-message:
82+
prefix: "deps"
83+
include: "scope"
84+
ignore:
85+
- dependency-name: "*"
86+
update-types: ["version-update:semver-patch"]
87+
88+
- package-ecosystem: "github-actions"
89+
directory: "/"
90+
schedule:
91+
interval: "weekly"
92+
day: "monday"
93+
time: "06:00"
94+
open-pull-requests-limit: 3
95+
reviewers:
96+
- "ChaoLing140"
97+
labels:
98+
- "dependencies"
99+
- "github-actions"
100+
commit-message:
101+
prefix: "ci"
102+
include: "scope"

0 commit comments

Comments
 (0)