Skip to content

Commit 4f61d83

Browse files
authored
Merge branch 'master' into equalto-with-other-condition
2 parents 2368d22 + 77b06f4 commit 4f61d83

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+32022
-5586
lines changed

.github/ISSUE_TEMPLATE.md

-18
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
name: "\U0001F41B Report an issue"
3+
about: A feature is not working as expected.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
### New Issue Checklist
11+
<!--
12+
Check every following box [x] before submitting your issue.
13+
Click the "Preview" tab for better readability.
14+
Thanks for contributing to Parse Platform!
15+
-->
16+
17+
- [ ] I am not disclosing a [vulnerability](https://github.com/parse-community/parse-php-sdk/security/policy).
18+
- [ ] I am not just asking a [question](https://github.com/parse-community/.github/blob/main/SUPPORT.md).
19+
- [ ] I have searched through [existing issues](https://github.com/parse-community/parse-php-sdk/issues?q=is%3Aissue).
20+
- [ ] I can reproduce the issue with the latest version of [Parse Server](https://github.com/parse-community/parse-server/releases) and the [Parse PHP SDK](https://github.com/parse-community/parse-php-sdk/releases). <!-- We don't investigate issues for outdated releases. -->
21+
22+
### Issue Description
23+
<!-- What is the specific issue? -->
24+
25+
### Steps to reproduce
26+
<!-- How can someone else reproduce the issue? -->
27+
28+
### Actual Outcome
29+
<!-- What outcome did you get? -->
30+
31+
### Expected Outcome
32+
<!-- What outcome did you expect? -->
33+
34+
### Environment
35+
<!-- Be specific with versions, don't use "latest" or semver ranges like "~x.y.z" or "^x.y.z". -->
36+
37+
Parse PHP SDK
38+
- SDK version: `FILL_THIS_OUT`
39+
- PHP version: `FILL_THIS_OUT`
40+
41+
Server
42+
- Parse Server version: `FILL_THIS_OUT`
43+
- Operating system: `FILL_THIS_OUT`
44+
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): `FILL_THIS_OUT`
45+
46+
Database
47+
- System (MongoDB or Postgres): `FILL_THIS_OUT`
48+
- Database version: `FILL_THIS_OUT`
49+
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): `FILL_THIS_OUT`
50+
51+
### Logs
52+
<!-- Include relevant logs here. Turn on additional logging by configuring VERBOSE=1 in your environment. -->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
name: "\U0001F4A1 Request a feature"
3+
about: Suggest new functionality or an enhancement of existing functionality.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
### New Feature / Enhancement Checklist
11+
<!--
12+
Check every following box [x] before submitting your issue.
13+
Click the "Preview" tab for better readability.
14+
Thanks for contributing to Parse Platform!
15+
-->
16+
17+
- [ ] I am not disclosing a [vulnerability](https://github.com/parse-community/parse-php-sdk/security/policy).
18+
- [ ] I am not just asking a [question](https://github.com/parse-community/.github/blob/main/SUPPORT.md).
19+
- [ ] I have searched through [existing issues](https://github.com/parse-community/parse-php-sdk/issues?q=is%3Aissue).
20+
21+
### Current Limitation
22+
<!-- Which current limitation is the feature or enhancement addressing? -->
23+
24+
### Feature / Enhancement Description
25+
<!-- What is the concept of the functionality and how should it be implemented? -->
26+
27+
### Example Use Case
28+
<!-- What is an example use case in steps (1. / 2. / 3. / etc.) that describes the functionality? -->
29+
30+
### Alternatives / Workarounds
31+
<!-- Which alternatives or workarounds exist currently? -->
32+
33+
### 3rd Party References
34+
<!-- Have you seen a similar functionality provided somewhere else? -->

.github/ISSUE_TEMPLATE/config.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 🙋🏽‍♀️ Getting help with code
4+
url: https://stackoverflow.com/questions/tagged/parse-platform
5+
about: Get help with code-level questions on Stack Overflow.
6+
- name: 🙋 Getting general help
7+
url: https://community.parseplatform.org
8+
about: Get help with other questions on our Community Forum.

.github/pull_request_template.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
### New Pull Request Checklist
2+
<!--
3+
Please check the following boxes [x] before submitting your issue.
4+
Click the "Preview" tab for better readability.
5+
Thanks for contributing to Parse Server!
6+
-->
7+
8+
- [ ] I am not disclosing a [vulnerability](https://github.com/parse-community/parse-php-sdk/blob/master/SECURITY.md).
9+
- [ ] I am creating this PR in reference to an [issue](https://github.com/parse-community/parse-php-sdk/issues?q=is%3Aissue).
10+
11+
### Issue Description
12+
<!-- Add a brief description of the issue this PR solves. -->
13+
14+
Closes: #`FILL_THIS_OUT`
15+
16+
### Approach
17+
<!-- Add a description of the approach in this PR. -->
18+
19+
### TODOs before merging
20+
<!--
21+
Add TODOs that need to be completed before merging this PR.
22+
Delete TODOs that do not apply to this PR.
23+
-->
24+
25+
- [ ] Add tests
26+
- [ ] Add changes to documentation (guides, repository pages, in-code descriptions)
27+
- [ ] Add changelog entry

.github/workflows/ci.yml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
name: ci
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- "**"
10+
env:
11+
NODE_VERSION: 16.17.1
12+
jobs:
13+
check-lock-file-version:
14+
name: NPM Lock File Version
15+
timeout-minutes: 5
16+
runs-on: ubuntu-20.04
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Check NPM lock file version
20+
uses: mansona/npm-lockfile-version@v1
21+
with:
22+
version: 2
23+
build:
24+
runs-on: ubuntu-20.04
25+
timeout-minutes: 30
26+
strategy:
27+
matrix:
28+
include:
29+
- name: PHP 8.1
30+
PHP_VERSION: 8.1
31+
- name: PHP 8.2
32+
PHP_VERSION: 8.2
33+
fail-fast: false
34+
steps:
35+
- uses: actions/checkout@v3
36+
- name: Use Node.js
37+
uses: actions/setup-node@v3
38+
with:
39+
node-version: ${{ env.NODE_VERSION }}
40+
- name: Setup PHP with PECL extension
41+
uses: shivammathur/setup-php@v2
42+
with:
43+
php-version: ${{ matrix.PHP_VERSION }}
44+
- name: Cache Node.js modules
45+
uses: actions/cache@v3
46+
with:
47+
path: ~/.npm
48+
key: ${{ runner.os }}-node-${{ env.NODE_VERSION }}-${{ hashFiles('**/package-lock.json') }}
49+
restore-keys: |
50+
${{ runner.os }}-node-${{ env.NODE_VERSION }}-
51+
- run: composer install
52+
- run: npm ci
53+
- run: npm start
54+
- run: npm run lint
55+
- run: npm run test-stream
56+
- run: npm run test:coverage
57+
- run: npm run document-check
58+
- run: npm run document
59+
env:
60+
CI: true
61+
- run: bash <(curl -s https://codecov.io/bash)
+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: release-automated
2+
on:
3+
push:
4+
branches: [ master, release, alpha, beta ]
5+
env:
6+
NODE_VERSION: 18
7+
PHP_VERSION: 8.1
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
outputs:
12+
current_tag: ${{ steps.tag.outputs.current_tag }}
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
persist-credentials: false
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: ${{ env.NODE_VERSION }}
20+
- run: npm ci
21+
- run: npx semantic-release
22+
env:
23+
GH_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }}
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
- name: Determine tag on current commit
26+
id: tag
27+
run: echo "::set-output name=current_tag::$(git describe --tags --abbrev=0 --exact-match || echo '')"
28+
docs-publish:
29+
needs: release
30+
if: needs.release.outputs.current_tag != ''
31+
runs-on: ubuntu-latest
32+
timeout-minutes: 15
33+
steps:
34+
- uses: actions/checkout@v3
35+
with:
36+
ref: ${{ needs.release.outputs.current_tag }}
37+
- name: Use Node.js
38+
uses: actions/setup-node@v3
39+
with:
40+
node-version: ${{ env.NODE_VERSION }}
41+
- name: Setup PHP
42+
uses: shivammathur/setup-php@v2
43+
with:
44+
php-version: ${{ env.PHP_VERSION }}
45+
- name: Generate Docs
46+
run: |
47+
composer install
48+
npm run document-check
49+
npm run document
50+
env:
51+
SOURCE_TAG: ${{ needs.release.outputs.current_tag }}
52+
- name: Deploy
53+
uses: peaceiris/[email protected]
54+
with:
55+
github_token: ${{ secrets.GITHUB_TOKEN }}
56+
publish_dir: ./.phpdoc/build
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: release-manual-docs
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
tag:
6+
default: ''
7+
description: 'Version tag:'
8+
env:
9+
NODE_VERSION: 18
10+
PHP_VERSION: 8.1
11+
jobs:
12+
docs-publish:
13+
if: github.event.inputs.tag != ''
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 15
16+
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
ref: ${{ github.event.inputs.tag }}
20+
- name: Use Node.js
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ env.NODE_VERSION }}
24+
- name: Setup PHP
25+
uses: shivammathur/setup-php@v2
26+
with:
27+
php-version: ${{ env.PHP_VERSION }}
28+
- name: Generate Docs
29+
run: |
30+
composer install
31+
npm run document-check
32+
npm run document
33+
env:
34+
SOURCE_TAG: ${{ github.event.inputs.tag }}
35+
- name: Deploy
36+
uses: peaceiris/[email protected]
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
publish_dir: ./.phpdoc/build

.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.idea
2-
composer.lock
2+
.DS_Store
33
vendor
44

55
# npm based parse-server-test
@@ -10,12 +10,13 @@ test_logs
1010
# ignore test results
1111
phpunit-test-results
1212
.phpunit.result.cache
13-
13+
.phpunit.cache
1414
*.log
1515

1616
coverage.xml
1717

1818
# ignore phpdoc
1919
output/
20+
.phpdoc/
2021

2122
composer.phar

.releaserc/commit.hbs

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
*{{#if scope}} **{{scope}}:**
2+
{{~/if}} {{#if subject}}
3+
{{~subject}}
4+
{{~else}}
5+
{{~header}}
6+
{{~/if}}
7+
8+
{{~!-- commit link --}} {{#if @root.linkReferences~}}
9+
([{{shortHash}}](
10+
{{~#if @root.repository}}
11+
{{~#if @root.host}}
12+
{{~@root.host}}/
13+
{{~/if}}
14+
{{~#if @root.owner}}
15+
{{~@root.owner}}/
16+
{{~/if}}
17+
{{~@root.repository}}
18+
{{~else}}
19+
{{~@root.repoUrl}}
20+
{{~/if}}/
21+
{{~@root.commit}}/{{hash}}))
22+
{{~else}}
23+
{{~shortHash}}
24+
{{~/if}}
25+
26+
{{~!-- commit references --}}
27+
{{~#if references~}}
28+
, closes
29+
{{~#each references}} {{#if @root.linkReferences~}}
30+
[
31+
{{~#if this.owner}}
32+
{{~this.owner}}/
33+
{{~/if}}
34+
{{~this.repository}}#{{this.issue}}](
35+
{{~#if @root.repository}}
36+
{{~#if @root.host}}
37+
{{~@root.host}}/
38+
{{~/if}}
39+
{{~#if this.repository}}
40+
{{~#if this.owner}}
41+
{{~this.owner}}/
42+
{{~/if}}
43+
{{~this.repository}}
44+
{{~else}}
45+
{{~#if @root.owner}}
46+
{{~@root.owner}}/
47+
{{~/if}}
48+
{{~@root.repository}}
49+
{{~/if}}
50+
{{~else}}
51+
{{~@root.repoUrl}}
52+
{{~/if}}/
53+
{{~@root.issue}}/{{this.issue}})
54+
{{~else}}
55+
{{~#if this.owner}}
56+
{{~this.owner}}/
57+
{{~/if}}
58+
{{~this.repository}}#{{this.issue}}
59+
{{~/if}}{{/each}}
60+
{{~/if}}
61+

.releaserc/footer.hbs

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{#if noteGroups}}
2+
{{#each noteGroups}}
3+
4+
### {{title}}
5+
6+
{{#each notes}}
7+
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}} ([{{commit.shortHash}}]({{commit.shortHash}}))
8+
{{/each}}
9+
{{/each}}
10+
11+
{{/if}}

0 commit comments

Comments
 (0)