First Commit
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
github: colinodell
|
||||
tidelift: "packagist/league/html-to-markdown"
|
||||
custom: ["https://www.colinodell.com/sponsor", "https://www.paypal.me/colinpodell/10.00"]
|
||||
+25
@@ -0,0 +1,25 @@
|
||||
name: "📃 Bug Report (Incorrect Markdown)"
|
||||
description: I'm not getting the Markdown I expect
|
||||
body:
|
||||
- type: input
|
||||
id: affected-versions
|
||||
attributes:
|
||||
label: Version(s) affected
|
||||
placeholder: x.y.z
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: A clear and concise description of the problem.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: how-to-reproduce
|
||||
attributes:
|
||||
label: How to reproduce
|
||||
description: |
|
||||
Provide the HTML input and any other information that would help us reproduce the problem.
|
||||
validations:
|
||||
required: true
|
||||
@@ -0,0 +1,43 @@
|
||||
name: "🐛 Bug Report (Other)"
|
||||
description: Report all other errors and problems
|
||||
body:
|
||||
- type: input
|
||||
id: affected-versions
|
||||
attributes:
|
||||
label: Version(s) affected
|
||||
placeholder: x.y.z
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: A clear and concise description of the problem.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: how-to-reproduce
|
||||
attributes:
|
||||
label: How to reproduce
|
||||
description: |
|
||||
HTML and/or any other information needed to reproduce the problem.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: possible-solution
|
||||
attributes:
|
||||
label: Possible solution
|
||||
description: |
|
||||
Optional: only if you have suggestions on a fix/reason for the bug
|
||||
- type: textarea
|
||||
id: additional-context
|
||||
attributes:
|
||||
label: Additional context
|
||||
description: |
|
||||
Optional: any other context about the problem: log messages, screenshots, etc.
|
||||
- type: textarea
|
||||
id: feedback
|
||||
attributes:
|
||||
label: Did this project help you today? Did it make you happy in any way?
|
||||
description: |
|
||||
Optional: Sometimes we get tired of reading bug reports and working on complex features, so if you have anything positive to share about how this library might have helped you we'd love to hear it!
|
||||
@@ -0,0 +1,27 @@
|
||||
name: "🚀 Feature Request"
|
||||
description: RFC and ideas for new features and improvements
|
||||
labels:
|
||||
- enhancement
|
||||
body:
|
||||
- type: textarea
|
||||
id: description
|
||||
attributes:
|
||||
label: Description
|
||||
description: A clear and concise description of the problem.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: example
|
||||
attributes:
|
||||
label: Example
|
||||
description: |
|
||||
A simple example of the new feature in action (include PHP code, sample HTML/Markdown, etc.)
|
||||
If the new feature changes an existing feature, include a simple before/after comparison.
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: feedback
|
||||
attributes:
|
||||
label: Did this project help you today? Did it make you happy in any way?
|
||||
description: |
|
||||
Optional: Sometimes we get tired of reading bug reports and working on complex features, so if you have anything positive to share about how this library might have helped you we'd love to hear it!
|
||||
@@ -0,0 +1,13 @@
|
||||
# SECURITY POLICY
|
||||
|
||||
## Supported Versions
|
||||
|
||||
When a new **minor** version (`5.x`) is released, the previous one will continue to receive security and bug fixes for *at least* 3 months.
|
||||
|
||||
When a new **major** version is released (`4.0`, `5.0`, etc), the previous one will receive bug fixes for *at least* 3 months and security updates for 6 months after that new release comes out.
|
||||
|
||||
(This policy may change in the future and exceptions may be made on a case-by-case basis.)
|
||||
|
||||
## Reporting a Vulnerability
|
||||
|
||||
If you discover a security vulnerability within this package, please use the [Tidelift security contact form](https://tidelift.com/security) or email Colin O'Dell at <colinodell@gmail.com>. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced.
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||
"extends": [
|
||||
"config:base",
|
||||
":disableDependencyDashboard"
|
||||
],
|
||||
"enabledManagers": ["github-actions", "composer"],
|
||||
"packageRules": [
|
||||
{
|
||||
"matchManagers": ["github-actions"],
|
||||
"extends": ["schedule:weekly"],
|
||||
"automerge": true
|
||||
},
|
||||
{
|
||||
"matchManagers": ["composer"],
|
||||
"matchDepTypes": ["devDependencies"],
|
||||
"rangeStrategy": "widen",
|
||||
"automerge": true
|
||||
},
|
||||
{
|
||||
"matchManagers": ["composer"],
|
||||
"rangeStrategy": "widen"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
# Number of days of inactivity before an issue becomes stale
|
||||
daysUntilStale: 90
|
||||
# Number of days of inactivity before a stale issue is closed
|
||||
daysUntilClose: 30
|
||||
# Issues with these labels will never be considered stale
|
||||
exemptLabels:
|
||||
- pinned
|
||||
- on hold
|
||||
- security
|
||||
# Label to use when marking an issue as stale
|
||||
staleLabel: stale
|
||||
# Comment to post when marking an issue as stale. Set to `false` to disable
|
||||
markComment: >
|
||||
This issue has been automatically marked as stale because it has not had
|
||||
recent activity. It will be closed if no further activity occurs. Thank you
|
||||
for your contributions.
|
||||
# Comment to post when closing a stale issue. Set to `false` to disable
|
||||
closeComment: false
|
||||
@@ -0,0 +1,104 @@
|
||||
name: Tests
|
||||
|
||||
on:
|
||||
push: ~
|
||||
pull_request: ~
|
||||
|
||||
jobs:
|
||||
phpcs:
|
||||
name: PHPCS
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.2
|
||||
extensions: curl, mbstring
|
||||
coverage: none
|
||||
tools: composer:v2, cs2pr
|
||||
|
||||
- run: composer update --no-progress
|
||||
|
||||
- run: vendor/bin/phpcs -q --report=checkstyle | cs2pr
|
||||
|
||||
phpunit:
|
||||
name: PHPUnit on ${{ matrix.php }} ${{ matrix.composer-flags }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
php: ['7.2', '7.3', '7.4', '8.0', '8.1']
|
||||
coverage: [true]
|
||||
composer-flags: ['']
|
||||
include:
|
||||
- php: '8.2'
|
||||
coverage: false
|
||||
composer-flags: '--ignore-platform-req=php'
|
||||
- php: '7.2'
|
||||
coverage: false
|
||||
composer-flags: '--prefer-lowest'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: ${{ matrix.php }}
|
||||
extensions: curl, mbstring
|
||||
coverage: pcov
|
||||
tools: composer:v2
|
||||
|
||||
- run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
|
||||
|
||||
- name: "Use PHPUnit 9.3+ on PHP 8"
|
||||
run: composer require --no-update --dev phpunit/phpunit:^9.3
|
||||
if: "matrix.php >= '8.0'"
|
||||
|
||||
- run: composer update --no-progress ${{ matrix.composer-flags }}
|
||||
|
||||
- run: vendor/bin/phpunit --no-coverage
|
||||
if: ${{ !matrix.coverage }}
|
||||
|
||||
- run: vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
|
||||
if: ${{ matrix.coverage }}
|
||||
|
||||
- run: php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
|
||||
if: ${{ matrix.coverage }}
|
||||
continue-on-error: true
|
||||
|
||||
phpstan:
|
||||
name: PHPStan
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.2
|
||||
extensions: curl, mbstring
|
||||
coverage: none
|
||||
tools: composer:v2
|
||||
|
||||
- run: composer update --no-progress
|
||||
|
||||
- run: vendor/bin/phpstan analyse --no-progress
|
||||
|
||||
psalm:
|
||||
name: Psalm
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- uses: shivammathur/setup-php@v2
|
||||
with:
|
||||
php-version: 7.2
|
||||
extensions: curl, mbstring
|
||||
coverage: none
|
||||
tools: composer:v2
|
||||
|
||||
- run: composer update --no-progress
|
||||
|
||||
- run: vendor/bin/psalm --no-progress --output-format=github
|
||||
Reference in New Issue
Block a user