Skip to content

Commit 620c7b2

Browse files
authored
Merge branch 'main' into temp/release-merge-1725397341
2 parents b351897 + 1a5366d commit 620c7b2

File tree

19 files changed

+1157
-969
lines changed

19 files changed

+1157
-969
lines changed

.github/ISSUE_TEMPLATE/1.bug_report.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Bug report
22
description: Create a report to help us improve Amplify JS
3-
labels: pending-triage
43

54
body:
65
- type: markdown

.github/ISSUE_TEMPLATE/2.feature_request.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Feature request
22
description: Suggest an idea for Amplify JS
3-
labels: pending-triage
43

54
body:
65
- type: markdown

.github/ISSUE_TEMPLATE/3.usage-question.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/4.rfc.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

.github/dependency-review/dependecy-review-config.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
11
allow-licenses:
2-
- 'Apache-2.0'
32
- '0BSD'
4-
- 'BSL-1.0'
3+
- 'Apache-2.0'
4+
- 'BlueOak-1.0.0'
55
- 'BSD-1-Clause'
66
- 'BSD-2-Clause-FreeBSD'
77
- 'BSD-2-Clause'
88
- 'BSD-3-Clause-Attribution'
99
- 'BSD-3-Clause'
10+
- 'BSL-1.0'
1011
- 'CC-BY-3.0'
1112
- 'CC-BY-4.0'
13+
- 'CC0-1.0'
1214
- 'curl'
1315
- 'ISC'
1416
- 'JSON'
@@ -20,4 +22,3 @@ allow-licenses:
2022
- 'Unlicense'
2123
- 'WTFPL'
2224
- 'Zlib'
23-
- 'CC0-1.0'

.github/workflows/issue-closed.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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-community-response') || contains(github.event.issue.labels.*.name, 'pending-maintainer-response') || contains(github.event.issue.labels.*.name, 'pending-triage')) }}
14+
steps:
15+
- name: Remove unnecessary labels after closing
16+
shell: bash
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
ISSUE_NUMBER: ${{ github.event.issue.number }}
20+
REPOSITORY_NAME: ${{ github.event.repository.full_name }}
21+
run: |
22+
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --remove-label "pending-community-response" --remove-label "pending-maintainer-response" --remove-label "pending-triage"
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Issue Comment
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
7+
jobs:
8+
adjust-labels:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
ISSUE_NUMBER: ${{ github.event.issue.number }}
15+
REPOSITORY_NAME: ${{ github.event.repository.full_name }}
16+
steps:
17+
- name: Remove pending-community-response when new comment received
18+
if: ${{ !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) && !github.event.issue.pull_request }}
19+
shell: bash
20+
run: |
21+
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --remove-label "pending-community-response"
22+
- name: Add pending-maintainer-response when new community comment received
23+
if: ${{ !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }}
24+
shell: bash
25+
run: |
26+
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --add-label "pending-maintainer-response"
27+
- name: Remove pending-maintainer-response when new owner/member comment received
28+
if: ${{ contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }}
29+
shell: bash
30+
run: |
31+
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --remove-label "pending-maintainer-response"
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Issue Labeled
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
7+
jobs:
8+
remove-pending-triage-label:
9+
runs-on: ubuntu-latest
10+
if: ${{ contains(fromJSON('["question", "bug", "feature-request"]'), github.event.label.name) }}
11+
permissions:
12+
issues: write
13+
steps:
14+
- name: Remove the pending-triage label
15+
shell: bash
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
18+
ISSUE_NUMBER: ${{ github.event.issue.number }}
19+
REPOSITORY_NAME: ${{ github.event.repository.full_name }}
20+
run: |
21+
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --remove-label "pending-triage"

.github/workflows/issue-opened.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Issue Opened
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
add-issue-opened-labels:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
env:
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
ISSUE_NUMBER: ${{ github.event.issue.number }}
15+
REPOSITORY_NAME: ${{ github.event.repository.full_name }}
16+
steps:
17+
- name: Add the pending-triage label
18+
shell: bash
19+
run: |
20+
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --add-label "pending-triage"
21+
- name: Add the pending-maintainer-response label
22+
if: ${{ !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.issue.author_association) }}
23+
shell: bash
24+
run: |
25+
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --add-label "pending-maintainer-response"

.github/workflows/issue-pending-response.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)