-
-
Notifications
You must be signed in to change notification settings - Fork 60
Add PR Links as Task List Items to Issues #518
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #518 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 18 18
Lines 1998 2034 +36
Branches 227 231 +4
=========================================
+ Hits 1998 2034 +36
Flags with carried forward coverage won't be shown. Click here to find out more.
|
# If the body already contains a legacy closing tag | ||
# (e.g. <!-- /gh-pr-number -->), then we use the legacy template | ||
# TODO: Remove this when all the open issues using the legacy tag are closed | ||
if PR_BODY_CLOSING_TAG.format(tag_type=PR) in body: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am leaving the issues updated with the old implementation (e.g. <!-- /gh-pr-number -->
) alone.
Co-authored-by: Ezio Melotti <[email protected]>
Co-authored-by: Ezio Melotti <[email protected]>
This seems to work (at least with a single linked PR): python/cpython#99443 Thanks again @saadmk11! |
Hi @ezio-melotti, Looks like this is not working for multiple PRs (python/cpython#96192). After some investigation I found that Example: <!-- gh-linked-prs -->
https://github.com/python/cpython/issues/96192#tasklist-block-8fd60492-131e-4b4a-abab-06800aa4bb11
<!-- /gh-linked-prs -->
<!-- gh-linked-prs -->
https://github.com/python/cpython/issues/96192#tasklist-block-ea9583fe-18a8-47ee-aec9-08a62427146b
<!-- /gh-linked-prs --> I found this after I inspected the API response for python/cpython#96192 (https://api.github.com/repos/python/cpython/issues/96192). This did not happen for the repositories I tested this PR on because it did not have this feature enabled. This re-write causes multiple issues for us:
I would suggest switching to |
FWIW this is the relevant part of the body of the issue linked above, but as you noticed, this is different from what is received from the API.
The
This is definitely an option if the above suggestion fails.
You can join the waitlist to request tasklists being enabled on one of your repos here: https://github.com/features/issues/signup I also contacted GitHub for feedback, so if the suggestion doesn't work we can switch to checklist, and reconsider tasklists if/when they offer a solution. |
Not sure what you mean here. The API returns this:
Unfortunately you can't join the wait-list as an individual user, only GitHub organizations are accepted. |
I see, I thought it was the full URL for the PRs. In that case, let's just switch to checklists for now. |
Seems like auto marking a checklist items as completed (e.g: |
If that's the case (i.e. merging a PR doesn't mark it as completed in the checklist), then there is no advantage in using checklists over plain lists. The difference between checklists and plain lists is that the checklist shows the number of "tasks" at the top of the issue (as IOW, it's probably better to go back to plain lists for the time being. |
Hey folks, we're investigating this as a bug on our end. So sorry for the delay here, we'll try and get this fixed in the new year and making sure multiple PRs work in these blocks. Again, so sorry you all had to wait this long for a response and thank you so much for being Alpha (now Beta!) users :) |
Thanks @omerbensaadon ! Looking forward to it! |
closes #517