Skip to content

Commit

Permalink
🔄 Synced file(s) with realm/ci-actions (#1089)
Browse files Browse the repository at this point in the history
* 🔄 Synced local 'LICENSE' with remote 'synced-files/LICENSE'

* 🔄 Synced local '.github/workflows/Issue-Needs-Attention.yml' with remote 'synced-files/.github/workflows/Issue-Needs-Attention.yml'

* 🔄 Created local '.github/workflows/no-response.yml' from remote 'synced-files/.github/workflows/no-response.yml'

* 🔄 Synced local '.github/workflows/auto-assign.yml' with remote 'synced-files/.github/workflows/auto-assign.yml'

* 🔄 Synced local '.github/auto_assign.yml' with remote 'synced-files/.github/auto_assign.yml'

* 🔄 Synced local '.github/workflows/check-changelog.yml' with remote 'synced-files/.github/workflows/check-changelog.yml'

* 🔄 Created local '.github/advanced-issue-labeler.yml' from remote 'synced-files/.github/advanced-issue-labeler.yml'

* 🔄 Created local '.github/workflows/issue-labeler.yml' from remote 'synced-files/.github/workflows/issue-labeler.yml'

* 🔄 Synced local '.github/ISSUE_TEMPLATE/feature.yml' with remote 'synced-files/.github/ISSUE_TEMPLATE/feature.yml'
  • Loading branch information
realm-ci authored Jan 9, 2023
1 parent 96da6ee commit b68e8d7
Show file tree
Hide file tree
Showing 9 changed files with 185 additions and 15 deletions.
46 changes: 38 additions & 8 deletions .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,55 @@
# NOTE: This is a common file that is overwritten by realm/ci-actions sync service
# and should only be modified in that repository.

name: Feature Request
description: Request a new feature or enhancement
labels: [Enhancement]
labels: [T-Enhancement]
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to suggest improvements to the Realm Flutter and Dart SDK!
Thanks for taking the time to suggest improvements to Realm!
- type: textarea
id: description
id: problem
attributes:
label: Description
description: Tell us, what you would like to improve?
placeholder: Describe your improvement...
label: Problem
description: A clear and concise description of the problem you are trying to solve.
validations:
required: true
- type: textarea
id: solution
attributes:
label: Solution
description: Describe the solution you envision, including API and usage example if possible.
validations:
required: false
- type: textarea
id: alternative-solution
attributes:
label: Alternatives
description: Describe the alternative solutions or features you have considered
validations:
required: false
- type: dropdown
id: importance
attributes:
label: How important is this improvement for you?
options:
- -- select --
- Dealbreaker
- Would be a major improvement
- I'd like to see it, but have a workaround
- Fairly niche, but nice to have anyway
- I would like to have it but have a workaround
- Fairly niche but nice to have anyway
validations:
required: true
- type: dropdown
id: sync
attributes:
label: Feature would mainly be used with
options:
- -- select --
- Local Database only
- Atlas Device Sync
- 'Atlas App Services: Auth or Functions etc'
validations:
required: true
76 changes: 76 additions & 0 deletions .github/advanced-issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# NOTE: This is a common file that is overwritten by realm/ci-actions sync service
# and should only be modified in that repository.

# syntax - https://github.com/redhat-plumbers-in-action/advanced-issue-labeler#policy
# Below keys map from the option used in issue form dropdowns to issue labels
# Limitation:
# Currently it's not possible to use strings containing ,␣ in the dropdown menus in the issue forms.

---

policy:
- template: [bug.yml, feature.yml]
section:
- id: [frequency]
label:
- name: 'Frequency:Once'
keys: ['Once']
- name: 'Frequency:Sometimes'
keys: ['Sometimes']
- name: 'Frequency:Always'
keys: ['Always']

- id: [repro]
label:
- name: 'Repro:Always'
keys: ['Always']
- name: 'Repro:Sometimes'
keys: ['Sometimes']
- name: 'Repro:No'
keys: ['No']

- id: [sync, flavour, services]
block-list: []
label:
- name: 'SDK-Use:Local'
keys: ['Local Database only']
- name: 'SDK-Use:Sync'
keys: ['Atlas Device Sync']
- name: 'SDK-Use:Services'
keys: ['Atlas App Services: Function or GraphQL or DataAPI etc']
- name: ['SDK-Use:All']
keys: ['Both Atlas Device Sync and Atlas App Services']

- id: [encryption]
block-list: []
label:
- name: 'Encryption:On'
keys: ['Yes']
- name: 'Encryption:Off'
keys: ['No']

- id: [app-type]
block-list: []
label:
- name: 'App-type:Unity'
keys: ['Unity']
- name: 'App-type:Xamarin'
keys: ['Xamarin']
- name: 'App-type:WPF'
keys: ['WPF']
- name: 'App-type:Console'
keys: ['Console or Server']
- name: 'App-type:Other'
keys: ['Other']

- id: [importance]
block-list: []
label:
- name: 'Importance:Dealbraker'
keys: ['Dealbreaker']
- name: 'Importance:Major'
keys: ['Would be a major improvement']
- name: 'Importance:Workaround'
keys: ['I would like to have it but have a workaround']
- name: 'Importance:Nice'
keys: ['Fairly niche but nice to have anyway']
2 changes: 1 addition & 1 deletion .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
addAssignees: author
addReviewers: false
runOnDraft: true
runOnDraft: true
3 changes: 3 additions & 0 deletions .github/workflows/Issue-Needs-Attention.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# NOTE: This is a common file that is overwritten by realm/ci-actions sync service
# and should only be modified in that repository.

name: Issue Needs Attention
# This workflow is triggered on issue comments.
on:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/auto-assign.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# NOTE: This is a common file that is overwritten by realm/ci-actions sync service
# and should only be modified in that repository.

name: 'Auto Assign'
on:
pull_request:
Expand All @@ -7,4 +10,4 @@ jobs:
add-assignee:
runs-on: ubuntu-latest
steps:
- uses: kentaro-m/auto-assign-action@6d966a1f3bd73adfe44dd19dc42cc5845e39ebd3
- uses: kentaro-m/auto-assign-action@248761c4feb3917c1b0444e33fad1a50093b9847
9 changes: 5 additions & 4 deletions .github/workflows/check-changelog.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
# NOTE: This is a common file that is overwritten by realm/ci-actions sync service
# and should only be modified in that repository.

name: "Check Changelog"
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]

jobs:
changelog:
name: Check Changelog
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
uses: actions/checkout@8230315d06ad95c617244d2f265d237a1682d445
with:
submodules: false
- name: Enforce Changelog
uses: dangoslen/changelog-enforcer@c0b9fd225180a405c5f21f7a74b99e2eccc3e951
with:
skipLabels: no-changelog
missingUpdateErrorMessage: Please add an entry in CHANGELOG.md or apply the 'no-changelog' label to skip this check.
missingUpdateErrorMessage: Please add an entry in CHANGELOG.md or apply the 'no-changelog' label to skip this check.
35 changes: 35 additions & 0 deletions .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# NOTE: This is a common file that is overwritten by realm/ci-actions sync service
# and should only be modified in that repository.

# See configuration in .github/advanced-issue-labeler.yml

name: Issue labeler (policy)
on:
issues:
types: [ opened ]

jobs:
label-issues-policy:
runs-on: ubuntu-latest
permissions:
issues: write

strategy:
matrix:
template: [ bug.yml, feature.yml ]

steps:
- uses: actions/checkout@v3

- name: Parse issue form
uses: stefanbuck/github-issue-parser@c1a559d78bfb8dd05216dab9ffd2b91082ff5324 # v3.0.1
id: issue-parser
with:
template-path: .github/ISSUE_TEMPLATE/${{ matrix.template }}

- name: Set labels based on policy
uses: redhat-plumbers-in-action/advanced-issue-labeler@6ee6fddfd744ee26b977e6a0436916f256896971 # v2.0.3
with:
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
template: ${{ matrix.template }}
token: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/no-response.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# NOTE: This is a common file that is overwritten by realm/ci-actions sync service
# and should only be modified in that repository.

name: No Response

# Both `issue_comment` and `scheduled` event types are required for this Action
# to work properly.
on:
issue_comment:
types: [created]
schedule:
# Schedule at 00:00 every day
- cron: '0 0 * * *'

jobs:
noResponse:
runs-on: ubuntu-latest
steps:
- uses: lee-dohm/[email protected]
with:
token: ${{ github.token }}
responseRequiredLabel: More-information-needed
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,4 @@
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

0 comments on commit b68e8d7

Please sign in to comment.