Inverse Command
- Lingua principale
- JavaScript
- Stelle
- 167
- Fork
- 17
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
👋 fellow Hubber! Love this action and its versatility.
One idea that came to mind that would be helpful would be to specify an opposite/inverse of a command that would force the `continue` output to be `'false'`. Specifically I was thinking about approval workflows that happen in issues instead of PRs. Currently, this would have to be implemented with two different `github/command` steps (one for `.approve` and one for `.deny`).
Alternatively, it'd be helpful to combine them into one step:
```yaml
- name: Approve Command
id: approve
uses: github/command@vX.X.X
with:
allowed_contexts: issue
command: .approve
opposite: .deny
```
What do you think?
_Edit:_ I just realized that I probably worded this poorly. I know that further steps that check the `continue` output would not run because commenting with `.deny` would not match the expected keyword. What would probably work better would be to have a separate output that is set when the opposite command is provided.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia esaminando la corrispondenza dei comandi e le definizioni degli output dell’azione github/command. Confronta il comportamento richiesto di inverse-command con la proposta modificata per un output separato e chiarisci il comportamento previsto per i commenti di approvazione e rifiuto. Il lavoro è completato quando il comando selezionato e il suo opposto producono output di workflow distinti e utilizzabili senza richiedere due passaggi di comando.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- github-actions, javascript
- Ambito
- ci-cd
- Tipo di issue
- Funzionalità
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100