name: On unlabeled issue

on:
  issues:
     types:
       - unlabeled

jobs:
  FirstTimeCodeContribution_or_Assigned:
    if: ${{ ((github.event.label.name == 'FirstTimeCodeContribution') || (github.event.label.name == '📍 Assigned')) && github.repository_owner == 'JabRef' }}
    runs-on: ubuntu-latest
    permissions:
      issues: write
    steps:
    - name: Move Issue to "Free to take" Column in "Candidates for University Projects"
      uses: m7kvqbe1/github-action-move-issues@feat/skip-if-not-in-project-flag
      with:
        github-token: ${{ secrets.GH_TOKEN_ACTION_MOVE_ISSUE }}
        project-url: "https://github.com/orgs/JabRef/projects/3"
        target-labels: "📍 Assigned"
        target-column: "Assigned"
        ignored-columns: ""
        default-column: "Free to take"
        skip-if-not-in-project: true
    - name: Move Issue to "Free to take" Column in "Good First Issues"
      uses: m7kvqbe1/github-action-move-issues@feat/skip-if-not-in-project-flag
      with:
        github-token: ${{ secrets.GH_TOKEN_ACTION_MOVE_ISSUE }}
        project-url: "https://github.com/orgs/JabRef/projects/5"
        target-labels: "📍 Assigned"
        target-column: "Assigned"
        ignored-columns: ""
        default-column: "Free to take"
        skip-if-not-in-project: true