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

I want to use this tool for org PJ #1

Open
tatsuo48 opened this issue Aug 18, 2023 · 2 comments
Open

I want to use this tool for org PJ #1

tatsuo48 opened this issue Aug 18, 2023 · 2 comments
Labels
Type: Bug Bug or Bug fixes

Comments

@tatsuo48
Copy link

tatsuo48 commented Aug 18, 2023

Hi @azu .
I want to use this tool for organization GitHub Project.
example: https://github.com/orgs/<org-name>/projects/1

https://github.com/azu/github-project-todo-md is adapt org GitHub pj, but this plugin is only for users pj.

@tatsuo48 tatsuo48 changed the title I use this tool for org PJ I want to use this tool for org PJ Aug 18, 2023
@azu azu added the Status: Proposal Request for comments label Aug 18, 2023
@azu
Copy link
Owner

azu commented Aug 18, 2023

const match = body.match(/https:\/\/github\.com\/(?<owner>.*?)\/(?<repo>.*?)\/projects\/(?<number>\d+)/);
if (!match) {
return null;
}
const { owner, repo, number } = match.groups || {};
if (!(owner && repo && number !== undefined)) {
throw new Error(
"Does not include GitHub Project URL. No matching /https:\\/\\/github\\.com\\/(?<owner>.*?)\\/(?<repo>.*?)\\/projects\\/(?<number>\\d+)/"
);
}
console.log("[sync-github-project-todo-md]", {
owner,
repo,
number,
includesNote
});
await syncToProject(body, {
repo,
owner,
projectNumber: Number(number),
token: GITHUB_TOKEN,
includesNote
});

https://github.com/azu/github-project-todo-md#users-or-organizations-project

It seems to be moving, but something may be wrong.

Unfortunately I don't use this plugin anymore, so I'm stuck with it...

@azu azu added Type: Bug Bug or Bug fixes and removed Status: Proposal Request for comments labels Aug 18, 2023
@tatsuo48
Copy link
Author

thank you for your response!
I will look at the code and if it looks like it can be fixed, I will send out a PR.

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

No branches or pull requests

2 participants