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

[Architecture] Labeler Action

Aperta
#911 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
github-actions
Ambito
ci-cd

Direzione di ricerca

Start by reviewing the existing files in .github/workflows and the actions/labeler documentation linked in the issue. Compare the proposed workflow with the project's current workflows and verify the issue and pull-request labeling behavior. Done means the labeler action is configured for this project and the workflow includes inline comments.

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

Descrizione

Part of the OSS Architecture track

This YAML file defines a GitHub Action that labels issues or pull requests opened by new contributors with the "new contributor" label. It uses the actions/checkout action to check out the repository, and installs the GitHub CLI to interact with the GitHub API. It then checks if the event is an issue or pull request, and adds the "new contributor" label to the issue or pull request using the gh issue add-label or gh pr add-label command, respectively.

Task

Suggestions: try this prompt with copilot "how to create a labeler GitHub Action like this one https://github.com/actions/labeler"

or

Directions: debug the following output
name: Labeler

on:
  issues:
    types: [opened]
  pull_request_target:
    types: [opened]

permissions:
  issues: write
  pull-requests: write

jobs:
  labeler:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v2
      - name: Install GitHub CLI
        run: |
          sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
          sudo apt-add-repository https://cli.github.com/packages
          sudo apt update
          sudo apt install gh
      - name: Label issues or pull requests
        if: ${{ github.event_name == 'issues' || github.event_name == 'pull_request_target' }}
        run: |
          if [[ "${{ github.event.issue }}" != "" ]]; then
            echo "Labeling issue"
            gh issue add-label "${{ github.event.issue.number }}" "new contributor"
          elif [[ "${{ github.event.pull_request }}" != "" ]]; then
            echo "Labeling pull request"
            gh pr add-label "${{ github.event.pull_request.number }}" "new contributor"
Resources:
Lingua principale
JavaScript
Stelle
120
Fork
101
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 OpenSourceFellows/amplify

Tutte le issue di OpenSourceFellows/amplify

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.