Skip to content

Commit 000a581

Browse files
Merge pull request #275622 from craigshoemaker/swa/issue/308/second-action
[Static Web Apps] Update: Build configuration - add detail about the Close Pull Request action
2 parents e9746d0 + c87c6fe commit 000a581

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

articles/static-web-apps/build-configuration.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,14 @@ In this configuration:
105105

106106
Don't change the values for `repo_token`, `action`, and `azure_static_web_apps_api_token` as they're set for you by Azure Static Web Apps.
107107

108+
The *Close Pull Request* job automatically closes the pull request that triggered the build and deployment. This optional job isn't required for the process to work.
109+
110+
When a pull request is opened, the Azure Static Web Apps GitHub Action builds and deploys the app to a staging environment. Afterward, the *Close Pull Request* job checks if the pull request is still open and closes it with a completion message.
111+
112+
This job helps keep your pull request workflow organized and prevents stale pull requests. By the runtime automatically closing the pull request, your repository stays up-to-date and your team is notified of the status.
113+
114+
The *Close Pull Request* job is part of the Azure Static Web Apps GitHub Actions workflow, closing the pull request after it is merged. The `Azure/static-web-apps-deploy` action deploys the app to Azure Static Web Apps, requiring the `azure_static_web_apps_api_token` for authentication.
115+
108116
# [Azure Pipelines](#tab/azure-devops)
109117

110118
```yaml

0 commit comments

Comments
 (0)