You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
308 B

  1. #!/usr/bin/env bash
  2. set -e
  3. # Fetch the current GitHub issue number, add one to it -- presto! The likely
  4. # next PR number.
  5. CURRENT_NUMBER=$(curl -s "https://api.github.com/repos/matrix-org/synapse/issues?state=all&per_page=1" | jq -r ".[0].number")
  6. CURRENT_NUMBER=$((CURRENT_NUMBER+1))
  7. echo $CURRENT_NUMBER