Commit ee3ead1
Add GitHub CLI and pre-commit hooks to devcontainer (zauberzeug#5741)
### Motivation
The devcontainer currently lacks GitHub CLI (`gh`) integration and
pre-commit hook setup, making it harder for contributors to interact
with GitHub (e.g., creating PRs, reviewing issues) and to catch
linting/formatting issues before pushing.
### Implementation
- **Dockerfile**: Added `gh` (GitHub CLI) to the installed packages.
- **devcontainer.json**:
- Added a persistent named volume (`gh-config`) mounted at
`~/.config/gh` so that `gh auth` tokens survive container rebuilds.
- Extended `postCreateCommand` to fix volume ownership, run `pre-commit
install`, and prompt for `gh auth login` if not already authenticated.
- **CONTRIBUTING.md**: Updated the devcontainer setup instructions to
note the GitHub authentication prompt on first launch.
### Progress
- [x] I chose a meaningful title that completes the sentence: "If
applied, this PR will..."
- [x] The implementation is complete.
- [x] If this PR addresses a security issue, it has been coordinated via
the [security
advisory](https://github.com/zauberzeug/nicegui/security/advisories/new)
process.
- [x] Pytests have been added (or are not necessary).
- [x] Documentation has been added (or is not necessary).
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Falko Schindler <falko@zauberzeug.com>1 parent 59f8c50 commit ee3ead1
4 files changed
Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
39 | 46 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
0 commit comments