Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snow-actions/php-ast-changed
Check if PHP AST have been changed in a pull request
https://github.com/snow-actions/php-ast-changed
actions github-actions php
Last synced: about 1 month ago
JSON representation
Check if PHP AST have been changed in a pull request
- Host: GitHub
- URL: https://github.com/snow-actions/php-ast-changed
- Owner: snow-actions
- License: mit
- Created: 2022-05-03T07:22:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-05T04:58:27.000Z (over 1 year ago)
- Last Synced: 2024-11-20T02:36:29.159Z (about 2 months ago)
- Topics: actions, github-actions, php
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# PHP AST Changed
Check if PHP AST have been changed in a pull request.
## Usage
See [action.yml](action.yml)
```yml
steps:
- uses: snow-actions/[email protected]
id: php-ast
- name: Label
run: |
set -x
label='needless-debug'
if [ "${changed}" = 'false' ]; then
gh pr edit ${{ github.event.number }} --add-label ${label}
else
gh pr edit ${{ github.event.number }} --remove-label ${label}
fi
env:
changed: ${{ steps.php-ast.outputs.changed }}
```## Inputs
| Name | Description | Default | Required |
| - | - | - | - |
| `php-version` | PHP version of [shivammathur/setup-php](https://github.com/shivammathur/setup-php#tada-php-support) | `8.1` | no |
| `ast-version` | AST version of [nikic/php-ast](https://github.com/nikic/php-ast#ast-versioning) | `85` | no |## Outputs
| Name | Type | Description |
| - | - | - |
| `changed` | string | AST of \*.php files have changed: "true", not changed: "false" |## Supported
### Runners
- `ubuntu-20.04`
- `ubuntu-18.04`
- `windows-2022`
- `windows-2019`
- `macos-11`
- `macos-10.15`
- `self-hosted`### Events
- `pull_request`
- `pull_request_target`## Dependencies
- [actions/checkout@v3](https://github.com/actions/checkout)
- [shivammathur/setup-php@v2](https://github.com/shivammathur/setup-php)
- [nikic/php-ast](https://github.com/nikic/php-ast)## Contributing
Welcome.