Skip to content

Commit 116e531

Browse files
committed
Change the news-file check
- Rename the file. - Give it a better name in checks view. - Use the ref the PR will merge into.
1 parent d8fba8d commit 116e531

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
1+
name: Check
2+
13
on:
24
pull_request:
35
types: [labeled, unlabeled, opened, reopened, synchronize]
6+
47
jobs:
5-
check-news-file:
8+
check-news-entry:
9+
name: news entry
610
runs-on: ubuntu-20.04
11+
712
steps:
813
- uses: actions/checkout@v2
914
with:
10-
# `towncrier check` needs enough history to run `git diff --name-only origin/main...`
15+
# `towncrier check` runs `git diff --name-only origin/main...`, which
16+
# needs a non-shallow clone.
1117
fetch-depth: 0
12-
- run: pipx run towncrier check --compare-with origin/main
18+
- run: pipx run towncrier check --compare-with origin/${{ github.event.pull_request.base.ref }}
1319
if: ${{ ! (contains(github.event.pull_request.labels.*.name, 'trivial')) }}

0 commit comments

Comments
 (0)