Allow using types without initializing entire package

Aperta
#699 1 commento 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
github-actions, node.js, typescript

Direzione di ricerca

No files or tests are named. Start by inspecting the package configuration and type exports, then determine how the types can be consumed without install scripts or the Node.js 24 requirement; done means CI workflow authors can import the types independently.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

As a developer, I want to use github-script in my CI workflow. With large scripts, it becomes necessary to move from inline usage to importing from a separate file (i.e. script.ts). When developing, I want to make sure type safety is followed, so I want to import the typing provided by github-script.

github-script has multiple issues that make this nearly impossible in my dev environment:

  • I don't allow install scripts, but @actions/github-script@7.0.1 has them;
The git-hosted package "@actions/github-script@7.0.1" needs to execute build scripts but is not in the "onlyBuiltDependencies" allowlist.
  • github-script wants node>=24. I'm in the process of upgrading the environment, but there are some blockers. If I only want types, I shouldn't need node>=24.

Could the types be released as a separate package, making it easier to develop github-script CI flows without having to trust a blackbox install scripts or having the latest node.

Lingua principale
TypeScript
Stelle
5k
Fork
586
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di actions/github-script

Tutte le issue di actions/github-script

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.