Skip to content

Commit ef84add

Browse files
committed
minor adjustments
1 parent dfbc847 commit ef84add

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/update_release_pr.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def get_prs(pull_request_items: list[dict], label: str = "", state: str = "all")
8888
Returns a list of pull requests after applying the label and state filters.
8989
9090
Args:
91-
pull_request_items (str): List of PR items.
91+
pull_request_items (list[dict]): List of PR items.
9292
label (str): The label name.
9393
state (str): State of PR, e.g. open, closed, all
9494
@@ -158,6 +158,7 @@ def update_pull_request_description(token: str, owner: str, repo: str, pr_number
158158
print(f"URL: {url}")
159159

160160
try:
161+
response = None
161162
response = requests.patch(url, headers=headers, json=payload)
162163
response.raise_for_status()
163164

@@ -180,10 +181,9 @@ def update_pull_request_description(token: str, owner: str, repo: str, pr_number
180181

181182
repository_owner = "flow-launcher"
182183
repository_name = "flow.launcher"
183-
target_label = "enhancement"
184184
state = "all"
185185

186-
print(f"Fetching PRs for {repository_owner}/{repository_name} with label '{target_label}'...")
186+
print(f"Fetching {state} PRs for {repository_owner}/{repository_name} ...")
187187

188188
pull_requests = get_github_prs(github_token, repository_owner, repository_name)
189189

.github/workflows/release_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ jobs:
2222
GITHUB_TOKEN: ${{ secrets.PR_TOKEN }}
2323
run: |
2424
pip install requests -q
25-
python ./.github/update_release_pr.py
25+
python3 ./.github/update_release_pr.py

0 commit comments

Comments
 (0)