fix-#159 : Configured Theme changes to light mode on page refresh in add blogs page #12
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: "PR Title Checker" | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- reopened | |
- edited | |
- closed | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Run PR Title Checker | |
id: title-check | |
uses: thehanimo/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
pass_on_octokit_error: false | |
configuration_path: .github/pr-title-checker-config.json | |
- name: pt title satisfied | |
if: success() | |
run: | | |
gh issue comment ${{ github.event.pull_request.number }} -R ${{ github.repository }} --body "Thank you `${{github.actor}}`! Your PR title meets our guidelines." | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Close PR if title is invalid | |
if: failure() | |
run: | | |
gh pr close ${{ github.event.pull_request.number }} -R ${{ github.repository }} | |
gh issue comment ${{ github.event.pull_request.number }} -R ${{ github.repository }} --body $'Hello `${{github.actor}}` Thank you for your PR. Unfortunately, it doesn\'t meet our quality checks.\n\nPlease ensure you follow our contribution guidelines. The PR title should match the required format.\n\nFor example, it should be like: `fix-#124: Added responsiveness to the Home page screen.`\n\nIf you have any query kindly check our [contributor guidelines](https://github.com/krishnaacharyaa/wanderlust/blob/main/.github/CONTRIBUTING.md).' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Reopen PR if title is corrected | |
if: github.event.action == 'edited' && success() | |
run: | | |
if [ "${{ github.event.pull_request.state }}" == "closed" ]; then | |
gh pr reopen ${{ github.event.pull_request.number }} -R ${{ github.repository }} | |
fi | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |