diff --git a/.github/workflows/ci_code.yml b/.github/workflows/ci_code.yml index 0ede9730..4735fef0 100644 --- a/.github/workflows/ci_code.yml +++ b/.github/workflows/ci_code.yml @@ -56,4 +56,5 @@ jobs: NOTIFY_SRE_USER_NAME: ${{ secrets.NOTIFY_SRE_USER_NAME }} NOTIFY_SRE_CLIENT_SECRET: ${{ secrets.NOTIFY_SRE_CLIENT_SECRET }} NOTIFY_OPS_CHANNEL_ID: ${{ secrets.NOTIFY_OPS_CHANNEL_ID }} - SRE_BOT_EMAIL: ${{ secrets.SRE_BOT_EMAIL }} \ No newline at end of file + SRE_BOT_EMAIL: ${{ secrets.SRE_BOT_EMAIL }} + AWS_SSO_ROLE_ARN: ${{ secrets.AWS_SSO_ROLE_ARN }} \ No newline at end of file diff --git a/app/modules/incident/incident.py b/app/modules/incident/incident.py index eb106275..c691c4cf 100644 --- a/app/modules/incident/incident.py +++ b/app/modules/incident/incident.py @@ -286,7 +286,7 @@ def submit(ack, view, say, body, client, logger): ) # Set the description - client.conversations_setDescription(channel=channel_id, description=f"{name}") + client.conversations_setPurpose(channel=channel_id, purpose=f"{name}") # Announce incident user_id = body["user"]["id"] diff --git a/app/tests/modules/incident/test_incident.py b/app/tests/modules/incident/test_incident.py index 3b672b7b..6c94303d 100644 --- a/app/tests/modules/incident/test_incident.py +++ b/app/tests/modules/incident/test_incident.py @@ -580,8 +580,8 @@ def test_incident_submit_creates_channel_sets_description( } incident.submit(ack, view, say, body, client, logger) client.conversations_create.assert_called_once_with(name=f"incident-{DATE}-name") - client.conversations_setDescription.assert_called_once_with( - channel="channel_id", description="name" + client.conversations_setPurpose.assert_called_once_with( + channel="channel_id", purpose="name" )