mindaro/actions/add-review-url
dependabot[bot] 60e739acdd
Bump ajv from 6.10.2 to 6.12.6 in /actions/add-review-url
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.10.2 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.10.2...v6.12.6)

---
updated-dependencies:
- dependency-name: ajv
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-18 21:53:18 +00:00
..
__tests__ Porting over the original GithubAction to the new Microsoft/Mindaro repository from azure/dev-spaces. Also, adding the RoutingManager.yaml. 2020-08-28 12:57:48 -07:00
lib Porting over the original GithubAction to the new Microsoft/Mindaro repository from azure/dev-spaces. Also, adding the RoutingManager.yaml. 2020-08-28 12:57:48 -07:00
src Porting over the original GithubAction to the new Microsoft/Mindaro repository from azure/dev-spaces. Also, adding the RoutingManager.yaml. 2020-08-28 12:57:48 -07:00
README.md Update LPK references to Bridge 2020-09-15 19:16:58 -07:00
action.yml Update LPK references to Bridge 2020-09-15 19:16:58 -07:00
jest.config.js Porting over the original GithubAction to the new Microsoft/Mindaro repository from azure/dev-spaces. Also, adding the RoutingManager.yaml. 2020-08-28 12:57:48 -07:00
package-lock.json Bump ajv from 6.10.2 to 6.12.6 in /actions/add-review-url 2022-02-18 21:53:18 +00:00
package.json Update LPK references to Bridge 2020-09-15 19:16:58 -07:00
tsconfig.json Porting over the original GithubAction to the new Microsoft/Mindaro repository from azure/dev-spaces. Also, adding the RoutingManager.yaml. 2020-08-28 12:57:48 -07:00

README.md

Bridge to Kubernetes GitHub Action for adding the review url on pull request

Bridge to Kubernetes can provide reviewers a live, sandboxed preview of the pull request's changes before code is merged into the main branch. The add-review-url GitHub Action writes the URL of the preview app as a comment on the pull request.

How to include this action in our pull request workflow

Refer to the documentation for Bridge to Kubernetes sample app - Pull Request Flow Documentation for Bridge to Kubernetes

Example workflow syntax

The following Action snippet is used in the Bikesharing sample PR workflow , which also demonstrates how to use this action with Kubernetes Bake.

    - uses: microsoft/mindaro/actions/add-review-url@Releases/v2              
        with:
            repo-token: ${{ secrets.GITHUB_TOKEN }}  
            branch-name: ${{steps.generate-valid-branch-name.outputs.result}}
            host: "${{ secrets.HOST }}"
            protocol: "http"

where secrets.HOST is the host URL for the app deployed in AKS. See Pull Request Flow Documentation for Bridge to Kubernetes

How to build this GitHub Action for development

Navigate to the directory: .\actions\add-review-url\src and run

    npm install
    npm run build

How to build and test the unit tests for this GitHub Action

Using Jest Test Framework. Refer to tests in \actions\add-review-url_test_

        npm install
        npm run build
        npm run test