diff --git a/.github/workflows/pull-request-review.yml b/.github/workflows/pull-request-review.yml new file mode 100644 index 0000000..3382b3a --- /dev/null +++ b/.github/workflows/pull-request-review.yml @@ -0,0 +1,22 @@ +name: Auto update PR based on PR review + +on: + pull_request_review: + types: [submitted] + +concurrency: + group: ${{ github.workflow }} - ${{ github.event.pull_request.head.ref }} + +jobs: + update_pr_job: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + ref: ${{ env.HEAD_BRANCH }} + - name: Code Review Action + uses: codemakerai/codemaker-pull-request-action@v2.0.0 + with: + access-token: ${{ secrets.GITHUB_TOKEN }} + api-key: ${{ secrets.CODEMAKER_API_KEY }} diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..828e098 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 CodeMaker AI Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/NOTICE.txt b/NOTICE.txt new file mode 100644 index 0000000..75bb84d --- /dev/null +++ b/NOTICE.txt @@ -0,0 +1,2 @@ +CodeMaker CLI +Copyright 2023 CodeMaker AI Inc. All Rights Reserved. \ No newline at end of file diff --git a/README.md b/README.md index c0d90fc..69013d7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # codemaker-pull-request-action-example -CodeMaker GitHub Pull Request Action Example + +Example of [codemaker-pull-request-action](https://github.com/codemakerai/codemaker-pull-request-action) + +## Requirements +Grant workflow write access to your repo: Under repo Settings -> Actions -> General -> Workflow permissions, make sure "Read and write permissions" is selected. + +## License + +MIT License \ No newline at end of file