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

enable repo-level project assignment #149

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

pygmypenguin
Copy link

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

Patrick Foley and others added 4 commits February 28, 2023 17:16
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
github.com will be wrong for enterprise users, change this to use {self.base_url}
@alstr
Copy link
Owner

alstr commented Mar 3, 2023

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
Copy link
Author

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
Copy link
Author

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
Copy link
Owner

alstr commented Mar 17, 2023

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)?

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

Successfully merging this pull request may close these issues.

None yet

2 participants