Bump driftingly/rector-laravel from 0.14.2 to 1.2.0 #674
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🏷 Label Pull Requests | |
on: | |
pull_request: | |
types: [opened, reopened, closed] | |
jobs: | |
label-pull-requests: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v4 | |
# If PR title starts with "Internal: " then add the "Internal" label | |
- name: Label Internal Pull Requests | |
if: "startsWith(github.event.pull_request.title, 'Internal: ')" | |
uses: actions/github-script@v7 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const script = require('./.github/scripts/LabelInternal.js'); | |
console.log(script({github, context})); | |
# Remove "run-visual-tests" labels and similar when the pull request is closed | |
- name: Remove state control labels | |
if: github.event_name == 'pull_request' && github.event.action == 'closed' | |
uses: actions/github-script@v7 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const script = require('./.github/scripts/RemoveStateLabels.js'); | |
await script({github, context}); |