steps:
- name: Check PR title
run: |
title=$(git log --pretty=format:%s origin/main..HEAD)
if [[ $title != "JIRA-" ]]; then
echo "Error: PR title must include a JIRA ticket number"
exit 1
fi
- name: Check PR description
run: |
description=$(git log --pretty=format:%b origin/main..HEAD)
if [[ $description != "JIRA-" ]]; then
echo "Error: PR description must include a JIRA ticket number"
exit 1
fi
- name: Request more information
run: |
echo "👋 Thank you for your contribution! To help the reviewer understand your changes better, please provide the following information:"
echo ""
echo "## Description"
echo ""
echo " - JIRA-140 I have fixed the bug related to the application crash caused by the missing App.js file in the src folder of the client directory in the repository."
echo ""
echo "## Why This PR ?"
echo ""
echo "This PR is necessary to resolve the application crash that occurred due to the absence of the App.js file. The missing file caused the application to fail to load and resulted in errors."
echo ""
echo "## How Has This Been Tested?"
echo ""
echo "I have tested the fix locally by adding the App.js file to the correct location in the src folder. After applying the fix, I ran the application to verify that it now loads without any crashes."
echo ""
echo "## Screenshots (if applicable)"
echo ""
echo "
Bug
Fix
"
echo ""
echo "## Related Issues"
echo ""
echo "<!-- If this PR is related to any issues, please mention them using the GitHub issue linking syntax (e.g., 'Fixes #123', 'Closes #456'). -->"
echo ""
echo "## Types of Changes"
echo ""
echo "<!-- What types of changes does your code introduce? Put an `x` in the boxes that apply. -->"
echo "- [x] Bug fix (non-breaking change which fixes an issue)"
echo "- [ ] New feature (non-breaking change which adds functionality)"
echo "- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)"
echo "- [ ] Documentation update"
echo ""
echo "## Checklist"
echo ""
echo "<!-- Put an `x` in the boxes that apply. -->"
echo "- [x] My code adheres to the established style guidelines of this project"
echo "- [x] I have conducted a self-review of my code"
echo "- [ ] I have commented my code, particularly in hard-to-understand areas"
echo "- [ ] I have made corresponding changes to the documentation"
echo "- [x] My changes generate no new warnings"
echo ""
name: Pull Request Template
on: pull_request: types:
jobs: pr-template: runs-on: ubuntu-latest
Bug
Fix