-
-
Notifications
You must be signed in to change notification settings - Fork 216
41 lines (41 loc) · 1.06 KB
/
pr.yml
File metadata and controls
41 lines (41 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Write better PRs and commit messages
name: "Word Weasel"
on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize
jobs:
pr-title:
name: "PR Title"
runs-on: ubuntu-latest
timeout-minutes: 1
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: codingjoe/word-weasel@v1
with:
text: ${{ github.event.pull_request.title }}
pr-body:
name: "PR Body"
runs-on: ubuntu-latest
timeout-minutes: 1
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: codingjoe/word-weasel@v1
with:
text: ${{ github.event.pull_request.body }}
docs:
name: "Docs"
runs-on: ubuntu-latest
timeout-minutes: 1
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v6
- name: REad docs to gh output
id: docs
run: echo "docs=$(find . -type f -name '*.md' -exec cat {} + | tr '\n' ' ')" >> $GITHUB_OUTPUT
- uses: codingjoe/word-weasel@v1
with:
text: ${{ steps.docs.outputs.docs }}