Allow for user projects

This commit is contained in:
Jonathan Clem
2022-01-31 14:13:35 -05:00
parent 078fd9f744
commit 902f1883f1
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ import * as github from '@actions/github'
// TODO: Ensure this (and the Octokit client) works for non-github.com URLs, as well.
// https://github.com/orgs/<orgName>/projects/<projectNumber>
const urlParse =
/^(?:https:\/\/)?github\.com\/orgs\/(?<orgName>[^/]+)\/projects\/(?<projectNumber>\d+)/
/^(?:https:\/\/)?github\.com\/orgs|users\/(?<orgName>[^/]+)\/projects\/(?<projectNumber>\d+)/
interface ProjectNodeIDResponse {
organization: {