# Fix PR size check failing on fork PRs \(\#51902\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b3282d926cbcfac495b8986ea0958b6ee573cd36)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b3282d926cbcfac495b8986ea0958b6ee573cd36

Requested commit: b3282d926cbcfac495b8986ea0958b6ee573cd36

Commit: b3282d926cbcfac495b8986ea0958b6ee573cd36

Tree: ea93098b322bd77e694f21c7594b5e22b4c17e81

Author: Smit Barmase

Committer: GitHub

## Message

```
Fix PR size check failing on fork PRs (#51902)

Follow-up https://github.com/zed-industries/zed/pull/51876

Use `pull_request_target` for PR size check so the workflow has write
permissions to manage labels on fork PRs. Safe since we don't execute
any PR code here.

Failing example:
https://github.com/zed-industries/zed/actions/runs/23282504031/job/67698793729?pr=48845

Release Notes:

- N/A
```

## Parents

- [08d78101af4cc21a5bd86bece25ea3ca9de3ee8f](https://git.cafe/gitcafe/zed/commit/08d78101af4cc21a5bd86bece25ea3ca9de3ee8f?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b3282d926cbcfac495b8986ea0958b6ee573cd36?format=markdown)
