Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kreait/firebase-bundle
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.4.0
Choose a base ref
...
head repository: kreait/firebase-bundle
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
10 changes: 7 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -11,9 +11,13 @@ insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
indent_size = 2

[**.{yml,yaml}]
indent_size = 2

[Makefile]
[**.{neon,neon.dist}]
indent_style = tab

[.travis.yml]
indent_size = 2
[**/Makefile]
indent_style = tab
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -2,6 +2,6 @@

/.editorconfig export-ignore
/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/.php_cs.dist export-ignore
/phpunit.xml.dist export-ignore
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @jeromegamez
File renamed without changes.
5 changes: 1 addition & 4 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
github: jeromegamez
ko_fi: jeromegamez
patreon: jeromegamez
custom: ["https://www.buymeacoffee.com/jeromegamez", "https://www.paypal.me/jeromegamez"]

tidelift: "packagist/kreait/firebase-bundle"
82 changes: 82 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: 🐞 Bug report
description: For unintended behaviors. Missing features aren't bugs.
labels:
- bug
assignees:
- jeromegamez
body:
- type: markdown
attributes:
value: |
### Important note
This issue form is for reporting bugs only. Please provide as much information as possible. If a problem cannot be reproduced or understood, your issue may be closed as non-actionable.
You can request custom support if you are a [GitHub Sponsor in a _Firebase_ tier](https://github.com/sponsors/jeromegamez). If this issue does not describe a bug and you are not a GitHub sponsor, your issue may be closed.
You can learn more about the reasoning for this project's Terms of Support at [What the FOSS](https://jerome.gamez.name/what-the-foss/).
- type: markdown
attributes:
value: |
###
- type: textarea
attributes:
label: Describe the bug
description: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
attributes:
label: Installed packages
description: |
Please paste the full content of your `composer.json` file.
This can help with finding outdated dependencies or known conflicts.
Remove identifying information like the project name, description to your discretion.
render: json
validations:
required: true
- type: textarea
attributes:
label: PHP version and extensions
description: |
You can generate a list with `composer show --platform`.
This can help with finding missing, outdated or conflicting PHP versions and extensions.
render: shell
validations:
required: true
- type: textarea
attributes:
label: Steps to reproduce the issue.
description: |
Provide clear and concise step by step instructions and add code snippets if needed.
Please use code blocks for better readability.
Please note that bugs without minimal reproductions can be closed as non-actionable.
If single, self-contained code snippets are not sufficient, please provide the link to a git Repository visualising the issue.
value: |
```shell
# Insert the commands issued in the terminal if they are needed
# to reproduce the issue. Otherwise, delete this code block.
```
```php
// Insert the PHP code to reproduce the issue. Please ensure that it is code that
// can be copy pasted to reproduce it.
```
validations:
required: true

- type: textarea
attributes:
label: Error message/Stack trace
description: |
If a stack trace is available, please include it in full, or type `-`
render: shell
validations:
required: true

- type: textarea
attributes:
label: Additional information
description: >
If you have any additional information, use the field below.
8 changes: 8 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: ❤️ Become a GitHub Sponsor
url: https://github.com/sponsors/jeromegamez
about: Support the continued maintenance of this project and support its maintainer by becoming a GitHub Sponsor. Requests by Sponsors will be prioritised and receive additional perks.
- name: 🤔 Troubleshooting
url: https://firebase-php.readthedocs.io/en/6.x/troubleshooting.html
about: Please check the troubleshooting section of the documentation for commonly known problems.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 💫 Feature request
description: Propose a new feature.
labels:
- feature-request
assignees:
- jeromegamez
body:
- type: markdown
attributes:
value: |
### Important note
This issue form is for feature requests only. Please provide as much information as possible. If your feature request refers to existing functionality in other Firebase Admin SDKs, please include links to the relevant documentation and code.
Requests for features that are usually only available in Client SDKs are usually considered out of scope of this SDK.
Feature requests by [GitHub Sponsors in a _Firebase_ tier](https://github.com/sponsors/jeromegamez) will be prioritised. If you are not a Sponsor, your feature request may be queued until it is backed by a GitHub Sponsor.
You can learn more about the reasoning for this project's Terms of Support at [What the FOSS](https://jerome.gamez.name/what-the-foss/).
- type: textarea
attributes:
label: Describe the feature you would like to see
validations:
required: true
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2

updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
commit-message:
include: "scope"
prefix: "github-actions"
open-pull-requests-limit: 10
labels:
- "dependency"
22 changes: 0 additions & 22 deletions .github/issue_template.md

This file was deleted.

14 changes: 14 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Description

_Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context._

Fixes # (issue)
or
Closes # (issue)

# Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] I have made corresponding changes to the documentation
2 changes: 2 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://probot.github.io/apps/settings/
_extends: beste/.github
25 changes: 25 additions & 0 deletions .github/workflows/delete-workflow-runs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Delete old Workflow Runs'

on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:

jobs:
delete_failed_runs:
runs-on: ubuntu-latest
steps:
- name: Delete failed workflow runs
uses: dmvict/clean-workflow-runs@v1
with:
run_conclusions: 'cancelled,failure,skipped,stale,timed_out'
save_period: 7
save_min_runs_number: 0
delete_runs:
runs-on: ubuntu-latest
steps:
- name: Delete workflow runs
uses: dmvict/clean-workflow-runs@v1
with:
save_period: 14
save_min_runs_number: 2
23 changes: 23 additions & 0 deletions .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Dependabot auto-merge"

on: [pull_request_target] # yamllint disable-line rule:truthy

permissions:
contents: "write"

jobs:
dependabot:
runs-on: "ubuntu-latest"
if: "${{ github.actor == 'dependabot[bot]' }}"
steps:
- name: "Dependabot metadata"
id: "metadata"
uses: "dependabot/fetch-metadata@v2.2.0"
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
- name: "Enable auto-merge for Dependabot PRs"
if: "${{ steps.dependabot-metadata.outputs.update-type != 'version-update:semver-major' }}"
run: "gh pr merge --auto --merge \"$PR_URL\""
env:
PR_URL: "${{github.event.pull_request.html_url}}"
GITHUB_TOKEN: "${{secrets.GITHUB_TOKEN}}"
17 changes: 0 additions & 17 deletions .github/workflows/stale.yml

This file was deleted.

52 changes: 52 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Tests

on:
pull_request:
paths:
- 'config/**'
- 'src/**'
- 'tests/**'
- '.github/workflows/tests.yml'
- 'composer.json'
push:
branches: ['main']
paths:
- 'config/**'
- 'src/**'
- 'tests/**'
- '.github/workflows/tests.yml'
- 'composer.json'
workflow_dispatch:

jobs:
test:
# Don't run the tests on internal PRs
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository

name: PHP ${{ matrix.php }} / Symfony ${{ matrix.symfony }}
runs-on: 'ubuntu-latest'

strategy:
matrix:
php: ['8.1', '8.2', '8.3', '8.4']
symfony: ['6.0.*', '6.1.*']
include:
- php: '8.1'
symfony: '5.4.*'
- symfony: '7.0.*'
steps:
- uses: actions/checkout@v4

- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: flex

- name: Download dependencies
env:
SYMFONY_REQUIRE: ${{ matrix.symfony }}
uses: ramsey/composer-install@v3

- name: Run test suite on PHP ${{ matrix.php }} and Symfony ${{ matrix.symfony }}
run: ./vendor/bin/phpunit
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/build
/vendor

/.php_cs*
!/.php_cs.dist
/.phpunit.result.cache
/composer.lock
/phpunit.xml
Loading