Skip to content

Commit afe632c

Browse files
authored
chore: kickoff release
2 parents 8d8e354 + a36a848 commit afe632c

File tree

12 files changed

+309
-70
lines changed

12 files changed

+309
-70
lines changed
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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: swift
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: liveness-version
34+
attributes:
35+
label: Swift Liveness Version
36+
placeholder: e.g. 1.2.4
37+
validations:
38+
required: true
39+
- type: input
40+
id: xcode
41+
attributes:
42+
label: Xcode version
43+
placeholder: e.g. 14.3.1 (14E300c) -- run `xcodebuild -version`
44+
validations:
45+
required: true
46+
- type: textarea
47+
id: logs
48+
attributes:
49+
label: Relevant log output
50+
description: >-
51+
Include any relevant log
52+
value: |
53+
<details>
54+
<summary>Log Messages</summary>
55+
56+
```
57+
INSERT LOG MESSAGES HERE
58+
```
59+
</details>
60+
render: shell
61+
- type: dropdown
62+
id: regression
63+
attributes:
64+
label: Is this a regression?
65+
multiple: false
66+
options:
67+
- "Yes"
68+
- "No"
69+
validations:
70+
required: true
71+
- type: textarea
72+
id: regression-info
73+
attributes:
74+
label: Regression additional context
75+
placeholder: If it was a regression provide the versions used before and after the upgrade.
76+
- type: input
77+
id: os-version
78+
attributes:
79+
label: OS Version
80+
placeholder: e.g. iOS 15.3 / macOS 11.0
81+
validations:
82+
required: true
83+
- type: input
84+
id: device
85+
attributes:
86+
label: Device
87+
placeholder: e.g. iPhone6
88+
validations:
89+
required: true
90+
- type: input
91+
id: simulators
92+
attributes:
93+
label: Specific to simulators
94+
- type: textarea
95+
id: context
96+
attributes:
97+
label: Additional context
98+
description: Add any other context about the problem here.
Lines changed: 32 additions & 0 deletions
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/workflows/feature_request.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Feature request label added.
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
7+
permissions:
8+
issues: write
9+
10+
jobs:
11+
project:
12+
name: Feature request message
13+
runs-on: ubuntu-latest
14+
if: ${{ github.event.label.name == 'feature-request' }}
15+
16+
steps:
17+
- name: add feature request comment
18+
shell: bash
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
ISSUE_NUMBER: ${{ github.event.issue.number }}
22+
run: |
23+
gh issue comment $ISSUE_NUMBER --repo aws-amplify/amplify-ui-swift-liveness -b "This has been identified as a feature request. If this feature is important to you, we strongly encourage you to give a 👍 reaction on the request. This helps us prioritize new features most important to you. Thank you!"

.github/workflows/issue_closed.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Issue Closed
2+
3+
on:
4+
issues:
5+
types: [closed]
6+
7+
permissions:
8+
issues: write
9+
10+
jobs:
11+
cleanup-labels:
12+
runs-on: ubuntu-latest
13+
if: ${{ (contains(github.event.issue.labels.*.name, 'pending-response') || contains(github.event.issue.labels.*.name, 'closing soon') || contains(github.event.issue.labels.*.name, 'pending-release')) }}
14+
steps:
15+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
16+
- name: remove unnecessary labels after closing
17+
shell: bash
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
ISSUE_NUMBER: ${{ github.event.issue.number }}
21+
run: |
22+
gh issue edit $ISSUE_NUMBER --remove-label "closing soon" --remove-label "pending-response" --remove-label "pending-release"
23+
24+
comment-visibility-warning:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: aws-actions/closed-issue-message@v1
28+
with:
29+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
30+
message: |
31+
### ⚠️COMMENT VISIBILITY WARNING⚠️
32+
Comments on closed issues are hard for our team to see.
33+
If you need more assistance, please open a new issue that references this one.
34+
If you wish to keep having a conversation with other community members under this issue feel free to do so.

.github/workflows/issue_comment.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Issue Comment
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
notify:
9+
runs-on: ubuntu-latest
10+
permissions: {}
11+
if: ${{ !github.event.issue.pull_request && !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }}
12+
steps:
13+
- name: Run webhook curl command
14+
env:
15+
WEBHOOK_URL: ${{ secrets.SLACK_COMMENT_WEBHOOK_URL }}
16+
COMMENT: ${{toJson(github.event.comment.body)}}
17+
USER: ${{github.event.comment.user.login}}
18+
COMMENT_URL: ${{github.event.comment.html_url}}
19+
shell: bash
20+
run: echo $COMMENT | sed "s/\\\n/. /g; s/\\\r//g; s/[^a-zA-Z0-9 &().,:]//g" | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"comment":"{}", "commentUrl":"'$COMMENT_URL'", "user":"'$USER'"}'
21+
22+
remove-pending-response-label:
23+
runs-on: ubuntu-latest
24+
permissions:
25+
issues: write
26+
if: ${{ !github.event.issue.pull_request && contains(github.event.issue.labels.*.name, 'pending-response') }}
27+
steps:
28+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 #v4.1.1
29+
- name: remove unnecessary labels after comment
30+
shell: bash
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
ISSUE_NUMBER: ${{ github.event.issue.number }}
34+
run: |
35+
gh issue edit $ISSUE_NUMBER --remove-label "pending-response"

.github/workflows/issue_opened.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Issue Opened
2+
on:
3+
issues:
4+
types: [opened]
5+
6+
jobs:
7+
notify:
8+
runs-on: ubuntu-latest
9+
permissions: {}
10+
if: ${{ !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.issue.author_association) }}
11+
steps:
12+
- name: Run webhook curl command
13+
env:
14+
WEBHOOK_URL: ${{ secrets.SLACK_ISSUE_WEBHOOK_URL }}
15+
ISSUE: ${{toJson(github.event.issue.title)}}
16+
ISSUE_URL: ${{github.event.issue.html_url}}
17+
USER: ${{github.event.issue.user.login}}
18+
shell: bash
19+
run: echo $ISSUE | sed 's/[^a-zA-Z0-9 &().,:]//g' | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"issue":"{}", "issueUrl":"'$ISSUE_URL'", "user":"'$USER'"}'
20+
21+
maintainer-opened:
22+
runs-on: ubuntu-latest
23+
permissions:
24+
issues: write
25+
if: ${{ contains(fromJSON('["MEMBER", "OWNER"]'), github.event.issue.author_association) }}
26+
steps:
27+
- name: Post comment if maintainer opened.
28+
shell: bash
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
ISSUE_NUMBER: ${{ github.event.issue.number }}
32+
run: |
33+
gh issue comment $ISSUE_NUMBER --repo aws-amplify/amplify-ui-swift-liveness -b "This issue was opened by a maintainer of this repository; updates will be posted here. If you are also experiencing this issue, please comment here with any relevant information so that we're aware and can prioritize accordingly."

.github/workflows/notify_release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Notify Amplify UI Swift Liveness Release
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
permissions: {}
8+
9+
jobs:
10+
notify:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Run webhook curl command
15+
env:
16+
WEBHOOK_URL: ${{ secrets.SLACK_RELEASE_WEBHOOK_URL }}
17+
VERSION: ${{github.event.release.html_url}}
18+
REPO_NAME: ${{github.event.repository.name}}
19+
ACTION_NAME: ${{github.event.action}}
20+
shell: bash
21+
run: echo $VERSION | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"action":"'$ACTION_NAME'", "repo":"'$REPO_NAME'", "version":"{}"}'

HostApp/HostApp.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -700,16 +700,16 @@
700700
isa = XCRemoteSwiftPackageReference;
701701
repositoryURL = "https://github.com/aws-amplify/amplify-ui-swift-liveness";
702702
requirement = {
703-
kind = upToNextMajorVersion;
704-
minimumVersion = 1.1.1;
703+
kind = exactVersion;
704+
version = 1.2.5;
705705
};
706706
};
707707
9077AB3529E5D28900433155 /* XCRemoteSwiftPackageReference "amplify-swift" */ = {
708708
isa = XCRemoteSwiftPackageReference;
709709
repositoryURL = "https://github.com/aws-amplify/amplify-swift";
710710
requirement = {
711-
kind = upToNextMajorVersion;
712-
minimumVersion = 2.0.0;
711+
kind = exactVersion;
712+
version = 2.27.2;
713713
};
714714
};
715715
/* End XCRemoteSwiftPackageReference section */

0 commit comments

Comments
 (0)