Sticky PR comment: MVP that always posts the full table

Aperta
#12 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, javascript
Ambito
ci-cd

Direzione di ricerca

Read the action entry point and README to find how inputs, pull request events, and permissions are handled. Implement the opt-in comment: true behavior with direct REST API fetch calls, using a hidden HTML-comment marker to update the PR's existing comment; skip push events and warn without failing when permission is missing. Done when repeated runs keep one full-table comment per PR and the README documents the required pull-requests: write permission.

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

Descrizione

enhancement

Split out of #4, scoped to the part #4 itself calls the straightforward piece: "upsert a single comment containing the registry table, keyed by a hidden marker."

Scope

Implement only the always-post-full-table behaviour, opt-in via with: comment: true, defaulting to off. No diff-against-base-branch logic (that's the second half of #4, split separately so it can be reviewed independently).

Acceptance criteria

  • comment: true on a pull_request event upserts one comment per PR, keyed by a hidden HTML-comment marker, editing the same comment on repeated runs instead of accumulating.
  • No-op on push events.
  • Uses fetch against the REST API directly (no new runtime dependency), per #4's existing constraint.
  • Missing/insufficient token permission (pull-requests: write) produces a clear warning and the job still exits normally rather than failing the build over a comment it couldn't post.
  • README documents the required permission.

Complexity: medium.
Depends on: none; this can land before the diff-aware follow-up.

Lingua principale
JavaScript
Stelle
0
Fork
0
Merge medio
7h 28m
PR unite (30g)
10

Preparare l'ambiente

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 codepacct/codepact-action

Tutte le issue di codepacct/codepact-action

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.