blombard / move-to-next-iteration

Automatically move issues to next iteration
MIT License
30 stars 13 forks source link

Could not resolve to a ProjectV2 with the number 12. #1

Closed WouterBos closed 1 year ago

WouterBos commented 1 year ago

Hi! I get this error message:

Run blombard/move-to-next-iteration@master Error: Request failed due to following response errors:

  • Could not resolve to a ProjectV2 with the number 12.

I got the number from this URL: https://github.com/orgs/infinitaslearning/projects/12

This is yml i used:

name: Iteration transition

on:
  schedule:
    - cron: '*/10 * * * *'

jobs:
  move-to-next-iteration:
    name: Move issues to next iteration
    runs-on: ubuntu-latest

    steps:
      - uses: blombard/move-to-next-iteration@master
        with:
          owner: infinitaslearning
          number: 12
          token: ${{ secrets.GITHUB_TOKEN }}
          iteration-field: Iteration
          iteration: last
          new-iteration: current
          statuses: πŸ”œ Todo, πŸ‘©β€πŸ’» Coding, πŸ‘€ Ready for testing, πŸ“’ Awaiting documentation

I guess I did something wrong in the configuration?

blombard commented 1 year ago

Hello this is a private project so you need to use a Personal Access Token with the required scopes to access this project.

Capture d’écran 2023-03-13 aΜ€ 13 03 24 Capture d’écran 2023-03-13 aΜ€ 13 06 28
WouterBos commented 1 year ago

Yes! That was the problem. I had to create a personal access token and have that token authorized by SSO.

Thank you very much!