is it redudant to run Copilot Setup Steps on `push` and `pull_request`?
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 75/100
- Issue-Typ
- Dokumentation
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- github-actions
- Bereich
- documentation
Rechercherichtung
Beginne mit dem betroffenen Copilot-Dokumentationsartikel und seinem Beispiel für copilot-setup-steps.yml. Überprüfe die dokumentierten push- und pull_request-Trigger sowie die Check-Run-Beobachtung aus dem Issue; abgeschlossen ist die Arbeit, wenn das Beispiel und die umgebenden Hinweise die beabsichtigte Trigger-Konfiguration eindeutig widerspiegeln und die Dokumentationsprüfungen erfolgreich sind.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
What part(s) of the article would you like to see updated?
I don't think it should be suggested to have both push and pull_request as workflow triggers in the sample copilot-setup-steps.yml.
[!note]
If you run onpushthe commit in thepull_requestwill already have a Check Run associated with it from thepushworkflow trigger, sopull_requestworkflow trigger seems redundant in the sample workflow below.
ex.
name: "Copilot Setup Steps"
# Automatically run the setup steps when they are changed to allow for easy validation, and
# allow manual testing through the repository's "Actions" tab
on:
workflow_dispatch:
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
jobs:
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
copilot-setup-steps:
runs-on: ubuntu-latest
# Set the permissions to the lowest permissions possible needed for your steps.
# Copilot will be given its own token for its operations.
permissions:
# If you want to clone the repository as part of your setup steps, for example to install dependencies, you'll need the `contents: read` permission. If you don't clone the repository in your setup steps, Copilot will do this for you automatically after the steps complete.
contents: read
# You can define any steps you want, and they will run before the agent starts.
# If you do not check out your code, Copilot will do this for you.
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install JavaScript dependencies
run: npm ci
Additional information
No response
- Vorherrschende Sprache
- TypeScript
- Sterne
- 20.9k
- Forks
- 68.8k
- Ø Merge
- 12 Std. 41 Min.
- Gemergte PRs (30 T.)
- 120
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus github/docs
-
triage
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 95/100
-
content
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
-
localization
Schwierigkeit 2/5 1-2 Tage Anfängerfreundlichkeit 72/100
-
content localization
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
content localization
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 92/100
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
bcgov/bc-wallet-mobile#4761 · 1 Kommentar ·
-
external-issue to-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
-
area-deployment area-integrations triage:bot-seen
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 86/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
-
refactor
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100