Skip to content

Commit

Permalink
Merge branch 'master' into add-function-addCell
Browse files Browse the repository at this point in the history
  • Loading branch information
fbclol authored Dec 4, 2024
2 parents e393b8b + feadceb commit 886d62f
Show file tree
Hide file tree
Showing 349 changed files with 19,666 additions and 4,915 deletions.
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# build config
/.scrutinizer.yml export-ignore
/.travis.yml export-ignore
/.github export-ignore
/php_cs.dist export-ignore
/phpmd.xml.dist export-ignore
/phpstan.neon export-ignore
Expand All @@ -18,4 +18,4 @@

# tests
/phpunit.xml.dist export-ignore
/tests export-ignore
/tests export-ignore
65 changes: 65 additions & 0 deletions .github/ISSUE_TEMPLATE/1_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: 🐛 Bug Report
description: Create a report to help improve PHPWord
labels: [ "Bug Report" ]
body:
- type: markdown
attributes:
value: |
### ❗️ Read this before submitting your bug report:
- **Write in English/French.** Reports in all other languages will be closed.
- **Provide as much detail as possible**
- Attachments : Error logs, Screenshots, Document files (generated and expected).
- If the issue cannot be reproduced, it cannot be fixed.
- type: textarea
id: what-happened
attributes:
label: Describe the bug and add attachments
description: What went wrong? If possible, add screenshots, error logs, document files (generated and expected) or screen recordings to help explain your problem.
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Expected behavior
description: A clear and concise description of what you expected to happen.
validations:
required: true
- type: textarea
id: steps-reproduce
attributes:
label: Steps to reproduce
description: Please provide a code sample that reproduces the issue.
placeholder: |
```php
<?php
require __DIR__ . '/vendor/autoload.php';
$phpWord = new \PhpOffice\PhpWord\PhpWord();
$section = $phpWord->addSection();
$section->...
```
validations:
required: true
- type: input
id: phpword-version
attributes:
label: PHPWord version(s) where the bug happened
placeholder: "e.g., 1.2.0 or master"
validations:
required: true
- type: input
id: php-version
attributes:
label: PHP version(s) where the bug happened
placeholder: "e.g., 7.1 or 8.2"
validations:
required: true
- type: checkboxes
attributes:
label: Priority
description: Funded tickets have a higher priority.
options:
- label: I want to crowdfund the bug fix (with [@algora-io](https://docs.algora.io/bounties/overview)) and fund a community developer.
required: false
- label: I want to pay the bug fix and fund a maintainer for that. (Contact @Progi1984)
required: false
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/2_feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: 💡 Feature request
description: Suggest an idea for this project
labels: [ "Change Request" ]
body:
- type: markdown
attributes:
value: |
### ❗️ Read this before submitting your bug report:
- **Write in English/French.** Reports in all other languages will be closed.
- **Provide as much detail as possible**
- Attachments : Error logs, Screenshots, Document files (generated and expected).
- If the issue cannot be reproduced, it cannot be fixed.
- type: textarea
id: problem
attributes:
label: Describe the problem
description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
validations:
required: true
- type: textarea
id: expected-behavior
attributes:
label: Describe the expected behavior
description: A clear and concise description of what you expected to happen. If possible, add screenshots, document files (expected).
validations:
required: true
- type: checkboxes
attributes:
label: Priority
description: Funded tickets have a higher priority.
options:
- label: I want to crowdfund the feature (with [@algora-io](https://docs.algora.io/bounties/overview)) and fund a community developer.
required: false
- label: I want to pay the feature and fund a maintainer for that. (Contact @Progi1984)
required: false
38 changes: 0 additions & 38 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

22 changes: 0 additions & 22 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

14 changes: 0 additions & 14 deletions .github/ISSUE_TEMPLATE/how-to-use.md

This file was deleted.

7 changes: 4 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Fixes # (issue)

### Checklist:

- [ ] I have run `composer run-script check --timeout=0` and no errors were reported
- [ ] The new code is covered by unit tests (check build/coverage for coverage report)
- [ ] I have updated the documentation to describe the changes
- [ ] My CI is :green_circle:
- [ ] I have covered by unit tests my new code (check build/coverage for coverage report)
- [ ] I have updated the [documentation](https://github.com/PHPOffice/PHPWord/tree/master/docs) to describe the changes
- [ ] I have updated the [changelog](https://github.com/PHPOffice/PHPWord/blob/master/docs/changes/1.x/1.4.0.md)
51 changes: 51 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Deploy

on:
push:
branches:
- master
pull_request:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
### MkDocs
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install Python Dependencies
run: pip install mkdocs-material autolink-references-mkdocs-plugin
- name: Build documentation
run: mkdocs build --site-dir public
### PHPUnit
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
extensions: ctype, dom, gd, iconv, fileinfo, libxml, mbstring, simplexml, xml, xmlreader, xmlwriter, zip, zlib
coverage: xdebug
- name: Create directory public/coverage
run: mkdir ./public/coverage
- name: Install PHP Dependencies
run: composer install --ansi --prefer-dist --no-interaction --no-progress
- name: Build Coverage Report
run: XDEBUG_MODE=coverage ./vendor/bin/phpunit -c ./ --coverage-text --coverage-html ./public/coverage
### PHPDoc
- name: Create directory public/docs
run: mkdir ./public/docs
- name: Install PhpDocumentor
run: wget https://phpdoc.org/phpDocumentor.phar && chmod +x phpDocumentor.phar
- name: Build Documentation
run: ./phpDocumentor.phar run -d ./src -t ./public/docs

### Deploy
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
29 changes: 0 additions & 29 deletions .github/workflows/github-pages.yml

This file was deleted.

Loading

0 comments on commit 886d62f

Please sign in to comment.