diff --git a/.github/stale.yml b/.github/stale.yml new file mode 100644 index 00000000..e33e9247 --- /dev/null +++ b/.github/stale.yml @@ -0,0 +1,46 @@ +# Configuration for probot-stale - https://github.com/probot/stale + +# General configuration +# Label to use when marking as stale +staleLabel: stale + +# Pull request specific configuration +pulls: + # Number of days of inactivity before an Issue or Pull Request becomes stale + daysUntilStale: 7 + # Number of days of inactivity before a stale Issue or Pull Request is closed. + # Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. + daysUntilClose: 7 + # Comment to post when marking as stale. Set to `false` to disable + markComment: > + This pull request has been automatically marked as stale because it has not had + activity in the last 7 days. It will be closed in 7 days if no further activity occurs. Please + feel free to give a status update now, ping for review, or re-open when it's ready. + Thank you for your contributions! + # Comment to post when closing a stale Issue or Pull Request. + closeComment: > + This pull request has been automatically closed because it has not had + activity in the last 14 days. Please feel free to give a status update now, ping for review, or re-open when it's ready. + Thank you for your contributions! + # Limit the number of actions per hour, from 1-30. Default is 30 + limitPerRun: 1 + exemptLabels: + - no stalebot + +# Issue specific configuration +issues: + # TODO: Consider increasing the limitPerRun once we are satisfied with the bot's performance + limitPerRun: 1 + daysUntilStale: 30 + daysUntilClose: 7 + markComment: > + This issue has been automatically marked as stale because it has not had activity in the + last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity + occurs. Thank you for your contributions. + closeComment: > + This issue has been automatically closed because it has not had activity in the + last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". + Thank you for your contributions. + exemptLabels: + - help wanted + - no stalebot diff --git a/.github/workflows/master.yaml b/.github/workflows/master.yaml new file mode 100644 index 00000000..c05970a6 --- /dev/null +++ b/.github/workflows/master.yaml @@ -0,0 +1,27 @@ +name: Build and push :master image + +on: + push: + branches: + - master + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: check format + run: make check_format + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: build and push docker image + run: | + echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin + VERSION=master make docker_push # Push image tagged with "master" + make docker_push # Push image tagged with git sha + env: + DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} \ No newline at end of file diff --git a/src/server/server.go b/src/server/server.go index 7f2b1b05..f35e82e6 100644 --- a/src/server/server.go +++ b/src/server/server.go @@ -1,6 +1,7 @@ package server import ( + pb "github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v3" "net/http" pb "github.com/envoyproxy/go-control-plane/envoy/service/ratelimit/v3"