diff --git a/.github/workflows/api-versions-reminder.yml b/.github/workflows/api-versions-reminder.yml index acd87bbb2e..b1c919f8b8 100644 --- a/.github/workflows/api-versions-reminder.yml +++ b/.github/workflows/api-versions-reminder.yml @@ -47,7 +47,7 @@ jobs: if: steps.retrieve-sunset-apis.outputs.hash_code_sunset_apis != null env: JIRA_API_TOKEN: ${{ secrets.jira_api_token }} - JIRA_TEAM_ID: ${{ vars.JIRA_TEAM_ID_APIX_1}} + JIRA_TEAM_ID: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM}} JIRA_TICKET_TITLE: "Some APIs are approaching their sunset date in the next 3 months. ID: ${{steps.retrieve-sunset-apis.outputs.hash_code_sunset_apis}}" run: | sunset_apis=$(sed 's/"/\\"/g' sunset_apis.json) @@ -61,13 +61,13 @@ jobs: env: SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }} SLACK_BEARER_TOKEN: ${{ secrets.SLACK_BEARER_TOKEN }} - SLACK_APIX_2_ONCALL_USER: ${{secrets.SLACK_APIX_2_ONCALL_USER}} + SLACK_APIX_PLATFORM_ONCALL_USER: ${{secrets.SLACK_APIX_PLATFORM_ONCALL_USER}} JIRA_TICKET_ID: ${{ steps.create-jira-ticket.outputs.jira-ticket-id }} run: | echo "JIRA_TICKET_ID: ${JIRA_TICKET_ID}" message_id=$(curl -X POST -H 'Authorization: Bearer '"${SLACK_BEARER_TOKEN}" \ -H 'Content-type: application/json' \ - --data '{"channel":"'"${SLACK_CHANNEL_ID}"'","text":"The following APIs are scheduled to be sunset in the next 3 months ('"${SLACK_APIX_2_ONCALL_USER}"'). See Jira Ticket: https://jira.mongodb.org/browse/'"${JIRA_TICKET_ID}"'","parse": "full",}' https://slack.com/api/chat.postMessage | jq '.ts') + --data '{"channel":"'"${SLACK_CHANNEL_ID}"'","text":"The following APIs are scheduled to be sunset in the next 3 months ('"${SLACK_APIX_PLATFORM_ONCALL_USER}"'). See Jira Ticket: https://jira.mongodb.org/browse/'"${JIRA_TICKET_ID}"'","parse": "full",}' https://slack.com/api/chat.postMessage | jq '.ts') echo "message_id=${message_id}" sunset-api-version-1month-reminder: @@ -111,7 +111,7 @@ jobs: if: steps.retrieve-sunset-apis.outputs.hash_code_sunset_apis != null env: JIRA_API_TOKEN: ${{ secrets.jira_api_token }} - JIRA_TEAM_ID: ${{ vars.JIRA_TEAM_ID_APIX_1}} + JIRA_TEAM_ID: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM}} JIRA_TICKET_TITLE: "Some APIs are approaching their sunset date in the next month. ID: ${{steps.retrieve-sunset-apis.outputs.hash_code_sunset_apis}}" run: | sunset_apis=$(sed 's/"/\\"/g' sunset_apis.json) @@ -125,13 +125,13 @@ jobs: env: SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }} SLACK_BEARER_TOKEN: ${{ secrets.SLACK_BEARER_TOKEN }} - SLACK_APIX_2_ONCALL_USER: ${{secrets.SLACK_APIX_2_ONCALL_USER}} + SLACK_APIX_PLATFORM_ONCALL_USER: ${{secrets.SLACK_APIX_PLATFORM_ONCALL_USER}} JIRA_TICKET_ID: ${{ steps.create-jira-ticket.outputs.jira-ticket-id }} run: | echo "JIRA_TICKET_ID: ${JIRA_TICKET_ID}" message_id=$(curl -X POST -H 'Authorization: Bearer '"${SLACK_BEARER_TOKEN}" \ -H 'Content-type: application/json' \ - --data '{"channel":"'"${SLACK_CHANNEL_ID}"'","text":"The following APIs are scheduled to be sunset in the next month ('"${SLACK_APIX_2_ONCALL_USER}"'). See Jira Ticket: https://jira.mongodb.org/browse/'"${JIRA_TICKET_ID}"'","parse": "full",}' https://slack.com/api/chat.postMessage | jq '.ts') + --data '{"channel":"'"${SLACK_CHANNEL_ID}"'","text":"The following APIs are scheduled to be sunset in the next month ('"${SLACK_APIX_PLATFORM_ONCALL_USER}"'). See Jira Ticket: https://jira.mongodb.org/browse/'"${JIRA_TICKET_ID}"'","parse": "full",}' https://slack.com/api/chat.postMessage | jq '.ts') echo "message_id=${message_id}" sunset-api-version-1week-reminder: @@ -175,7 +175,7 @@ jobs: if: steps.retrieve-sunset-apis.outputs.hash_code_sunset_apis != null env: JIRA_API_TOKEN: ${{ secrets.jira_api_token }} - JIRA_TEAM_ID: ${{ vars.JIRA_TEAM_ID_APIX_1}} + JIRA_TEAM_ID: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM}} JIRA_TICKET_TITLE: "Some APIs are approaching their sunset date in the next week. ID: ${{steps.retrieve-sunset-apis.outputs.hash_code_sunset_apis}}" run: | sunset_apis=$(sed 's/"/\\"/g' sunset_apis.json) @@ -189,11 +189,11 @@ jobs: env: SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }} SLACK_BEARER_TOKEN: ${{ secrets.SLACK_BEARER_TOKEN }} - SLACK_APIX_2_ONCALL_USER: ${{secrets.SLACK_APIX_2_ONCALL_USER}} + SLACK_APIX_PLATFORM_ONCALL_USER: ${{secrets.SLACK_APIX_PLATFORM_ONCALL_USER}} JIRA_TICKET_ID: ${{ steps.create-jira-ticket.outputs.jira-ticket-id }} run: | echo "JIRA_TICKET_ID: ${JIRA_TICKET_ID}" message_id=$(curl -X POST -H 'Authorization: Bearer '"${SLACK_BEARER_TOKEN}" \ -H 'Content-type: application/json' \ - --data '{"channel":"'"${SLACK_CHANNEL_ID}"'","text":"The following APIs are scheduled to be sunset in the next week ('"${SLACK_APIX_2_ONCALL_USER}"'). See Jira Ticket: https://jira.mongodb.org/browse/'"${JIRA_TICKET_ID}"'","parse": "full",}' https://slack.com/api/chat.postMessage | jq '.ts') + --data '{"channel":"'"${SLACK_CHANNEL_ID}"'","text":"The following APIs are scheduled to be sunset in the next week ('"${SLACK_APIX_PLATFORM_ONCALL_USER}"'). See Jira Ticket: https://jira.mongodb.org/browse/'"${JIRA_TICKET_ID}"'","parse": "full",}' https://slack.com/api/chat.postMessage | jq '.ts') echo "message_id=${message_id}" diff --git a/.github/workflows/optional-spec-validations.yml b/.github/workflows/optional-spec-validations.yml index a72963528a..e3a4882451 100644 --- a/.github/workflows/optional-spec-validations.yml +++ b/.github/workflows/optional-spec-validations.yml @@ -59,11 +59,11 @@ jobs: with: env: ${{ inputs.env }} task_name: 'Optional Postman validation' - team_id: ${{ vars.JIRA_TEAM_ID_APIX_1 }} + team_id: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM }} - name: Create Issue - IPA validation Failed if: ${{ failure() && steps.ipa-spectral-validation.outcome == 'failure'}} uses: ./.github/workflows/task-failure-handler.yml with: env: ${{ inputs.env }} task_name: 'Optional IPA validation' - team_id: ${{ vars.JIRA_TEAM_ID_APIX_1 }} + team_id: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM }} diff --git a/.github/workflows/release-IPA-metrics.yml b/.github/workflows/release-IPA-metrics.yml index 15806caf7f..b6a7deb38b 100644 --- a/.github/workflows/release-IPA-metrics.yml +++ b/.github/workflows/release-IPA-metrics.yml @@ -62,6 +62,6 @@ jobs: with: env: 'dev' release_name: "IPA Metrics" - team_id: ${{ vars.JIRA_TEAM_ID_APIX_1 }} + team_id: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM }} secrets: jira_api_token: ${{ secrets.JIRA_API_TOKEN }} diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml index 18377a05ca..80fbe5b2db 100644 --- a/.github/workflows/release-cli.yml +++ b/.github/workflows/release-cli.yml @@ -80,6 +80,6 @@ jobs: with: env: "prod" release_name: "FOASCLI" - team_id: ${{ vars.JIRA_TEAM_ID_APIX_1 }} + team_id: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM }} secrets: jira_api_token: ${{ secrets.JIRA_API_TOKEN }} diff --git a/.github/workflows/release-spec.yml b/.github/workflows/release-spec.yml index b5aec4d920..921131916f 100644 --- a/.github/workflows/release-spec.yml +++ b/.github/workflows/release-spec.yml @@ -253,6 +253,6 @@ jobs: with: env: ${{ inputs.env }} release_name: "OpenAPI Spec" - team_id: ${{ vars.JIRA_TEAM_ID_APIX_1 }} + team_id: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM }} secrets: jira_api_token: ${{ secrets.JIRA_API_TOKEN }}