`github.event.issue.author_association` returns `CONTRIBUTOR` when `MEMBER` is also true

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
github, github-actions, typescript
Ambito
api, ci-cd

Direzione di ricerca

Start by examining how github.event.issue.author_association is populated for pull request events and how GitHub Actions exposes contributor and member status. Reproduce the case with a member who has merged a pull request, then compare the observed association with the expected member check. Done means a reliable way to identify member-opened pull requests is documented or implemented.

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

Descrizione

Describe the bug
For pull requests opened by a MEMBER, github.event.issue.author_association returns CONTRIBUTOR.

To Reproduce
Steps to reproduce the behavior:

  1. Have a MEMBER of a repo, who has also contributed (merged a PR), open a new PR.

Expected behavior
Have a way to see if the author is a member, which can gate workflows in public repositories to only run when a PR is opened by a MEMBER.

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

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.