Skip to content

Commit 6efd6d5

Browse files
authored
DevOps: Add CODEOWNERS to restrict workflow editing (#559)
1 parent e37bbe2 commit 6efd6d5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/pr-type-category.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ jobs:
1717
labels: "New Feature, Enhancement, Bug-Fix, Not-Yet-Enabled, Skip-Release-Notes"
1818

1919
- name: "Checking for PR Category in PR title. Should be like '<category>: <pr title>'."
20+
env:
21+
PR_TITLE: ${{ github.event.pull_request.title }}
2022
run: |
21-
if [[ ! "${{ github.event.pull_request.title }}" =~ ^.{2,}\:.{2,} ]]; then
23+
if [[ ! "$PR_TITLE" =~ ^.{2,}\:.{2,} ]]; then
2224
echo "## PR Category is missing from PR title. Please add it like '<category>: <pr title>'." >> GITHUB_STEP_SUMMARY
2325
exit 1
2426
fi

CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.github/ @algorand/dev
2+
.circleci/ @algorand/dev

0 commit comments

Comments
 (0)