Sample GitHub API code for uploading files?

Offen
#2 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Dokumentation
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
github, javascript, node.js
Bereich
api, documentation

Rechercherichtung

Read the linked GitHub API documentation and the node-github toolkit first, focusing on repository file uploads and authentication. Done means providing a simple Node.js example that uploads one text file to a GitHub repository.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Short version

I'm looking for simple JavaScript example code to upload a single text file to a GitHub repository from a Node.js app.

Background

Andrew Shell had an interesting idea -- mirror my blog posts to a GitHub repository.

I like it because it provides an easy to manage archive, and takes care of distribution of updates.

I looked at the API and the JavaScript toolkits and how authentication works, and there are a lot of pieces to understand to get what I imagine will ultimately be a very small piece of code.

So I thought I'd ask if anyone has such code?

Of course I will re-share whatever I end up using.

Vorherrschende Sprache
HTML
Sterne
134
Forks
10
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus scripting/Scripting-News

Alle Issues in scripting/Scripting-News

Ähnliche Issues

Weitere Issues zu Backend & API Design

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.