-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (33 loc) · 1.07 KB
/
edit_pr_description.yml
File metadata and controls
36 lines (33 loc) · 1.07 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
name: Clean up PR description
on:
# see https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
pull_request_target:
types:
- opened
- synchronize
- reopened
- edited
workflow_call:
# see https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
permissions:
pull-requests: write
jobs:
check_labels:
name: Remove html comments
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: napari/napari
# install python and requests
- name: Install the latest version of uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
version: "latest"
- name: Remove html comments
env:
GH_PR_NUMBER: ${{ github.event.number }}
GH_REPO_URL: ${{ github.event.repository.url}}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
uv run --script scripts/remove_html_comments_from_pr.py