mirror of
https://github.com/actions/add-to-project.git
synced 2025-12-12 13:07:21 +00:00
Allow for user projects
This commit is contained in:
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
@@ -40,7 +40,7 @@ const core = __importStar(__nccwpck_require__(2186));
|
|||||||
const github = __importStar(__nccwpck_require__(5438));
|
const github = __importStar(__nccwpck_require__(5438));
|
||||||
// TODO: Ensure this (and the Octokit client) works for non-github.com URLs, as well.
|
// TODO: Ensure this (and the Octokit client) works for non-github.com URLs, as well.
|
||||||
// https://github.com/orgs/<orgName>/projects/<projectNumber>
|
// https://github.com/orgs/<orgName>/projects/<projectNumber>
|
||||||
const urlParse = /^(?:https:\/\/)?github\.com\/orgs\/(?<orgName>[^/]+)\/projects\/(?<projectNumber>\d+)/;
|
const urlParse = /^(?:https:\/\/)?github\.com\/orgs|users\/(?<orgName>[^/]+)\/projects\/(?<projectNumber>\d+)/;
|
||||||
function run() {
|
function run() {
|
||||||
var _a, _b, _c, _d, _e, _f;
|
var _a, _b, _c, _d, _e, _f;
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
|||||||
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
@@ -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.
|
// TODO: Ensure this (and the Octokit client) works for non-github.com URLs, as well.
|
||||||
// https://github.com/orgs/<orgName>/projects/<projectNumber>
|
// https://github.com/orgs/<orgName>/projects/<projectNumber>
|
||||||
const urlParse =
|
const urlParse =
|
||||||
/^(?:https:\/\/)?github\.com\/orgs\/(?<orgName>[^/]+)\/projects\/(?<projectNumber>\d+)/
|
/^(?:https:\/\/)?github\.com\/orgs|users\/(?<orgName>[^/]+)\/projects\/(?<projectNumber>\d+)/
|
||||||
|
|
||||||
interface ProjectNodeIDResponse {
|
interface ProjectNodeIDResponse {
|
||||||
organization: {
|
organization: {
|
||||||
|
|||||||
Reference in New Issue
Block a user