Adding PR#s in towncrier #580
-
Hi! Thanks for this tool, been using it for my python projects and it's much better than recording changes manually! Is there some way to automatically add a PR # to the towncrier newsfragments after they form the changelog.md? Perhaps this is something to be done using CI/CD GitHub actions? I know that issue number is included as the integer that is the prefix of the news fragment. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi. Thanks for the report. I don't understand the use case or what is required here. Can you please provide a step by step description of what you want do , what are your manual steps and what are the steps that you expect towncrier to automaticaly do. Cheers |
Beta Was this translation helpful? Give feedback.
If the PR is not created yet... then we don't know the PR ID
Maybe some convention like
create -c 'message' 1234-5678.type
where 1234 is the Issue ID and 5678 is the PR ID ... but you will have to add custom code for supporting this use caseMost of the time, I create the towncrier info before creating the PR.
And, if in the PR description you add
Fixes #1234
you will see a link to the PR from the Issue page.