diff options
author | Pradyun Gedam <pradyunsg@users.noreply.github.com> | 2021-08-15 09:15:05 +0100 |
---|---|---|
committer | Pradyun Gedam <pradyunsg@users.noreply.github.com> | 2021-08-15 09:36:05 +0100 |
commit | 116e53145b99300eded257a5c25ed5d19741c052 (patch) | |
tree | c1ccaf8dd5fadae4c2e53a01e37a010785a9b5c2 | |
parent | d8fba8d95a694af08f02484ec2d373585426b144 (diff) | |
download | pip-116e53145b99300eded257a5c25ed5d19741c052.tar.gz |
Change the news-file check
- Rename the file.
- Give it a better name in checks view.
- Use the ref the PR will merge into.
-rw-r--r-- | .github/workflows/news-file.yml (renamed from .github/workflows/news-file.yaml) | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/.github/workflows/news-file.yaml b/.github/workflows/news-file.yml index 0e219871a..1dbcf7c98 100644 --- a/.github/workflows/news-file.yaml +++ b/.github/workflows/news-file.yml @@ -1,13 +1,19 @@ +name: Check + on: pull_request: types: [labeled, unlabeled, opened, reopened, synchronize] + jobs: - check-news-file: + check-news-entry: + name: news entry runs-on: ubuntu-20.04 + steps: - uses: actions/checkout@v2 with: - # `towncrier check` needs enough history to run `git diff --name-only origin/main...` + # `towncrier check` runs `git diff --name-only origin/main...`, which + # needs a non-shallow clone. fetch-depth: 0 - - run: pipx run towncrier check --compare-with origin/main + - run: pipx run towncrier check --compare-with origin/${{ github.event.pull_request.base.ref }} if: ${{ ! (contains(github.event.pull_request.labels.*.name, 'trivial')) }} |