Skip to content

Commit

Permalink
Updated release note indicator
Browse files Browse the repository at this point in the history
(%release-note:Updated release note indicator  2%)
  • Loading branch information
Farshad DASHTI authored and Farshad DASHTI committed Oct 9, 2024
1 parent 13faccf commit 6d21830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/nuget-package-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,8 @@ jobs:
id: extract_description
run: |
# Extracts multiline release-note between (%release-note: and %)
DESCRIPTION=$(git log -1 --pretty=format:"%b" | awk '
# Start capturing when (%release-note: is found
/(%release-note:/ {
flag=1; sub(/.*\(%release-note: */, ""); print; next
}
# Stop capturing when %) is found
/ *%\)/ {
sub(/%\).*/, ""); print; flag=0; next
}
# If flag is on, continue printing lines
flag {print}
')
DESCRIPTION=$(git log -1 --pretty=format:"%b" | grep -oP '(?s)(?<=\(%release-note:)(.*?)(?=\s*%\))')
if [[ -z "$DESCRIPTION" ]]; then
DESCRIPTION="No release notes provided."
fi
Expand Down
1 change: 1 addition & 0 deletions src/DfE.CoreLibs.Caching/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ dotnet add package DfE.CoreLibs.Caching
}
```


2. **Usage in Handlers:** Here's an example of how caching is used in one of your query handlers:

```csharp
Expand Down

0 comments on commit 6d21830

Please sign in to comment.