pozil / auto-assign-issue

GitHub Action that auto-assigns issues or PRs to one or more users
Creative Commons Zero v1.0 Universal
52 stars 27 forks source link

Error: Input required and not supplied: repo-token #116

Closed ajaydwarkani closed 11 months ago

ajaydwarkani commented 11 months ago

Hi,

I have setup an auto PR assignment and get the below error. Unable to figure out why it's not working. The similar code is working fine for auto assigning the issues but failing for PR assignment.

  with:
    teams: team-internal
    abortIfPreviousAssignees: false
    removePreviousAssignees: false
    allowNoAssignees: false
    allowSelfAssign: true
Error: Input required and not supplied: repo-token

here is the configuration of the yaml file

name: PR assignment

on:
  pull_request:
    types: [opened, reopened]

jobs:
  auto-assign:
    runs-on: ubuntu-latest
    permissions:
        issues: write    
    steps:
      - name: 'Auto-assign PR'
        uses: pozil/auto-assign-issue@v1
        with:
          repo-token: ${{ secrets.ASSIGN_ISSUE_TOKEN }}
          teams: team-internal
ajaydwarkani commented 11 months ago

Never mind I figured, it was because I have setup repository as private and secrets do not work on private repository. After changing the repository to public, it worked :)