-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
…tion/remove
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
name: Feature request | ||
description: Suggest an idea for Amplify JS | ||
labels: pending-triage | ||
|
||
body: | ||
- type: markdown | ||
|
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Issue Closed | ||
|
||
on: | ||
issues: | ||
types: [closed] | ||
|
||
permissions: | ||
issues: write | ||
|
||
jobs: | ||
cleanup-labels: | ||
runs-on: ubuntu-latest | ||
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')) }} | ||
steps: | ||
- name: Remove unnecessary labels after closing | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ISSUE_NUMBER: ${{ github.event.issue.number }} | ||
REPOSITORY_NAME: ${{ github.event.repository.full_name }} | ||
run: | | ||
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --remove-label "pending-community-response" --remove-label "pending-maintainer-response" --remove-label "pending-triage" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Issue Comment | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
adjust-labels: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ISSUE_NUMBER: ${{ github.event.issue.number }} | ||
REPOSITORY_NAME: ${{ github.event.repository.full_name }} | ||
steps: | ||
- name: Remove pending-community-response when new comment received | ||
if: ${{ !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) && !github.event.issue.pull_request }} | ||
shell: bash | ||
run: | | ||
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --remove-label "pending-community-response" | ||
- name: Add pending-maintainer-response when new community comment received | ||
if: ${{ !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }} | ||
shell: bash | ||
run: | | ||
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --add-label "pending-maintainer-response" | ||
- name: Remove pending-maintainer-response when new owner/member comment received | ||
if: ${{ contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }} | ||
shell: bash | ||
run: | | ||
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --remove-label "pending-maintainer-response" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Issue Labeled | ||
|
||
on: | ||
issues: | ||
types: [labeled] | ||
|
||
jobs: | ||
remove-pending-triage-label: | ||
runs-on: ubuntu-latest | ||
if: ${{ contains(fromJSON('["question", "bug", "feature-request"]'), github.event.label.name) }} | ||
permissions: | ||
issues: write | ||
steps: | ||
- name: Remove the pending-triage label | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ISSUE_NUMBER: ${{ github.event.issue.number }} | ||
REPOSITORY_NAME: ${{ github.event.repository.full_name }} | ||
run: | | ||
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --remove-label "pending-triage" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Issue Opened | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
add-issue-opened-labels: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ISSUE_NUMBER: ${{ github.event.issue.number }} | ||
REPOSITORY_NAME: ${{ github.event.repository.full_name }} | ||
steps: | ||
- name: Add the pending-triage label | ||
shell: bash | ||
run: | | ||
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --add-label "pending-triage" | ||
- name: Add the pending-maintainer-response label | ||
if: ${{ !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.issue.author_association) }} | ||
shell: bash | ||
run: | | ||
gh issue edit $ISSUE_NUMBER --repo $REPOSITORY_NAME --add-label "pending-maintainer-response" |
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.