Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: Feature/gh release to notion and slack #79

Merged
merged 2 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions config/apps.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
"Imagify App": "wpm-imagify-app",
"SaaS RUCSS": "wpm-rucss",
"Monies": "wpm-monies",
"RocketCDN App": "wpm-rocketcdn-app"
"RocketCDN App": "wpm-rocketcdn-app",
"wp-rocket.me": "wpm-wprocket",
"Imagify Website": "wpm-imagify-website",
"RocketCDN Website": "wpm-rocketcdn-website"
},
"envList": {
"staging": "staging",
"next": "next",
"test": "test",
"mirror": "mirror"
"mirror": "mirror",
"sandbox 1": "sandbox1",
"sandbox 2": "sandbox2"
}
}
2 changes: 1 addition & 1 deletion sources/factories/SlackMessageFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def get_release_note_review_blocks(self, text):
{
"type": "section",
"text": {
"type": "plain_text",
"type": "mrkdwn",
"text": text,
"emoji": True
}
Expand Down
3 changes: 0 additions & 3 deletions sources/handlers/DeployHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ def deploy_commit(self, app_context, task_params: DeployHandlerParam):
request_payload['environment'] = task_params.env
request_payload['ref'] = task_params.commit

current_app.logger.info("deploy_commit: Requesting a deployment:\n" +
json.dumps(request_payload) + "\n" +
json.dumps(request_header))
result = requests.post(url=self.godp_deploy_url,
headers=request_header,
json=request_payload, timeout=3000)
Expand Down
1 change: 0 additions & 1 deletion sources/listeners/SlackInteractionListener.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ def __call__(self):

# Retrieve the payload of the POST request
payload_json = json.loads(request.form.get('payload'))
current_app.logger.info("SlackInteractionListener Payload: " + json.dumps(payload_json))

# Route the request to the correct handler
payload_type = payload_json['type']
Expand Down