Created
June 16, 2025 06:29
-
-
Save abeforgit/e224a926c574a7bf4c1b5ba31d61f9d4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# uses the rels script to put a markdown-formatted url into the | |
# clipboard - handy for writing changesets or otherwise linking releases | |
# dependencies | |
# rels (see this gist) | |
# wl-copy or xclip | |
url=$(rels) || exit 1 | |
tag=$(echo $url | cut -f 8 -d "/") || exit 2 | |
# replace wl-copy with xclip if on xorg | |
echo -n "[$tag]($url)" | wl-copy | |
echo "[$tag]($url)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# uses fzf to show you a predefined list of repos. | |
# after selecting, it then shows you a list of tags, sorted such that the last tag is already selected | |
# after selecting the tag, it prints the github url to the release page for that tag | |
# dependencies: | |
# fzf | |
# git or gh | |
#version without gh cli | |
declare -A repo_map | |
# repo_map["lblod/frontend-gelinkt-notuleren"]="$HOME/repos/redpencil/frontend-gelinkt-notuleren" | |
# repo_map["lblod/app-gelinkt-notuleren"]="$HOME/repos/redpencil/app-gelinkt-notuleren" | |
# repo_map["lblod/frontend-reglementaire-bijlage"]="$HOME/repos/redpencil/frontend-reglementaire-bijlage" | |
# repo_map["lblod/app-reglementaire-bijlage"]="$HOME/repos/redpencil/app-reglementaire-bijlage" | |
# repo_map["lblod/ember-rdfa-editor"]="$HOME/repos/redpencil/ember-rdfa-editor" | |
# repo_map["lblod/ember-rdfa-editor-lblod-plugins"]="$HOME/repos/redpencil/ember-rdfa-editor-lblod-plugins" | |
# | |
# repo=$(echo "${!repo_map[@]}" | tr " " "\n" | fzf) || exit 1 | |
# | |
# tag=$(git -C ${repo_map[$repo]} tag -l --sort=-taggerdate | fzf) || exit 2 | |
# | |
# | |
# echo "https://github.com/$repo/releases/tag/$tag" | |
# alternative using gh cli, which doesn't need path mappings | |
# but makes a network request | |
# | |
repos="lblod/frontend-gelinkt-notuleren | |
lblod/app-gelinkt-notuleren | |
lblod/frontend-gelinkt-notuleren-publicatie | |
lblod/app-gn-publicatie | |
lblod/frontend-reglementaire-bijlage | |
lblod/app-reglementaire-bijlage | |
lblod/frontend-mow-registry | |
lblod/app-mow-registry | |
lblod/ember-rdfa-editor | |
lblod/ember-rdfa-editor-lblod-plugins" | |
REPO=$( echo "$repos" | fzf) | |
tag=$(gh release list -R $REPO | fzf | cut -f 3) || exit 1 | |
echo "https://github.com/$REPO/releases/tag/$tag" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment