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

[BUG]: Avoid triggering Release Drafter for closed, unmerged pull requests

Aperta Adatta ai principianti
#414 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

@Praveena2809 ci sta già lavorando.

Dal 28/10/2026.

  • #430 di @Praveena2809 — aperta

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
82/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions
Ambito
ci-cd

Direzione di ricerca

Inizia dal workflow Release Drafter in .github/workflows/ e controlla i relativi trigger degli eventi. Verifica se i push su main e master aggiornano la bozza della release, quindi rimuovi il trigger di chiusura delle PR non unite oppure limitane l’attivazione alle PR unite. Il lavoro è completato quando la chiusura di una PR non unita non avvia più il workflow e le modifiche accettate continuano ad aggiornare la bozza della release.

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

Descrizione

bug
Bug Description

The current Release Drafter workflow in .github/workflows/ is triggered by both pushes to main/master and the pull_request event with types: [closed].

The closed event is triggered whether a PR is merged or closed without merging. As a result, closing an unmerged PR can trigger an unnecessary Release Drafter workflow run, even though its changes were not accepted into the project.

Since the workflow already listens for pushes to main and master, the PR-close trigger may be redundant for updating the release draft.

Proposed solution: Remove the pull_request: types: [closed] trigger and rely on pushes to the target branches to update the release draft. Alternatively, if the PR trigger is required, restrict it to merged PRs.

Expected Behavior

Release Drafter should update the release draft based on changes accepted into the target branches, without running unnecessarily when a PR is closed without merging.

Actual Behavior

Closing a PR without merging triggers the Release Drafter workflow, resulting in an unnecessary workflow execution.

Additional Context

The workflow already listens for pushes to main and master, which normally occur when changes are merged into those branches. Removing the redundant trigger could simplify the workflow and avoid unnecessary runs.

Steps to Reproduce
  1. Open a pull request targeting main or master.

  2. Close the PR without merging it.

  3. Observe that the Release Drafter workflow is triggered by the pull_request: types: [closed] event.

Logs and Screenshots

No response

Environment Details

No response

Impact

Low - Minor inconvenience

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Lingua principale
JavaScript
Stelle
48
Fork
163
Merge medio
5g 23m
PR unite (30g)
32

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 AOSSIE-Org/OrgExplorer

Tutte le issue di AOSSIE-Org/OrgExplorer

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.