Skip to content

Commit

Permalink
Update onesignal-vue
Browse files Browse the repository at this point in the history
  • Loading branch information
OneSignal committed Mar 30, 2023
1 parent 056c154 commit 782a4db
Show file tree
Hide file tree
Showing 10 changed files with 891 additions and 731 deletions.
7 changes: 5 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module.exports = {
extensions: [
".js",
".ts",
".tsx",
],
},
},
Expand All @@ -28,13 +27,17 @@ module.exports = {
plugins: [
'@typescript-eslint',
],
extends: [
'plugin:@typescript-eslint/recommended',
],
rules: {
"prefer-destructuring": 0,
"no-param-reassign": 0,
"import/extensions": 0,
"dot-notation": 0,
"no-continue": 0,
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"]
"@typescript-eslint/no-unused-vars": ["error"],
"no-prototype-builtins": "warn",
},
};
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/ask-question.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 🙋‍♂️ Ask a question
description: Tell us what's on your mind
title: "[question]: "
title: "[Question]: "
labels: ["triage"]
assignees:
- OneSignal/eng-developer-sdk
Expand Down
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,29 @@ body:
placeholder: The latest version of the SDK causes a runtime error.
validations:
required: true
- type: dropdown
id: browsers
attributes:
label: What browsers are you seeing the problem on?
multiple: true
options:
- Firefox
- Chrome (Chromium)
- Safari
- Microsoft Edge
- Opera
- Brave
- Other
validations:
required: true
- type: input
id: operating-system
attributes:
label: What operating system are you running?
description: Make sure to include the version.
placeholder: macOS Monterey 12.3.1
validations:
required: true
- type: textarea
id: reproduction-steps
attributes:
Expand Down Expand Up @@ -44,3 +67,4 @@ body:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: Shell

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/general-feedback.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: 📣 General feedback
description: Tell us what's on your mind
title: "[Bug]: "
title: "[Feedback]: "
labels: ["triage"]
assignees:
- OneSignal/eng-developer-sdk
Expand Down
34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/workflows/Zapier.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This is an action to close asana tasks that were generated by Github issues

name: Zapier web hook

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
issues:
types: [closed]

permissions:
issues: read

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Runs a set of commands using the runners shell
- name: Call Zapier web hook to close Asana task
if: ${{ !github.event.issue.pull_request }}
env:
ISSUE_TITLE: ${{ github.event.issue.title }}
run: |
curl --location --request POST 'https://hooks.zapier.com/hooks/catch/12728683/b7009qc/' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
"task_name" : "$ISSUE_TITLE"
}'
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
types: [opened, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
# pull_request_target:
# types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
update_release_draft:
permissions:
# write permission is required to create a github release
contents: write
# write permission is required for autolabeler
# otherwise, read permission is required at least
pull-requests: write
runs-on: ubuntu-latest
steps:
# (Optional) GitHub Enterprise requires GHE_HOST variable set
#- name: Set GHE_HOST
# run: |
# echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV

# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
# with:
# config-name: my-config.yml
# disable-autolabeler: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 782a4db

Please sign in to comment.