Skip to content

Commit ed4b9cf

Browse files
ci: Update team and on-call person for Git workflows (#911)
1 parent 991826a commit ed4b9cf

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.github/workflows/api-versions-reminder.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
if: steps.retrieve-sunset-apis.outputs.hash_code_sunset_apis != null
4848
env:
4949
JIRA_API_TOKEN: ${{ secrets.jira_api_token }}
50-
JIRA_TEAM_ID: ${{ vars.JIRA_TEAM_ID_APIX_1}}
50+
JIRA_TEAM_ID: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM}}
5151
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}}"
5252
run: |
5353
sunset_apis=$(sed 's/"/\\"/g' sunset_apis.json)
@@ -61,13 +61,13 @@ jobs:
6161
env:
6262
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
6363
SLACK_BEARER_TOKEN: ${{ secrets.SLACK_BEARER_TOKEN }}
64-
SLACK_APIX_2_ONCALL_USER: ${{secrets.SLACK_APIX_2_ONCALL_USER}}
64+
SLACK_APIX_PLATFORM_ONCALL_USER: ${{secrets.SLACK_APIX_PLATFORM_ONCALL_USER}}
6565
JIRA_TICKET_ID: ${{ steps.create-jira-ticket.outputs.jira-ticket-id }}
6666
run: |
6767
echo "JIRA_TICKET_ID: ${JIRA_TICKET_ID}"
6868
message_id=$(curl -X POST -H 'Authorization: Bearer '"${SLACK_BEARER_TOKEN}" \
6969
-H 'Content-type: application/json' \
70-
--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')
70+
--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')
7171
echo "message_id=${message_id}"
7272
7373
sunset-api-version-1month-reminder:
@@ -111,7 +111,7 @@ jobs:
111111
if: steps.retrieve-sunset-apis.outputs.hash_code_sunset_apis != null
112112
env:
113113
JIRA_API_TOKEN: ${{ secrets.jira_api_token }}
114-
JIRA_TEAM_ID: ${{ vars.JIRA_TEAM_ID_APIX_1}}
114+
JIRA_TEAM_ID: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM}}
115115
JIRA_TICKET_TITLE: "Some APIs are approaching their sunset date in the next month. ID: ${{steps.retrieve-sunset-apis.outputs.hash_code_sunset_apis}}"
116116
run: |
117117
sunset_apis=$(sed 's/"/\\"/g' sunset_apis.json)
@@ -125,13 +125,13 @@ jobs:
125125
env:
126126
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
127127
SLACK_BEARER_TOKEN: ${{ secrets.SLACK_BEARER_TOKEN }}
128-
SLACK_APIX_2_ONCALL_USER: ${{secrets.SLACK_APIX_2_ONCALL_USER}}
128+
SLACK_APIX_PLATFORM_ONCALL_USER: ${{secrets.SLACK_APIX_PLATFORM_ONCALL_USER}}
129129
JIRA_TICKET_ID: ${{ steps.create-jira-ticket.outputs.jira-ticket-id }}
130130
run: |
131131
echo "JIRA_TICKET_ID: ${JIRA_TICKET_ID}"
132132
message_id=$(curl -X POST -H 'Authorization: Bearer '"${SLACK_BEARER_TOKEN}" \
133133
-H 'Content-type: application/json' \
134-
--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')
134+
--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')
135135
echo "message_id=${message_id}"
136136
137137
sunset-api-version-1week-reminder:
@@ -175,7 +175,7 @@ jobs:
175175
if: steps.retrieve-sunset-apis.outputs.hash_code_sunset_apis != null
176176
env:
177177
JIRA_API_TOKEN: ${{ secrets.jira_api_token }}
178-
JIRA_TEAM_ID: ${{ vars.JIRA_TEAM_ID_APIX_1}}
178+
JIRA_TEAM_ID: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM}}
179179
JIRA_TICKET_TITLE: "Some APIs are approaching their sunset date in the next week. ID: ${{steps.retrieve-sunset-apis.outputs.hash_code_sunset_apis}}"
180180
run: |
181181
sunset_apis=$(sed 's/"/\\"/g' sunset_apis.json)
@@ -189,11 +189,11 @@ jobs:
189189
env:
190190
SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
191191
SLACK_BEARER_TOKEN: ${{ secrets.SLACK_BEARER_TOKEN }}
192-
SLACK_APIX_2_ONCALL_USER: ${{secrets.SLACK_APIX_2_ONCALL_USER}}
192+
SLACK_APIX_PLATFORM_ONCALL_USER: ${{secrets.SLACK_APIX_PLATFORM_ONCALL_USER}}
193193
JIRA_TICKET_ID: ${{ steps.create-jira-ticket.outputs.jira-ticket-id }}
194194
run: |
195195
echo "JIRA_TICKET_ID: ${JIRA_TICKET_ID}"
196196
message_id=$(curl -X POST -H 'Authorization: Bearer '"${SLACK_BEARER_TOKEN}" \
197197
-H 'Content-type: application/json' \
198-
--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')
198+
--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')
199199
echo "message_id=${message_id}"

.github/workflows/optional-spec-validations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ jobs:
5959
with:
6060
env: ${{ inputs.env }}
6161
task_name: 'Optional Postman validation'
62-
team_id: ${{ vars.JIRA_TEAM_ID_APIX_1 }}
62+
team_id: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM }}
6363
- name: Create Issue - IPA validation Failed
6464
if: ${{ failure() && steps.ipa-spectral-validation.outcome == 'failure'}}
6565
uses: ./.github/workflows/task-failure-handler.yml
6666
with:
6767
env: ${{ inputs.env }}
6868
task_name: 'Optional IPA validation'
69-
team_id: ${{ vars.JIRA_TEAM_ID_APIX_1 }}
69+
team_id: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM }}

.github/workflows/release-IPA-metrics.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ jobs:
6262
with:
6363
env: 'dev'
6464
release_name: "IPA Metrics"
65-
team_id: ${{ vars.JIRA_TEAM_ID_APIX_1 }}
65+
team_id: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM }}
6666
secrets:
6767
jira_api_token: ${{ secrets.JIRA_API_TOKEN }}

.github/workflows/release-cli.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ jobs:
8080
with:
8181
env: "prod"
8282
release_name: "FOASCLI"
83-
team_id: ${{ vars.JIRA_TEAM_ID_APIX_1 }}
83+
team_id: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM }}
8484
secrets:
8585
jira_api_token: ${{ secrets.JIRA_API_TOKEN }}

.github/workflows/release-spec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,6 @@ jobs:
253253
with:
254254
env: ${{ inputs.env }}
255255
release_name: "OpenAPI Spec"
256-
team_id: ${{ vars.JIRA_TEAM_ID_APIX_1 }}
256+
team_id: ${{ vars.JIRA_TEAM_ID_APIX_PLATFORM }}
257257
secrets:
258258
jira_api_token: ${{ secrets.JIRA_API_TOKEN }}

0 commit comments

Comments
 (0)