Azure / Azure/webapps-deploy

Allow an override of the Deployment History's fields

Open
#442 3 comments 0 reactions 0 assignees View on GitHub
need-to-triage
Dominant language
TypeScript
Stars
338
Forks
234
Avg merge
53m
Merged PRs (30d)
3

Description

Allow the following fields on the `https://.scm.azurewebsites.net/api/deployments` POST request made by this action to be overridden.

- author
- deployer
- message
- details
- log_url #441

Right now the `message` to `OneDeploy`. Which is not that helpful.

```
POST https://.scm.azurewebsites.net/api/deployments
{
"id": "deployment-id",
"status": 0, // Numeric status (e.g., 0 = pending, 3 = success, 4 = failed)
"message": "Deployment initiated", // A message describing the deployment
"author": "AuthorName", // Name of the person who initiated the deployment
"deployer": "DeployerName", // Optional, who performed the deployment (could be the same as the author)
"details": "Custom deployment details", // Optional, additional details for tracking
"active": false, // Whether this deployment should be set as active immediately
"log_url": "http://yourlog.com", // Optional, URL to deployment logs
"received_time": "2023-09-21T14:32:00Z", // Optional, time the deployment was received
"start_time": "2023-09-21T14:35:00Z", // Optional, when the deployment started
"end_time": "2023-09-21T14:45:00Z" // Optional, when the deployment completed
}
```

![image](https://github.com/user-attachments/assets/51e8d143-51fc-4541-9f29-1b59d376c90e)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.