alstr / todo-to-issue-action

Action that converts TODO comments to GitHub issues on push.
MIT License
603 stars 115 forks source link

enable repo-level project assignment #149

Open pygmypenguin opened 1 year ago

pygmypenguin commented 1 year ago

Currently todo-to-issue only supports assigning issues to an organization-level project, or a user-level one. This should allow the action to assign issues to projects that are localized to a repo within an organization

alstr commented 1 year ago

Cool, thanks for the contribution! Just wondering have you tested this out and it works? And is it for the legacy style projects?

At some point in the future I would like to improve how projects work with the action in general, but I don't think the API (last time I checked) for the new style projects is quite there yet, and the add-to-project action doesn't seem to work properly (see #138).

If this works for the time being then I'm happy to add it.

pygmypenguin commented 1 year ago

Just wondering have you tested this out and it works? And is it for the legacy style projects?

This is for classic projects, yes. my org is running github enterprise and we don't have the new-style project support yet, so i wrote this using the existing logic and known paths (e.g. i know that https://gitUrl/orgName/repoName/projects is a valid url). Unfortunately, because we lock down what actions can be used, I can't just test it within that context without several layers of approval (your app is approved, but mine being a fork of yours would need separate approval). for my personal github account, i can't create classic projects to test against because i don't already have a classic project (see here)

long story short, i haven't tested it unfortunately because right now i can't.

pygmypenguin commented 1 year ago

and the add-to-project action doesn't seem to work properly (see #138).

according to their documentation, it appears actions/add-to-project will never work with classic projects. since enterprise users will likely need their own workaround for an issue, i think this would be a good stopgap

alstr commented 1 year ago

Fair enough, sorry I've not got around to it yet, I'll aim to shortly.

Also, in the README I noticed you'd added a bit about potentially using the GITHUB_TOKEN; I never had any luck with using the default one when I originally developed the functionality. Have you had this work at all (with user/org projects)?