Skip to content

Commit e461d90

Browse files
authored
Merge pull request #38 from OneSignal/cd_update
Generator Update (2.0.0 User Model Release)
2 parents 056c154 + 2ec9549 commit e461d90

File tree

10 files changed

+1086
-794
lines changed

10 files changed

+1086
-794
lines changed

.eslintrc.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
root: true,
23
env: {
34
browser: true,
45
es6: true,
@@ -11,7 +12,6 @@ module.exports = {
1112
extensions: [
1213
".js",
1314
".ts",
14-
".tsx",
1515
],
1616
},
1717
},
@@ -28,13 +28,17 @@ module.exports = {
2828
plugins: [
2929
'@typescript-eslint',
3030
],
31+
extends: [
32+
'plugin:@typescript-eslint/recommended',
33+
],
3134
rules: {
3235
"prefer-destructuring": 0,
3336
"no-param-reassign": 0,
3437
"import/extensions": 0,
3538
"dot-notation": 0,
3639
"no-continue": 0,
3740
"no-unused-vars": "off",
38-
"@typescript-eslint/no-unused-vars": ["error"]
41+
"@typescript-eslint/no-unused-vars": ["error"],
42+
"no-prototype-builtins": "warn",
3943
},
4044
};

.github/ISSUE_TEMPLATE/ask-question.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 🙋‍♂️ Ask a question
22
description: Tell us what's on your mind
3-
title: "[question]: "
3+
title: "[Question]: "
44
labels: ["triage"]
55
assignees:
66
- OneSignal/eng-developer-sdk

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,29 @@ body:
1717
placeholder: The latest version of the SDK causes a runtime error.
1818
validations:
1919
required: true
20+
- type: dropdown
21+
id: browsers
22+
attributes:
23+
label: What browsers are you seeing the problem on?
24+
multiple: true
25+
options:
26+
- Firefox
27+
- Chrome (Chromium)
28+
- Safari
29+
- Microsoft Edge
30+
- Opera
31+
- Brave
32+
- Other
33+
validations:
34+
required: true
35+
- type: input
36+
id: operating-system
37+
attributes:
38+
label: What operating system are you running?
39+
description: Make sure to include the version.
40+
placeholder: macOS Monterey 12.3.1
41+
validations:
42+
required: true
2043
- type: textarea
2144
id: reproduction-steps
2245
attributes:
@@ -44,3 +67,4 @@ body:
4467
label: Relevant log output
4568
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
4669
render: Shell
70+

.github/ISSUE_TEMPLATE/general-feedback.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: 📣 General feedback
22
description: Tell us what's on your mind
3-
title: "[Bug]: "
3+
title: "[Feedback]: "
44
labels: ["triage"]
55
assignees:
66
- OneSignal/eng-developer-sdk
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This is an action to close asana tasks that were generated by Github issues
2+
3+
name: Zapier web hook
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the "main" branch
8+
issues:
9+
types: [closed]
10+
11+
permissions:
12+
issues: read
13+
14+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+
jobs:
16+
# This workflow contains a single job called "build"
17+
build:
18+
# The type of runner that the job will run on
19+
runs-on: ubuntu-latest
20+
21+
# Steps represent a sequence of tasks that will be executed as part of the job
22+
steps:
23+
# Runs a set of commands using the runners shell
24+
- name: Call Zapier web hook to close Asana task
25+
if: ${{ !github.event.issue.pull_request }}
26+
env:
27+
ISSUE_TITLE: ${{ github.event.issue.title }}
28+
run: |
29+
curl --location --request POST 'https://hooks.zapier.com/hooks/catch/12728683/b7009qc/' \
30+
--header 'Content-Type: application/json' \
31+
--header 'Accept: application/json' \
32+
--data-raw '{
33+
"task_name" : "$ISSUE_TITLE"
34+
}'
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- main
8+
# pull_request event is required only for autolabeler
9+
pull_request:
10+
# Only following types are handled by the action, but one can default to all as well
11+
types: [opened, reopened, synchronize]
12+
# pull_request_target event is required for autolabeler to support PRs from forks
13+
# pull_request_target:
14+
# types: [opened, reopened, synchronize]
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
update_release_draft:
21+
permissions:
22+
# write permission is required to create a github release
23+
contents: write
24+
# write permission is required for autolabeler
25+
# otherwise, read permission is required at least
26+
pull-requests: write
27+
runs-on: ubuntu-latest
28+
steps:
29+
# (Optional) GitHub Enterprise requires GHE_HOST variable set
30+
#- name: Set GHE_HOST
31+
# run: |
32+
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV
33+
34+
# Drafts your next Release notes as Pull Requests are merged into "master"
35+
- uses: release-drafter/release-drafter@v5
36+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
37+
# with:
38+
# config-name: my-config.yml
39+
# disable-autolabeler: true
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)