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

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

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

Visibility: public

Requested revision: a059886e9d2c346152184abd5e6ed8579746fa4e

Requested commit: a059886e9d2c346152184abd5e6ed8579746fa4e

Commit: a059886e9d2c346152184abd5e6ed8579746fa4e

Tree: 9d420d3f84c7ca8b6cb767656ab7944ab3c60886

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

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

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