Bump axios from 1.10.0 to 1.18.0 #163
Workflow file for this run
This file contains hidden or 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: Auto-label Internal CodeMod PRs | |
| on: | |
| pull_request: | |
| types: [opened, reopened] | |
| jobs: | |
| label-internal-prs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Add changelog label to internal CodeMod PRs | |
| env: | |
| GH_TOKEN: ${{ github.token }} | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| SOURCE_BRANCH: ${{ github.event.pull_request.head.ref }} | |
| run: | | |
| # Detect exported PRs from Meta by: | |
| # 1. Source branch matches export-D.* pattern | |
| # 2. Title contains DevmateWooCommerceGenerateTests (LIMITING to CodeMod PRs for now) | |
| if [[ "$SOURCE_BRANCH" =~ ^export-D ]] && [[ "$PR_TITLE" == *"DevmateWooCommerceGenerateTests"* ]]; then | |
| echo "Detected exported PR #$PR_NUMBER: $PR_TITLE" | |
| echo "Source branch: $SOURCE_BRANCH" | |
| HAS_CHANGELOG=$(gh pr view "$PR_NUMBER" --json labels --jq '[.labels[].name | select(startswith("changelog:"))] | length') | |
| if [ "$HAS_CHANGELOG" -eq 0 ]; then | |
| gh pr edit "$PR_NUMBER" --add-label "changelog: none" | |
| echo "Added \"changelog: none\" label to internal PR" | |
| else | |
| echo "PR already has a changelog label, skipping" | |
| fi | |
| else | |
| echo "PR #$PR_NUMBER is not an internal PR, skipping auto-labeling" | |
| fi |