Add eslint and typescript checking 2 #4
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: Check Base Branch | |
on: | |
pull_request: | |
pull_request_review: | |
types: [submitted] | |
jobs: | |
check-base-branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Check base branch | |
run: | | |
git fetch origin | |
COMMITS_BEHIND=$(git log --oneline origin/main ^HEAD) | |
if [ -n "$COMMITS_BEHIND" ]; then | |
echo "Your branch is behind the target branch. The following commits are missing:" | |
echo "$COMMITS_BEHIND" | |
else | |
echo "Your branch is up to date with the target branch." | |
fi |