-
Notifications
You must be signed in to change notification settings - Fork 193
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
Draft pull requests trigger "Pull request created" #182
Comments
Hey @dpraul Thanks for opening this issue! Definitely makes sense to discuss how this should work here. One dependency we have is that the enum for the Pull Request status is this: It would be great if Jira had a "Draft" state, and maybe we can talk to Atlassian about adding that to their API, but in the mean time, would you rather not have the Pull Request be sent to Jira at all if it's in Draft state? I feel like this could be something people have different opinions on. Personally I would say that creating a Pull Request doesn't necessarily mean it's in review, and maybe you could update the PR title to include the transition syntax when it's really ready for review? |
I agree with your point on people having differing opinions - I'm not certain leaving draft pull requests out of Jira is the best solution. Definitely also see your point on a PR opened not necessarily meaning it's in review (my workflow configuration skills are weak, so I'm sure there is room for improvement there). Ideally the workflow would be able to pick up when reviewers are added to a PR and use that to fire the transition, but I haven't had a chance yet to figure out if I can do that given the current tooling or whether that's something that would need to be handled by a different plugin. We're avoiding the smart commit syntax right now in favor of things that work directly with the interface, but that's apt to change if the tools only go so far. Regardless, if the takeaway here is that draft pull requests function as expected given the current Jira API restrictions then I think that's fine. It was confusing when I originally saw it, but I see how that could also be a result of our non-ideal workflow. |
@tcbyrd what would happen if the status is set to Have there been any improvements in JIRA's API to tackle this issue better now? |
Hi, any update on this issue? Following up on the conversation, I rather not have the Pull Request be sent to Jira while it is a draft until it becomes ready for review. |
agree with last comment, is there any update? |
Hi, any updates on this issue? I also agree with @ivan-californias. |
Any further feedback on this issue @tcbyrd? I stumbled upon this today and have the same workflow as described by the original author, and am fully on board with the solution proposed by @ivan-californias, what is required to move this forward? |
Hi there, Looking forward to it! |
Another bump here. Being able to differentiate between draft and final PRs would be awesome for our workflows. |
This feature should be configurable by the user. I dislike drafts triggering code review. It breaks peers reviewing each others work. |
here to chime in and say that i also ran into this issue and it would be amazing if we could get either a different trigger for PRs or possibly a condition where we can check the PR's type |
Any updates here? Would really improve our Jira - Guthub workflow! |
Another bump here, any update @tcbyrd ? |
It seems that Atlassian has their own ticket about this one. Probably helps more if people go there to vote the issue: |
Hi @dpraul. I'm from a team at Atlassian that is currently in the process of migrating the ownership over to us from GitHub. As a part of this, we're currently going through the backlog of issues and prs to see what can still be addressed and what should be closed. I've flagged this with the 'to-triage' label so my team can discuss. We'll keep you posted on the status of this. |
I would also love to see Draft PRs treated differently for the JIRA integration! |
I would also like to have this feature. We use it to trigger our workflow to move columns and bring work items to people's attention. |
Please add this differentiation – this is important to our organization! |
Same here, currently In-Review column is flooded with draft pr's which are not ready for review. |
@tebriel and @rachellerathbone, I think this is a feature our team could benefit from, as well. What things do you need from the community to add this? There's an implementation mentioned by a member of the community, at https://jira.atlassian.com/browse/JRACLOUD-72888, that would be nice for Atlassian to support natively, especially for developers who don't have admin-level access to our organization's |
Any news about it? |
Bump! |
Not sure if I should complain to Jira or Github about this, I decided on both. Can we get a solution for this? |
+1 |
+1 from us as well; we'd love for Drafts to not trigger the "Pull Request Created" event |
Any news? |
+1 |
2 similar comments
+1 |
+1 |
To future people popping in here: feel free to comment if you have input! But simply commenting with a "+1" or similar "bump" comments does nothing except create noise for all the subscribers on this thread. If you'd like to show your support but have nothing to add besides what has already been said, GitHub has a mechanism for your voice to be heard without creating additional noise! Simply leave a 👍 on the top comment and Atlassian will be able to see your input when they sort by "most reactions". 🙂 |
I agree the draft pr should NOT trigger a jira change. For example, we have a "Code Review" status for tickets and ideally this would only happen for real PRs and not draft ones. I sometimes set up a draft pr when I'm doing file setup for new work and then PMs get excited because it seems the work was done so fast 🤣 . |
+1 |
+1 |
1 similar comment
+1 |
Another vote here for draft PRs not triggering transitions in Jira, it causes a lot of confusion. |
@rachellerathbone we're coming up on 4 years since GitHub introduced the draft feature (Feb 14). This thread is about the same age with no progress at all on the issue, or any communication about what Atlassian plans to do. Can you please give us some insight into this problem and what Atlassian's intentions and timeline are for fixing this. Unfortunately I'm not able to comment in the Atlassian ticket posted earlier here, so this is the only outlet I've found. |
Still no update on this? Unable to comment as others have stated on the Atlassian thread. |
Hi all, we know you’ve been patiently waiting for this feature. We’re pleased to let you know it’s now in final testing stages and should be available soon. We’ll keep you posted on this issue and you can also follow the updates on this PR, stay tuned. |
Thank you for the announcement @atrigueiro! I'm however not sure the new feature fulfills this issue's core request (i.e. opening draft PR shouldn't trigger "Pull request created" action). If this is the case, can you please reopen it? Thanks! |
Thanks @atrigueiro! Progress on this issue finally is much appreciated but I agree with @usmonster, this is only half the solution, since the "Pull request created" trigger is currently unaffected by this change. so I wouldn't consider this issue resolved. |
We can now check pullRequest.state for "draft" to avoid transitioning for those who are not following JIRACLOUD-78888, but the transiton from draft to ready for review PR should probably trigger "Pull request created", if there is NO other way to detect this transition. |
just had a check, the transition from |
This issue is not resolved! |
It would be great to get it a) solved in general and b) also for Data Center solved. |
Mid-2024: I'm just joining this dance half-baked "PR created" workflow dance. It's possible we have to create a new issue, because re-opening closed issues (even if it's arguably incorrectly closed) has its own various workflow gremlins associated. Maybe @atrigueiro or @rachellerathbone can lead the way to the new GH issue on how to get Draft -> Ready transition working correctly? Just re-triggering "Pull request created" could be a sane option looking at it from surface level, but side-effects? Without PR workflows right to a tee, tool-hopping is back on the table for many, I'm sure. |
+1 on resolution needed |
I understand that Draft pull requests are a fairly new feature, so maybe it's just that the workflow hasn't been entirely ironed out with how they work with the Jira integration.
That said, opening the discussion: I'm not sure if a draft pull request makes sense to trigger "Pull request created". Right now we use that trigger to transition issues from "In Progress" to "In Review", and I think the intent of a draft pull request is to signal code is still being developed, thus why it also does not trigger
CODEOWNERS
. I'm also open to suggestions on how to do the transition better if it sounds like I'm in the wrong ballpark.Thanks!
The text was updated successfully, but these errors were encountered: