Skip to content

PHP AST Changed

Actions
Check if PHP AST have been changed in a pull request
v1.0.0
Latest
Star (2)

PHP AST Changed

Check if PHP AST have been changed in a pull request.

Usage

See action.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 8.1 no
ast-version AST version of nikic/php-ast 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

Contributing

Welcome.

PHP AST Changed is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Check if PHP AST have been changed in a pull request
v1.0.0
Latest

PHP AST Changed is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.