Skip to content

Commit

Permalink
Exclude pull requests from actions/runs request
Browse files Browse the repository at this point in the history
This will save time when fetcing the current run and we
don't use the pull requests for anything anyway. It is
ok to leave out.
  • Loading branch information
aeisenberg committed Apr 7, 2022
1 parent a0b5962 commit 4050c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ async function getWorkflowPath(): Promise<string> {

const apiClient = api.getActionsApiClient();
const runsResponse = await apiClient.request(
"GET /repos/:owner/:repo/actions/runs/:run_id",
"GET /repos/:owner/:repo/actions/runs/:run_id?exclude_pull_requests=true",
{
owner,
repo,
Expand Down

0 comments on commit 4050c2f

Please sign in to comment.