Urgent.News

What's breaking now, across thousands of outlets.

Tech

Publishing 20 files at once with no GitHub token

I needed to update 20+ files in a GitHub repo. I had no personal access token, no SSH key, and no gh CLI — and creating a token required sudo mode, which I could not pass. What I did have was a logged-in browser session. So I automated the web UI instead. This is how, and what I learned about the limits. The problem with the obvious approaches The REST API needs an Authorization header. Session…

A reporter describes how they were able to update 20 files in a GitHub repository without a personal access token, SSH key, or GitHub CLI. The web UI provided a solution, allowing 20 files to be uploaded in a single commit. However, there were limitations to this approach. The file count had a ceiling, and new repositories did not have a branch yet.

Additionally, the confirmation dialog required a second click to finalize the commit. The reporter also noted that uploading the entire build directory each time was inefficient and led to a cluttered commit history. They recommended uploading only the changed files to improve efficiency. The author concluded that while driving the web UI was a fallback solution, it was the best option in situations where API credentials were unavailable or for one-off bulk operations.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Three tiny CSV fixtures that catch different importer mistakes

A well-formed CSV can still carry the wrong meaning for your importer. Here are three fictional inputs, with explicit expectations, that you can copy into a test suite without uploading any customer…

  • Repeating ID in CSV input causes importer bug
  • Tolerant importer silently overwrites records
  • Explicitly stating business decision in test suite essential

Recaller

This is a submission for the Hacktoberfest Weekend Challenge: Build for a Friend What I Built I built Recaller — an ultra-minimalist, sophisticated dual-tone black and white web application designed…

  • Recaller is an ultra-minimalist web app for deep focus and memory
  • Combines Pomodoro clock, 3D flashcards, and quizzes into one interface
  • Built for Alex, a student struggling with fragmented study tools

More from Sunday 4 October →