# Require ahead commits before offering Create PR on untracked branches · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/0e2d50a62082aefb14249b85691cc500d4dd35dc)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 0e2d50a62082aefb14249b85691cc500d4dd35dc

Requested commit: 0e2d50a62082aefb14249b85691cc500d4dd35dc

Commit: 0e2d50a62082aefb14249b85691cc500d4dd35dc

Tree: 257790c4d428f883c4ed12ef78dad4dec48b8fc5

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Require ahead commits before offering Create PR on untracked branches

- Change quick action to `Push` (not `Push & create PR`) when branch has no upstream and is not ahead
- Keep `Create PR` menu item disabled until the branch has commits ahead
- Add/adjust logic tests for both no-ahead and ahead scenarios

```

## Parents

- [f3b3c548596af0a70fb8eddcc49118e5a5e154b2](https://git.cafe/pingdotgg/t3code/commit/f3b3c548596af0a70fb8eddcc49118e5a5e154b2?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/0e2d50a62082aefb14249b85691cc500d4dd35dc?format=markdown)
