You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently trying to categorize the release notes based on which PRs address fixes vs. which PRs address features, specific for an Azure devops yaml pipeline. Taking the starting template for generating the release notes as a starting point, I've came up with this for categorizing pull requests for Bug items addressing fixes:
Does an okay job as a starting point, but I would also like to sort the titles of the pull requests being iterated based on the title, as well as break out when a PR in relation to the work item gets found to prevent duplicate listings. This would entail saving all pull requests found, and then sorting them out when the main foreach completes before listing them out. Would it be possible to get guided on how to best perform that action? Would making a custom handlebar extension facilitate this? I'm new to this and still picking up the ropes. Any help would be greatly appreciated!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm currently trying to categorize the release notes based on which PRs address fixes vs. which PRs address features, specific for an Azure devops yaml pipeline. Taking the starting template for generating the release notes as a starting point, I've came up with this for categorizing pull requests for Bug items addressing fixes:
{{#forEach workItems"}}
{{#if (eq (lookup this.fields 'System.WorkItemType') 'Bug')}}
{{#forEach this.relations}}
{{#if (contains this.attributes.name 'Pull Request')}}
{{#with (lookup_a_pullrequest ../../pullRequests this.url)}}
* {{this.title}}
#break
{{/with}}
{{/if}}
{{/forEach}}
{{/if}}
{{/forEach}}
Does an okay job as a starting point, but I would also like to sort the titles of the pull requests being iterated based on the title, as well as break out when a PR in relation to the work item gets found to prevent duplicate listings. This would entail saving all pull requests found, and then sorting them out when the main foreach completes before listing them out. Would it be possible to get guided on how to best perform that action? Would making a custom handlebar extension facilitate this? I'm new to this and still picking up the ropes. Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions