Skip to content

Commit 1197081

Browse files
committed
chore: init new repo
0 parents  commit 1197081

267 files changed

Lines changed: 20534 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
name: 🚨 Bug Report
3+
about: Report something not working
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## Bug Report
11+
12+
### Plugin(s)
13+
<!--
14+
List the plugins and versions that this bug affects.
15+
-->
16+
17+
18+
19+
### Capacitor Version
20+
<!--
21+
Paste the output from the `npx cap doctor` command into the code block below. This will provide the versions of Capacitor packages and related dependencies.
22+
-->
23+
24+
```
25+
PASTE OUTPUT HERE
26+
```
27+
28+
### Platform(s)
29+
<!--
30+
List the platforms that this bug affects.
31+
-->
32+
33+
34+
35+
### Current Behavior
36+
<!--
37+
Describe how the bug manifests. Be specific.
38+
-->
39+
40+
41+
42+
### Expected Behavior
43+
<!--
44+
Describe what the behavior should be.
45+
-->
46+
47+
48+
49+
### Code Reproduction
50+
<!--
51+
To isolate the cause of the problem, we ask you to provide a minimal sample application that demonstrates the issue.
52+
For full instructions, see: https://github.com/ionic-team/capacitor/blob/master/CONTRIBUTING.md#creating-a-code-reproduction
53+
-->
54+
55+
56+
57+
### Other Technical Details
58+
<!--
59+
Please provide the following information with your request and any other relevant technical details (versions of IDEs, local environment info, plugin information or links, etc).
60+
-->
61+
62+
63+
64+
### Additional Context
65+
<!--
66+
List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc.
67+
-->
68+
69+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
name: ⚡️ Feature Request
3+
about: Request a feature or change
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## Feature Request
11+
12+
### Plugin
13+
<!--
14+
List which plugin this feature is for.
15+
-->
16+
17+
18+
19+
### Description
20+
<!--
21+
Describe the feature request. If your feature request is related to a problem, be sure to describe that as well.
22+
-->
23+
24+
25+
26+
### Platform(s)
27+
<!--
28+
List the platforms for which this feature should be added.
29+
-->
30+
31+
32+
33+
### Preferred Solution
34+
<!-- Describe the solution you would prefer. -->
35+
36+
37+
38+
### Alternatives
39+
<!-- Describe alternative solutions or features you've considered, if any. -->
40+
41+
42+
43+
### Additional Context
44+
<!--
45+
List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc.
46+
-->
47+
48+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Changed Packages
2+
description: Action for determining the changed Lerna packages
3+
inputs:
4+
files:
5+
description: An array of changed files
6+
required: true
7+
outputs:
8+
paths:
9+
description: An array of relative paths to packages that were changed
10+
runs:
11+
using: node12
12+
main: main.js
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require = require('esm')(module);
2+
3+
const { relative, resolve } = require('path');
4+
const core = require('@actions/core')
5+
6+
const { root } = require('../../../scripts/lib/repo.mjs');
7+
const { execute } = require('../../../scripts/lib/cli.mjs');
8+
const { ls } = require('../../../scripts/lib/lerna.mjs');
9+
10+
execute(async () => {
11+
const files = JSON.parse(core.getInput('files', '[]')).map(f => resolve(root, f));
12+
const packages = await ls();
13+
const changedPackages = packages.filter(pkg => files.some(f => f.startsWith(pkg.location)));
14+
const paths = JSON.stringify(changedPackages.map(pkg => relative(root, pkg.location)));
15+
16+
core.info(`Changed package paths: ${paths}`);
17+
core.setOutput('paths', paths);
18+
});
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Filter Out Non-E2E Enabled Packages
2+
description: Action for filtering out packages that dont have E2E Tests
3+
inputs:
4+
paths:
5+
description: An array of package paths
6+
required: true
7+
outputs:
8+
e2e-paths:
9+
description: An array of relative paths to packages that have e2e
10+
runs:
11+
using: node16
12+
main: main.js
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
require = require('esm')(module);
2+
3+
const { relative, resolve, join } = require('path');
4+
const { existsSync } = require('fs');
5+
const core = require('@actions/core')
6+
7+
const { root } = require('../../../scripts/lib/repo.mjs');
8+
const { execute } = require('../../../scripts/lib/cli.mjs');
9+
10+
execute(async () => {
11+
const paths = JSON.parse(core.getInput('paths', '[]')).map(f => resolve(root, f));
12+
const filteredPaths = paths.filter(path => existsSync(join(path, 'e2e-tests')));
13+
const output = JSON.stringify(filteredPaths.map(path => relative(root, path)));
14+
15+
core.info(`E2E enabled paths: ${output}`);
16+
core.setOutput('e2e-paths', output);
17+
});

.github/bot.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
tasks:
2+
- name: add-comment
3+
on:
4+
issues:
5+
types: [labeled]
6+
condition: 'payload.label.name == "needs reproduction"'
7+
config:
8+
comment: |
9+
This issue needs more information before it can be addressed.
10+
In particular, the reporter needs to provide a minimal sample app that demonstrates the issue.
11+
If no sample app is provided within 15 days, the issue will be closed.
12+
13+
Please see the Contributing Guide for [how to create a Sample App](https://github.com/ionic-team/capacitor/blob/HEAD/CONTRIBUTING.md#creating-a-code-reproduction).
14+
15+
Thanks!
16+
Ionitron 💙
17+
- name: add-label
18+
on:
19+
issues:
20+
types: [labeled]
21+
condition: 'payload.label.name == "needs reproduction"'
22+
config:
23+
label: 'needs reply'
24+
- name: remove-label
25+
on:
26+
issue_comment:
27+
types: [created]
28+
config:
29+
label: 'needs reply'
30+
exclude-labeler: true
31+
- name: add-platform-labels
32+
on:
33+
issues:
34+
types: [opened, edited]
35+
- name: assign-to-project
36+
on:
37+
issues:
38+
types: [opened]
39+
pull_request:
40+
types: [opened]
41+
condition: |-
42+
(await getTeamMembers('capacitor')).includes(payload.sender.login)
43+
config:
44+
columns:
45+
issue: 10495656
46+
pr: 10495659
47+
draft-pr: 10495658

.github/cocoapods-deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
# This workflow is a WIP to get the plugins to deploy to cocoapods
3+
# Its put on hold as it's currently failing during the pod trunk push command
4+
# See the docs on how to run during manual deployment
5+
6+
# name: Cocoapods Deploy
7+
8+
# on:
9+
# workflow_dispatch:
10+
11+
# jobs:
12+
# deploy-cocoapods:
13+
# runs-on: macos-latest
14+
# timeout-minutes: 30
15+
# steps:
16+
# - uses: actions/setup-node@v1
17+
# with:
18+
# node-version: 14.x
19+
# - uses: actions/checkout@v2
20+
# with:
21+
# fetch-depth: 0
22+
# - name: Install Cocoapods
23+
# run: |
24+
# gem install cocoapods
25+
# - name: Restore Dependency Cache
26+
# id: cache-modules
27+
# uses: actions/cache@v2
28+
# with:
29+
# path: |
30+
# node_modules
31+
# */node_modules
32+
# key: dependency-cache-${{ hashFiles('package.json', '*/package.json') }}
33+
# - run: npm install
34+
# - name: Deploy to Cocoapods
35+
# run: |
36+
# set -eo pipefail
37+
# npm run publish:cocoapod
38+
# env:
39+
# COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}

.github/ionic-issue-bot.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
triage:
2+
label: triage
3+
removeLabelWhenProjectAssigned: false
4+
dryRun: false
5+
6+
lockClosed:
7+
days: 15
8+
maxIssuesPerRun: 100
9+
message: >
10+
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue.
11+
If this is still an issue with the latest version of the plugin, please create a new issue and ensure the template is fully filled out.
12+
dryRun: false
13+
14+
comment:
15+
labels:
16+
- label: "type: bug"
17+
message: >
18+
This issue has been labeled as `type: bug`. This label is added to issues
19+
that that have been reproduced and are being tracked in our internal issue tracker.
20+
dryRun: false

.github/workflows/bot.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Bot
2+
3+
on:
4+
issues:
5+
types: [opened, edited, labeled]
6+
pull_request:
7+
types: [opened]
8+
issue_comment:
9+
types: [created]
10+
11+
jobs:
12+
bot:
13+
name: ${{ github.event_name }}/${{ github.event.action }}
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: ionic-team/bot@main
18+
with:
19+
repo-token: ${{ secrets.BOT_TOKEN }}
20+
env:
21+
GIT_AUTHOR_NAME: Ionitron
22+
GIT_AUTHOR_EMAIL: hi@ionicframework.com
23+
GIT_COMMITTER_NAME: Ionitron
24+
GIT_COMMITTER_EMAIL: hi@ionicframework.com

0 commit comments

Comments
 (0)