Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Running GitHub Workflows duplicate events: push and pull_request

Aperta
#2,891 0 commenti 0 reazioni 2 assegnatari Vedi su GitHub

@sofisl ci sta già lavorando.

Dal 29/11/2022.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

priority: p2 samples type: cleanup

The GitHub Workflow template runs for each set of samples on push and pull_request.

Based on my reading of the syntax documentation, pull_request is necessary for forks.

It looks like folks contributing from a branch in the repository would trigger duplicate tests. Looking at some data, I don't see signs of duplicate work but documented points like https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#using-multiple-events indicate that there should be.

Action Items from this issue should be one of:

  • Removing push as an event trigger from each config and the template
  • Adding an in-line comment to each config and the template explaining why we use both

@sofisl could you provide some insight into why we have both triggering events in the config?

Lingua principale
JavaScript
Stelle
3k
Fork
2k
Merge medio
4g 19h
PR unite (30g)
48

Guida per i contributori

Apri la guida per i contributori

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 GoogleCloudPlatform/nodejs-docs-samples

Tutte le issue di GoogleCloudPlatform/nodejs-docs-samples

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.