Skip to content

feat: upgrade react to latest experimental #129

feat: upgrade react to latest experimental

feat: upgrade react to latest experimental #129

# This workflow is based on https://github.com/vitejs/vite/tree/main/.github/workflows
name: Semantic Pull Request 🔍
on:
pull_request_target:
types:
- opened
- edited
- synchronize
permissions:
actions: write # Necessary to cancel workflow executions
checks: write # Necessary to write reports
pull-requests: write # Necessary to comment on PRs
contents: read
jobs:
main:
if: github.repository == 'lazarv/react-server'
runs-on: ubuntu-latest
name: Semantic Pull Request 🔍
steps:
- name: Validate PR title
uses: amannn/action-semantic-pull-request@v5
id: lint_pr_title
with:
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
didn't match the configured pattern. Please ensure that the subject
doesn't start with an uppercase character.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: marocchino/sticky-pull-request-comment@v2
# When the previous steps fails, the workflow would stop. By adding this
# condition you can continue the execution with the populated error message.
if: always() && (steps.lint_pr_title.outputs.error_message != null)
with:
header: pr-title-lint-error
message: |
Hey there and thank you for opening this pull request! 👋🏼
We require pull request titles to follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/) and it looks like your proposed title needs to be adjusted.
Details:
```
${{ steps.lint_pr_title.outputs.error_message }}
```
# Delete a previous comment when the issue has been resolved
- if: ${{ steps.lint_pr_title.outputs.error_message == null }}
uses: marocchino/sticky-pull-request-comment@v2
with:
header: pr-title-lint-error
delete: true