feat: add right-click context menu to tabs with close options #2
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: PR Checks | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| check-version: | |
| name: Check Version Modification | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Verify Version Unchanged | |
| run: | | |
| git fetch origin ${{ github.base_ref }} | |
| # Skip if package.json wasn't modified | |
| if ! git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -q "^package.json$"; then | |
| echo "package.json not modified." | |
| exit 0 | |
| fi | |
| BASE_VERSION=$(git show origin/${{ github.base_ref }}:package.json | jq -r '.version') | |
| PR_VERSION=$(jq -r '.version' package.json) | |
| echo "Base version: $BASE_VERSION" | |
| echo "PR version: $PR_VERSION" | |
| if [ "$BASE_VERSION" != "$PR_VERSION" ]; then | |
| echo "::error::Version number updates are not allowed in Pull Requests." | |
| exit 1 | |
| fi | |
| echo "✅ Version check passed." |