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 | |
| set -e | |
| pr=$1 | |
| if [ -z "$1" ] | |
| then | |
| echo "PR number needs to be passed" | |
| exit 1 | |
| fi |
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
| import java.io.IOException; | |
| import static java.lang.String.format; | |
| public class Notifications { | |
| public static void main(String[] args) throws IOException { | |
| var sound = args.length >= 3 ? Sound.valueOf(args[2]) : Sound.Purr; | |
| runNotification(new Notification(args[0], args[1], sound)); | |
| } |
OlderNewer