Skip to content

Commit 4aeb583

Browse files
authored
🔄 Synced file(s) with realm/ci-actions (#1203)
1 parent e779f9f commit 4aeb583

8 files changed

+183
-1
lines changed

.github/advanced-issue-labeler.yml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# NOTE: This is a common file that is overwritten by realm/ci-actions sync service
2+
# and should only be modified in that repository.
3+
4+
# syntax - https://github.com/redhat-plumbers-in-action/advanced-issue-labeler#policy
5+
# Below keys map from the option used in issue form dropdowns to issue labels
6+
# Limitation:
7+
# Currently it's not possible to use strings containing ,␣ in the dropdown menus in the issue forms.
8+
9+
---
10+
11+
policy:
12+
- template: [bug.yml, feature.yml]
13+
section:
14+
- id: [frequency]
15+
label:
16+
- name: 'Frequency:Once'
17+
keys: ['Once']
18+
- name: 'Frequency:Sometimes'
19+
keys: ['Sometimes']
20+
- name: 'Frequency:Always'
21+
keys: ['Always']
22+
23+
- id: [repro]
24+
label:
25+
- name: 'Repro:Always'
26+
keys: ['Always']
27+
- name: 'Repro:Sometimes'
28+
keys: ['Sometimes']
29+
- name: 'Repro:No'
30+
keys: ['No']
31+
32+
- id: [sync, flavour, services]
33+
block-list: []
34+
label:
35+
- name: 'SDK-Use:Local'
36+
keys: ['Local Database only']
37+
- name: 'SDK-Use:Sync'
38+
keys: ['Atlas Device Sync']
39+
- name: 'SDK-Use:Services'
40+
keys: ['Atlas App Services: Function or GraphQL or DataAPI etc']
41+
- name: ['SDK-Use:All']
42+
keys: ['Both Atlas Device Sync and Atlas App Services']
43+
44+
- id: [encryption]
45+
block-list: []
46+
label:
47+
- name: 'Encryption:On'
48+
keys: ['Yes']
49+
- name: 'Encryption:Off'
50+
keys: ['No']
51+
52+
- id: [app-type]
53+
block-list: []
54+
label:
55+
- name: 'App-type:Unity'
56+
keys: ['Unity']
57+
- name: 'App-type:Xamarin'
58+
keys: ['Xamarin']
59+
- name: 'App-type:WPF'
60+
keys: ['WPF']
61+
- name: 'App-type:Console'
62+
keys: ['Console or Server']
63+
- name: 'App-type:Other'
64+
keys: ['Other']
65+
66+
- id: [importance]
67+
block-list: []
68+
label:
69+
- name: 'Importance:Dealbraker'
70+
keys: ['Dealbreaker']
71+
- name: 'Importance:Major'
72+
keys: ['Would be a major improvement']
73+
- name: 'Importance:Workaround'
74+
keys: ['I would like to have it but have a workaround']
75+
- name: 'Importance:Nice'
76+
keys: ['Fairly niche but nice to have anyway']

.github/auto_assign.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
addAssignees: author
2+
addReviewers: false
3+
runOnDraft: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# NOTE: This is a common file that is overwritten by realm/ci-actions sync service
2+
# and should only be modified in that repository.
3+
4+
name: Issue Needs Attention
5+
# This workflow is triggered on issue comments.
6+
on:
7+
issue_comment:
8+
types: created
9+
10+
jobs:
11+
applyNeedsAttentionLabel:
12+
uses: realm/ci-actions/.github/workflows/issue-needs-attention.yml@main

.github/workflows/auto-assign.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# NOTE: This is a common file that is overwritten by realm/ci-actions sync service
2+
# and should only be modified in that repository.
3+
4+
name: 'Auto Assign'
5+
on:
6+
pull_request:
7+
types: [opened]
8+
9+
jobs:
10+
add-assignee:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: kentaro-m/auto-assign-action@248761c4feb3917c1b0444e33fad1a50093b9847

.github/workflows/check-changelog.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# NOTE: This is a common file that is overwritten by realm/ci-actions sync service
2+
# and should only be modified in that repository.
3+
4+
name: "Check Changelog"
5+
on:
6+
pull_request:
7+
types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled]
8+
9+
jobs:
10+
changelog:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@8230315d06ad95c617244d2f265d237a1682d445
15+
with:
16+
submodules: false
17+
- name: Enforce Changelog
18+
uses: dangoslen/changelog-enforcer@c0b9fd225180a405c5f21f7a74b99e2eccc3e951
19+
with:
20+
skipLabels: no-changelog
21+
missingUpdateErrorMessage: Please add an entry in CHANGELOG.md or apply the 'no-changelog' label to skip this check.

.github/workflows/issue-labeler.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# NOTE: This is a common file that is overwritten by realm/ci-actions sync service
2+
# and should only be modified in that repository.
3+
4+
# See configuration in .github/advanced-issue-labeler.yml
5+
6+
name: Issue labeler (policy)
7+
on:
8+
issues:
9+
types: [ opened ]
10+
11+
jobs:
12+
label-issues-policy:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
issues: write
16+
17+
strategy:
18+
matrix:
19+
template: [ bug.yml, feature.yml ]
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
24+
- name: Parse issue form
25+
uses: stefanbuck/github-issue-parser@c1a559d78bfb8dd05216dab9ffd2b91082ff5324 # v3.0.1
26+
id: issue-parser
27+
with:
28+
template-path: .github/ISSUE_TEMPLATE/${{ matrix.template }}
29+
30+
- name: Set labels based on policy
31+
uses: redhat-plumbers-in-action/advanced-issue-labeler@6ee6fddfd744ee26b977e6a0436916f256896971 # v2.0.3
32+
with:
33+
issue-form: ${{ steps.issue-parser.outputs.jsonString }}
34+
template: ${{ matrix.template }}
35+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/no-response.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# NOTE: This is a common file that is overwritten by realm/ci-actions sync service
2+
# and should only be modified in that repository.
3+
4+
name: No Response
5+
6+
# Both `issue_comment` and `scheduled` event types are required for this Action
7+
# to work properly.
8+
on:
9+
issue_comment:
10+
types: [created]
11+
schedule:
12+
# Schedule at 00:00 every day
13+
- cron: '0 0 * * *'
14+
15+
jobs:
16+
noResponse:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: lee-dohm/[email protected]
20+
with:
21+
token: ${{ github.token }}
22+
responseRequiredLabel: More-information-needed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,4 @@
174174
of your accepting any such warranty or additional liability.
175175

176176
END OF TERMS AND CONDITIONS
177-
177+

0 commit comments

Comments
 (0)