less than 1 minute read

Update: I’m no longer using the project-beta-automations Action, I’m now using the add-to-project Action instead as it’s a bit more user friendly and fully supported by GitHub.

Sorry about the lack of details in this blog post, it’s a busy week. Basically, I was trying to use the project-beta-automations GitHub Action, but one of the parameters needed is the project_id, which is not in the URL. This post explains how to find your project ID.

Navigate over to the GitHub GraphQL Explorer and run the following query:

{
  organization(login: "stevemarlabs") {
    login
    projectsNext(first: 100, query: "My Project") {
      edges {
        node {
          id
          title
        }
      }
    }
  }
}

The result will be a list of projects that match the query string. The ID will be included in each entry.

{
  "data": {
    "organization": {
      "login": "stevemarlabs",
      "projectsNext": {
        "edges": [
          {
            "node": {
              "id": "PN_123456abcdefg",
              "title": "My Project 1 "
            }
          },
          {
            "node": {
              "id": "PN_7840355abcdeg",
              "title": "My Project 2"
            }
          }
        ]
      }
    }
  }
}

That’s it!

Updated: