Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packaging/windows/Deskhub.iss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
AppId={{A54D0B95-4B42-4A02-A9C6-EC43BA13034E}
AppName=DeskHub
AppVersion={#AppVersion}
AppPublisher=ManhPham
AppPublisher=Bitfaring
DefaultDirName={autopf}\DeskHub
DefaultGroupName=DeskHub
DisableProgramGroupPage=yes
Expand Down
32 changes: 32 additions & 0 deletions scripts/update-release-owner-links.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash
# Preview historical release notes affected by the repository transfer.
# Pass --apply to update their bodies using the authenticated GitHub CLI.
set -euo pipefail

case "${1-}" in
''|--apply) ;;
*) echo "Usage: $0 [--apply]" >&2; exit 2 ;;
esac

releases=repos/Bitfaring/Deskhub/releases
rewrite='
def update_links:
split("https://github.com/manhpham90vn/Deskhub/blob/main/PRIVACY.md")
| join("https://bitfaring.com/products/deskhub/privacy/")
| split("https://github.com/manhpham90vn/Deskhub/")
| join("https://github.com/Bitfaring/Deskhub/")
| split("https://raw.githubusercontent.com/manhpham90vn/Deskhub/")
| join("https://raw.githubusercontent.com/Bitfaring/Deskhub/");
'

gh api --paginate "$releases" |
jq -r "$rewrite"' .[] | select(.body != null and (.body | update_links) != .body)
| [.id, .tag_name] | @tsv' |
while IFS=$'\t' read -r id tag; do
echo "$tag"
if [[ ${1-} == --apply ]]; then
gh api "$releases/$id" |
jq "$rewrite"' {body: (.body | update_links)}' |
gh api --method PATCH "$releases/$id" --input - --silent
fi
done
Loading