Skip to content

Commit d96c4c7

Browse files
authored
Fix labels API endpoint (#3430)
Of course you must read labels from issues not pulls endpoint
1 parent 20614b7 commit d96c4c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/labels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
id: get_labels_api
1616
uses: octokit/[email protected] # Use an action to make API requests
1717
with:
18-
route: GET /repos/{owner}/{repo}/pulls/{pull_number}/labels
18+
route: GET /repos/{owner}/{repo}/issues/{pull_number}/labels
1919
owner: ${{ github.repository_owner }}
2020
repo: ${{ github.event.repository.name }}
2121
pull_number: ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)