# Run setup script after promoting local draft threads · pingdotgg/t3code

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

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

Visibility: public

Requested revision: 822d8dfc178e689b79fab9faa1a00fe7e1385c29

Requested commit: 822d8dfc178e689b79fab9faa1a00fe7e1385c29

Commit: 822d8dfc178e689b79fab9faa1a00fe7e1385c29

Tree: 7afbb35be0506e6b1fc6ff70632f81fddfdba089

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Run setup script after promoting local draft threads

- allow `runProjectScript` for local draft threads when explicitly enabled
- move setup script execution to run after server thread creation
- gate setup script on worktree/base-branch availability and pass resolved worktree cwd

```

## Parents

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

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