diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1062e63f..ed609915 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,4 +1,4 @@ * @kleewho @crimsonred @raipubnub -.travis/* @parfeon @kleewho @crimsonred @raipubnub -README.md @techwritermat +.github/* @parfeon @kleewho @crimsonred @raipubnub +README.md @techwritermat @kazydek diff --git a/.github/workflows/commands-handler.yml b/.github/workflows/commands-handler.yml new file mode 100644 index 00000000..d7401e17 --- /dev/null +++ b/.github/workflows/commands-handler.yml @@ -0,0 +1,26 @@ +name: Commands processor + +on: + issue_comment: + types: [created] + +jobs: + process: + name: Process command + if: ${{ github.event.issue.pull_request && endsWith(github.repository, '-private') != true && startsWith(github.event.comment.body, '@client-engineering-bot ') }} + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Checkout release actions + uses: actions/checkout@v2 + with: + repository: pubnub/client-engineering-deployment-tools + ref: v1 + token: ${{ secrets.GH_TOKEN }} + path: .github/.release/actions + - name: Process changelog entries + uses: ./.github/.release/actions/actions/commands + with: + token: ${{ secrets.GH_TOKEN }} + listener: client-engineering-bot diff --git a/.github/workflows/release/versions.json b/.github/workflows/release/versions.json new file mode 100644 index 00000000..f593b300 --- /dev/null +++ b/.github/workflows/release/versions.json @@ -0,0 +1,9 @@ +{ + ".pubnub.yml": [ + { "pattern": "^version: (.+)$", "cleared": false }, + { "pattern": "\/releases\/tag\/(v?(\\d+\\.?){2,}([a-zA-Z-]+(\\.?\\d+)?)?)", "cleared": false } + ], + "pubnub.go": [ + { "pattern": "Version = \"(.*)\"", "cleared": true } + ] +} diff --git a/.gitignore b/.gitignore index 6b9ec3b3..2268b7a1 100644 --- a/.gitignore +++ b/.gitignore @@ -27,3 +27,7 @@ coverage.txt *.out vendor/golang.org/ + +# GitHub Actions # +################## +.github/.release