diff --git a/.github/workflows/label-new-issue.yml b/.github/workflows/label-new-issue.yml deleted file mode 100644 index 8ab4fb7..0000000 --- a/.github/workflows/label-new-issue.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Label New Issues - -on: - issues: - types: [opened] - -jobs: - label-issues: - runs-on: ubuntu-latest - permissions: - issues: write - contents: read - - steps: - - name: Checkout repository - uses: actions/checkout@v6 - - name: Add triage label - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - ISSUE_NUMBER: ${{ github.event.issue.number }} - LABEL: "triage" - run: gh issue edit "$ISSUE_NUMBER" --add-label "$LABEL" - \ No newline at end of file diff --git a/.github/workflows/label-new-issues.yaml b/.github/workflows/label-new-issues.yaml new file mode 100644 index 0000000..b791a75 --- /dev/null +++ b/.github/workflows/label-new-issues.yaml @@ -0,0 +1,24 @@ +name: Label New Issues +# https://docs.github.com/en/actions/reference/workflows-and-actions/events-that-trigger-workflows#issues + +on: + issues: + types: [opened] + +jobs: + label-issues: + runs-on: ubuntu-latest + permissions: + issues: write + contents: read + + steps: + - name: Checkout repository + uses: action/checkout@v6 # from Github marketplaces | open source reusable actions + - name: Add triage label + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ISSUE_NUMBER: ${{ github.event.issue.number}} + LABEL: "triage" # the label must exist in the repo for it to work properly + run: gh issue edit "$ISSUE_NUMBER" --add-label "$LABEL" + \ No newline at end of file diff --git a/.gitignore b/.gitignore index 45c1abc..0095790 100644 --- a/.gitignore +++ b/.gitignore @@ -34,3 +34,6 @@ yarn-error.log* # typescript *.tsbuildinfo next-env.d.ts + +# course notes +_course-notes.txt