Azure / Azure/static-web-apps

Use GitHub Deployments API instead of posting to the discussion of a PR

Open
#972 0 comments 1 reaction 0 assignees View on GitHub
enhancement triaged
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

**Is your feature request related to a problem? Please describe.**
Would prefer that the GitHub Action use the [GitHub Deployments API](https://docs.github.com/en/rest/deployments/deployments) instead of just posting the preview environment URL to the discussion of a PR.

![image](https://user-images.githubusercontent.com/266258/199292770-9c4c9dcf-9444-4f69-a276-4d6c57a363c4.png)

This prevents us from using the branch controls around deployments
![image](https://user-images.githubusercontent.com/266258/199292948-7e383510-4221-46d5-bd56-42e4ca8c4a19.png)

**Describe the solution you'd like**
- [ ] The preview environment shows up as a deployment environment
- [ ] Branch controls can ensure a preview environment has been deployed successfully before merging

**Describe alternatives you've considered**
- Calling deployment API from extra steps in the action

**Additional context**
Add any other context or screenshots about the feature request here.

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.