Skip to content

Commit db3587c

Browse files
committed
feat: init project
1 parent 669e751 commit db3587c

File tree

143 files changed

+42835
-6
lines changed

Some content is hidden

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

143 files changed

+42835
-6
lines changed
+88
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Bug Report
2+
description: Create a report to help us improve
3+
body:
4+
- type: textarea
5+
id: description
6+
attributes:
7+
label: Describe the bug
8+
description: A clear and concise description of what the bug is.
9+
validations:
10+
required: true
11+
- type: textarea
12+
id: repro
13+
attributes:
14+
label: Steps To Reproduce
15+
description: How do you trigger this bug? Please walk us through it step by step.
16+
value: |
17+
Steps to reproduce the behavior:
18+
1. Go to '...'
19+
2. Click on '....'
20+
3. Scroll down to '....'
21+
4. See error
22+
render: typescript
23+
validations:
24+
required: true
25+
- type: textarea
26+
id: behavior
27+
attributes:
28+
label: Expected behavior
29+
description: A clear and concise description of what you expected to happen.
30+
validations:
31+
required: true
32+
- type: input
33+
id: swiftchat-version
34+
attributes:
35+
label: App Version
36+
placeholder: e.g. 1.0.0
37+
validations:
38+
required: true
39+
- type: input
40+
id: react-native-version
41+
attributes:
42+
label: React Native version
43+
placeholder: e.g. 0.73.5
44+
validations:
45+
required: true
46+
- type: input
47+
id: platform
48+
attributes:
49+
label: The platform of the bug
50+
placeholder: |
51+
- e.g. Android/iOS/Mac/All
52+
validations:
53+
required: true
54+
- type: textarea
55+
id: logs
56+
attributes:
57+
label: Relevant log output
58+
description: >-
59+
Include any relevant log output
60+
value: |
61+
<details>
62+
<summary>Log Messages</summary>
63+
64+
```
65+
INSERT LOG MESSAGES HERE
66+
```
67+
</details>
68+
render: shell
69+
- type: dropdown
70+
id: regression
71+
attributes:
72+
label: Is this a regression?
73+
multiple: false
74+
options:
75+
- "Yes"
76+
- "No"
77+
validations:
78+
required: true
79+
- type: textarea
80+
id: regression-info
81+
attributes:
82+
label: Regression additional context
83+
placeholder: If it was a regression provide the versions used before and after the upgrade.
84+
- type: textarea
85+
id: context
86+
attributes:
87+
label: Additional context
88+
description: Add any other context about the problem here.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Feature request
2+
description: Suggest an idea for this project
3+
body:
4+
- type: textarea
5+
id: description
6+
attributes:
7+
label: Is your feature request related to a problem? Please describe.
8+
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
validations:
10+
required: true
11+
12+
- type: textarea
13+
id: proposal
14+
attributes:
15+
label: Describe the solution you'd like
16+
description: A clear and concise description of what you want to happen.
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
id: alternatives
22+
attributes:
23+
label: Describe alternatives you've considered
24+
description: A clear and concise description of any alternative solutions or features you've considered.
25+
validations:
26+
required: true
27+
28+
- type: textarea
29+
id: context
30+
attributes:
31+
label: Additional context
32+
description: Add any other context about the problem here.

.github/PULL_REQUEST_TEMPLATE.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
## Issue \#
2+
<!-- If applicable, please link to issue(s) this change addresses -->
3+
4+
## Description
5+
<!-- Why is this change required? What problem does it solve? -->
6+
7+
## General Checklist
8+
<!-- Check or cross out if not relevant -->
9+
10+
- [ ] The code changes have been fully tested
11+
- [ ] Security oriented best practices and standards are followed (e.g. using input sanitization, principle of the least privilege, etc.)
12+
- [ ] Documentation update for the change if required
13+
- [ ] PR title conforms to conventional commit style
14+
- [ ] If breaking change, documentation/changelog update with migration instructions
15+
16+
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT-0 license.

.github/release.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
changelog:
2+
categories:
3+
- title: Feature
4+
labels:
5+
- enhancement
6+
- title: Fix
7+
labels:
8+
- bug
9+
- title: Other Changes
10+
labels:
11+
- "*"

.github/workflows/build-android.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build for Android
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build-android:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-java@v4
15+
with:
16+
distribution: 'corretto'
17+
java-version: '17'
18+
- name: Run build apk
19+
run: |
20+
cd react-native && npm i
21+
cd android
22+
./gradlew assembleDebug

.github/workflows/build-ios.yml

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Build for iOS
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build-ios:
11+
runs-on: macos-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Run build ios
15+
run: |
16+
cd react-native && npm i
17+
cd ios && pod install && cd ..
18+
npm run build:ios

.github/workflows/code-lint.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Code Lint
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
code-lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Run package install
15+
run: cd react-native && npm i
16+
- name: Run code format
17+
run: cd react-native && npm run format
18+
- name: Run code lint
19+
run: cd react-native && npm run lint
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release Template
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
reason:
7+
description: 'the reason for triggering this workflow'
8+
required: false
9+
default: 'manually publish the ecr images and templates'
10+
jobs:
11+
release_template:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write
15+
contents: read
16+
env:
17+
iam_role_to_assume: ${{ secrets.ROLE_ARN }}
18+
steps:
19+
- name: Set up QEMU
20+
uses: docker/setup-qemu-action@v3
21+
- name: Set up Docker Buildx
22+
uses: docker/setup-buildx-action@v3
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0
27+
- name: Configure AWS Credentials
28+
if: ${{ env.iam_role_to_assume != '' }}
29+
uses: aws-actions/configure-aws-credentials@v4
30+
with:
31+
role-to-assume: ${{ env.iam_role_to_assume }}
32+
aws-region: us-east-1
33+
- name: Build and Publish
34+
run: |-
35+
cd server/scripts
36+
bash push-to-ecr.sh
37+
- name: Copy Deployment Templates to S3
38+
env:
39+
S3_BUCKET: ${{ secrets.ASSET_BUCKET }}
40+
S3_PREFIX: swift-chat/latest/
41+
run: aws s3 sync server/template/ s3://$S3_BUCKET/$S3_PREFIX --acl public-read

.github/workflows/title-lint.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Commit Title Lint
2+
3+
on:
4+
pull_request:
5+
branches: [ "*" ]
6+
7+
jobs:
8+
title-lint:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write
12+
steps:
13+
- uses: amannn/action-semantic-pull-request@v5
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
with:
17+
types: |-
18+
feat
19+
fix
20+
chore
21+
docs
22+
ci
23+
tests
24+
requireScope: false

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
.idea

0 commit comments

Comments
 (0)