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

Add action to automatically add issues and PRs to a GitHub project board #15

Open
cjyetman opened this issue Jan 24, 2024 · 13 comments
Open
Labels

Comments

@cjyetman
Copy link
Member

I might be the only one that uses it, but I have a board that is meant to track all issues and PRs related to Transition Monitor across many repos. It's only really feasible because I setup GH actions in each relevant repo to automatically add any newly created issues or PRs, like this https://github.com/RMI-PACTA/pacta.portfolio.allocate/blob/main/.github/workflows/add-prs-and-issues-to-project.yml

@jdhoffa
Copy link
Member

jdhoffa commented Jan 24, 2024

I have a similar thing going for r2dii here:
https://github.com/orgs/RMI-PACTA/projects/10

I think we should align on EITHER doing this, or #17 (otherwise we are really risking falling out of sync/ maintaining two of the same thing)

@cjyetman
Copy link
Member Author

Personally, I would still find the board useful even if #17 was duplicating tickets in ADO. The boards are in-sync with the GH issues and PRs, so it's not really adding an additional set of them to manage, it's just offering a different view of them.

@jdhoffa
Copy link
Member

jdhoffa commented Jan 24, 2024

Yeah fair enough. Just want to make sure you don't spend all of the time that you want to put towards Project Management on beautifying that GitHub board, and have that result in their ADO counterparts being left to rot (playing Matze's advocate here a bit seeing as he's not on GH lol)

but if you love PM so much you want to have two boards then that works 😂

Also speaking from my own experience, as I could easily spend several hours making the r2dii GH project much prettier, but have actively avoided doing that so that I can put the time into ADO instead for the sake of the team

@cjyetman
Copy link
Member Author

I don't love PM so much, but I appreciate the ability to see related issues and PRs across multiple repos that are relevant, and be able to interact with them directly. If all the relevant code was in one repo and not spread out across numerous separate repos, I'd probably be fine with using just that repo's Issues and PRs tabs.

@jdhoffa
Copy link
Member

jdhoffa commented Jan 24, 2024

Fair enough!

(obviously I agree since I do the same thing lol)

@jdhoffa
Copy link
Member

jdhoffa commented Jan 24, 2024

Tagging as agile though granted it's not exactly/ specifically agile, but agile-adjacent.

@cjyetman
Copy link
Member Author

cjyetman commented Feb 8, 2024

I've discovered that the existing actions we have to achieve this do not add a new draft PR to the board. I would prefer that it did. Maybe this is something that could be added/fixed, and if necessary parameterized.

@jdhoffa
Copy link
Member

jdhoffa commented Feb 8, 2024

If so, would prefer that this is parameterized as I would prefer Drafts NOT on my boards hahaha XD (as you suggest)

@cjyetman

This comment was marked as off-topic.

@jdhoffa

This comment was marked as off-topic.

@jdhoffa
Copy link
Member

jdhoffa commented Feb 9, 2024

Any idea/suspicion what would happen if I selected numerous issues in a repo at the same time and bulk added the ADO tag to them?! That would be awesome if it worked as expected.

FYI. I think this comment should actually be here: #17

This issue is related to GH projects, not ADO.

@jdhoffa jdhoffa changed the title Add action to automatically add issues and PRs to a project Add action to automatically add issues and PRs to a GitHub project board Feb 9, 2024
@cjyetman
Copy link
Member Author

I have also discovered that if one opens a draft PR and then later opens it for review, the opening for review action does not add the PR to the board. (@jdhoffa while I understand you don't want draft PRs to be added automatically, I assume you would want a PR to be added once it had been opened for review?)

@jdhoffa
Copy link
Member

jdhoffa commented Feb 16, 2024

I don't have any comment here, as I largely plan to deprecate my (personal) use of this action in favor of https://github.com/RMI-PACTA/actions/blob/main/.github/workflows/issues-gh-to-ado.yml

I give you full reign to adjust this action as you please if you plan to use it still! I will likely be closing all of my GH projects once I have finished testing the GH-to-ADO action in the wild.

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

No branches or pull requests

2 participants