Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receive #ERROR# TypeError: Cannot read property 'columns' of null on run. #15

Open
benjamin-hull opened this issue Jul 29, 2020 · 10 comments

Comments

@benjamin-hull
Copy link

I'm trying to set up this action on a private repo, and receive the following log on run:

Run konradpabjan/move-labeled-or-milestoned-issue@v2.0
This project is configured at the repo level. Repo Owner:[Owner Org], repo name:[Private repo] project number#17
#ERROR# TypeError: Cannot read property 'columns' of null

My workflow YAML looks like this:

on:
  issues:
    types: [labeled]
jobs:
  Move_Labeled_Issue_On_Project_Board:
    runs-on: ubuntu-latest
    steps:
    - name: Move labeled or milestoned issue to a specific project column
      uses: konradpabjan/move-labeled-or-milestoned-issue@v2.0
      with:
        action-token: "${{ secrets.WORKFLOW_ACTIONS }}"
        project-url: "https://github.com/[Owner]/[Repo]/projects/17"
        column-name: "Needs Info"
        label-name:  "Awaiting more info"
        columns-to-ignore: "Done"

The project URL is definitely correct, as are the names of the columns and labels.

This is my first attempt at using actions, so I could be missing something. Any ideas? Thanks in advance!

@konradpabjan
Copy link
Owner

Your project URL needs to have the actual owner and repo names, something like:

project-url: https://github.com/konradpabjan/move-labeled-or-milestoned-issue/projects/17

If the URL is correct, you should see output that says something like
This project is configured at the repo level. Repo Owner: konradpabjan, repo name: move-labeled-or-milestoned-issue project number#17

@benjamin-hull
Copy link
Author

Oh - yes, I've just redacted the owner and repo names in the example config and logs here as it's a private repo. The URL in the real config is correct, and yep, I get that output in the logs.

So I don't think that's the issue. Any other ideas?

@emre1702
Copy link

Had the same issue.

For people finding this old issue in the future:
action-token: "${{ secrets.WORKFLOW_ACTIONS }}"
Remove the quotes here
=> action-token: ${{ secrets.WORKFLOW_ACTIONS }}

@ian-steffy
Copy link

@benjamin-hull Did you find a fix for this?

@emre1702 This did not change the error for me.

@fabiovinci
Copy link

Dear all,

I have the same error:
#ERROR# TypeError: Cannot read properties of null (reading 'columns')

Any news about it?

@fredericsimard
Copy link

I am getting the same error :

#ERROR# TypeError: Cannot read properties of null (reading 'columns')

... could it be because this a new project, and by new I mean the newer version of GitHub Projects, the legacy ones being discontinued?

@colinwilliams91
Copy link

I am getting the same error :

#ERROR# TypeError: Cannot read properties of null (reading 'columns')

... could it be because this a new project, and by new I mean the newer version of GitHub Projects, the legacy ones being discontinued?

I am also having the same error currently. I have a suspicion you are correct @fredericsimard but I'm hoping you're incorrect lol 😓 😅

@colinwilliams91
Copy link

This Issue #28 actually has a comment pointing to a better way to achieve similar things that worked for me!

@fredericsimard
Copy link

@colinwilliams91 I believe this might fix the issue. I'll try that tomorrow and let you know.

@fredericsimard
Copy link

@colinwilliams91 Turns out there is no need for an action with the new Projects, you can use Workflows to move issues and PRs in a project and put them in a specific column. More details here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants