Skip to content

Name the new upstream repo on issues, and send the app's details with them - #160

Merged
simonhamp merged 1 commit into
mainfrom
feat/issue-environment
Nov 3, 2026
Merged

simonhamp merged 1 commit into
mainfrom
feat/issue-environment

Conversation

@simonhamp

Copy link
Copy Markdown
Member

Two things changed upstream since the /feature and /bug commands came to the app in #22.

The upstream repository moved from nunomaduro/dev-null.sh to dev-null-sh/dev-null.sh, so the badge on an issue draft named the old one. It names the new one now.

The web also started sending details about the browser and screen with each issue, which devnull puts in a collapsed Environment table so maintainers can reproduce a report. Opening an issue from the app now sends the same field, through a small IssueEnvironment class:

  • browser: "devnull app" and the app's version
  • os: the system and its version, such as "iOS 27.2"
  • language: the phone's language, such as "en-GB"
  • color_scheme: light or dark

It never sends the phone's name, since the issue is public. Details the phone doesn't give are left out, and each value is cut to the 100 characters devnull accepts, so an odd value can't stop the issue opening. The web's viewport, pixel ratio and page aren't sent, as the app can't read the first two cheaply and the page is always the compose sheet.

The badge now says "crediting you, with your app and device details", as the web's says "with your browser and screen details". The line wraps instead of being cut off after one line, so you can always read what goes with the issue.

environment on POST /api/v1/issues comes with dev-null-sh/dev-null.sh#653. Until that's on production, opening an issue fails as it does today.

Tests cover the new repository name, the badge wrapping, the details sent (including that the phone's name isn't) and the cut to 100 characters. All 1,839 tests pass and Pint is clean.

Screenshots

compose

iOS light iOS dark
Before
After

iOS 27.0 simulator (iPhone 17 Pro), signed in to a local API. There are no Android screenshots. I built and installed the app on a fresh emulator, but its sign-in opens Chrome, which asked for Google's terms to be accepted on first run, so I skipped Android rather than accept them on Simon's behalf.

  • No visible change

🤖 Generated with Claude Code

… them

The badge on an issue draft named nunomaduro/dev-null.sh, which moved to
dev-null-sh/dev-null.sh. Opening an issue now sends the details the web
sends about its browser: the app and its version, the system and its
version, the language and the appearance. devnull puts them in a collapsed
Environment table. The badge says so, as the web's does, and wraps rather
than cutting that off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonhamp
simonhamp merged commit f1bd1f0 into main Nov 3, 2026
2 checks passed
@simonhamp
simonhamp deleted the feat/issue-environment branch November 3, 2026 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant