2021-03-25 17:53:54 +01:00
|
|
|
#!/usr/bin/env bash
|
2018-09-26 16:23:21 +02:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
# Fetch the current GitHub issue number, add one to it -- presto! The likely
|
|
|
|
# next PR number.
|
2021-10-23 00:07:23 +02:00
|
|
|
CURRENT_NUMBER=$(curl -s "https://api.github.com/repos/matrix-org/synapse/issues?state=all&per_page=1" | jq -r ".[0].number")
|
2018-09-26 16:23:21 +02:00
|
|
|
CURRENT_NUMBER=$((CURRENT_NUMBER+1))
|
2021-03-25 17:53:54 +01:00
|
|
|
echo $CURRENT_NUMBER
|