Skip to content

Commit

Permalink
init: add initial files
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-eurydicecorp committed May 1, 2024
0 parents commit 38c32cc
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Lint PR Title

on:
pull_request:
types: [opened, reopened]

jobs:
lint_pr_title:
runs-on: ubuntu-latest
steps:
- name: Check PR Title
run: |
title="${{ github.event.pull_request.title }}"
echo $title
if [[ $title =~ ^(chore|fix|feat) ]]; then
echo "PR title starts with 'chore', 'fix', or 'feat'"
exit 0
else
echo "PR title did not start with 'chore', 'fix', or 'feat'"
exit 1
fi
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Context

This repo is for understanding GitHub contexts and command injection using the functionality.

0 comments on commit 38c32cc

Please sign in to comment.