diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml index 1c5a5339293..58cce1629e9 100644 --- a/.github/workflows/issue.yml +++ b/.github/workflows/issue.yml @@ -36,10 +36,10 @@ jobs: id: '10001' }, parent: { - key: 'DI-3523' + key: 'API-1' }, project: { - id: '10118' + id: '11316' }, components: [ { diff --git a/scripts/update_jira_token.sh b/scripts/update_jira_token.sh new file mode 100755 index 00000000000..03c3b8e4639 --- /dev/null +++ b/scripts/update_jira_token.sh @@ -0,0 +1,37 @@ +#!/bin/sh + +# This script updates the JIRA_TOKEN secret in the GitHub repository +# Usage: ./scripts/update_jira_token.sh + +if [ "$#" -ne 1 ]; then + echo "Usage: $0 " + exit 1 +fi + +EMAIL="$1" +TOKEN="$2" +ENCRYPED_TOKEN=$(echo -n "$EMAIL:$TOKEN" | base64) + +repositories=( + "algolia/api-clients-automation" + "algolia/algoliasearch-client-csharp" + "algolia/algoliasearch-client-dart" + "algolia/algoliasearch-client-go" + "algolia/algoliasearch-client-java" + "algolia/algoliasearch-client-javascript" + "algolia/algoliasearch-client-kotlin" + "algolia/algoliasearch-client-php" + "algolia/algoliasearch-client-python" + "algolia/algoliasearch-client-ruby" + "algolia/algoliasearch-client-scala" + "algolia/algoliasearch-client-swift" + "algolia/algoliasearch-django" + "algolia/scout-extended" + "algolia/search-bundle" + "algolia/firestore-algolia-search" + "algolia/algoliasearch-rails" +) + +for repo in "${repositories[@]}"; do + gh -R "$repo" secret set JIRA_TOKEN --body "$ENCRYPED_TOKEN" +done diff --git a/templates/issue.yml b/templates/issue.yml index 1c5a5339293..58cce1629e9 100644 --- a/templates/issue.yml +++ b/templates/issue.yml @@ -36,10 +36,10 @@ jobs: id: '10001' }, parent: { - key: 'DI-3523' + key: 'API-1' }, project: { - id: '10118' + id: '11316' }, components: [ {