From f1aa5667e8888427793734aa136009b1eb81d385 Mon Sep 17 00:00:00 2001 From: ErwinsExpertise Date: Thu, 7 Dec 2023 13:13:51 -0500 Subject: [PATCH] first commit --- .github/workflows/generator.yaml | 24 ++++++++++++++++++++++++ .github/workflows/notify-issue.yaml | 18 ++++++++++++++++++ .github/workflows/notify-pr.yaml | 16 ++++++++++++++++ .idea/.gitignore | 8 ++++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ .idea/vultr-ruby.iml | 9 +++++++++ 7 files changed, 89 insertions(+) create mode 100644 .github/workflows/generator.yaml create mode 100644 .github/workflows/notify-issue.yaml create mode 100644 .github/workflows/notify-pr.yaml create mode 100644 .idea/.gitignore create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/vultr-ruby.iml diff --git a/.github/workflows/generator.yaml b/.github/workflows/generator.yaml new file mode 100644 index 0000000..2e84986 --- /dev/null +++ b/.github/workflows/generator.yaml @@ -0,0 +1,24 @@ +name: "Code Generation" + +on: + push: + tags: + - * + +permissions: + contents: write + +jobs: + generation-job: + runs-on: ubuntu-latest + container: + image: openapitools/openapi-generator-cli:latest + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Run code generation + run: (bash /usr/local/bin/docker-entrypoint.sh generate -i blob:https://www.vultr.com/ddc5a3ba-302d-4eec-8908-5a72f58c999b --additional-properties moduleName=VultRuby -g ruby -o ./vendor/vultr_ruby) + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 diff --git a/.github/workflows/notify-issue.yaml b/.github/workflows/notify-issue.yaml new file mode 100644 index 0000000..d87655d --- /dev/null +++ b/.github/workflows/notify-issue.yaml @@ -0,0 +1,18 @@ +name: notify-issue + +on: + issues: + types: [opened] + +jobs: + issue: + runs-on: ubuntu-latest + name: New Issue Notification + steps: + - run: | + echo "{\"text\":\"Vultr-Ruby : New Issue https://github.com/vultr/vultr-ruby/issues/${{ github.event.issue.number }} \"}" > mattermost.json + - uses: mattermost/action-mattermost-notify@master + env: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} + MATTERMOST_USERNAME: ${{ secrets.MATTERMOST_USERNAME}} + MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }} \ No newline at end of file diff --git a/.github/workflows/notify-pr.yaml b/.github/workflows/notify-pr.yaml new file mode 100644 index 0000000..5fb3d94 --- /dev/null +++ b/.github/workflows/notify-pr.yaml @@ -0,0 +1,16 @@ +name: notify-pr + +on: pull_request_target + +jobs: + pr: + runs-on: ubuntu-latest + name: Pull Request Notification + steps: + - run: | + echo "{\"text\":\"Vultr-Ruby : PR https://github.com/vultr/vultr-ruby/pull/${{ github.event.number }} \"}" > mattermost.json + - uses: mattermost/action-mattermost-notify@master + env: + MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} + MATTERMOST_USERNAME: ${{ secrets.MATTERMOST_USERNAME}} + MATTERMOST_ICON: ${{ secrets.MATTERMOST_ICON }} \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..5b99938 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/vultr-ruby.iml b/.idea/vultr-ruby.iml new file mode 100644 index 0000000..5e764c4 --- /dev/null +++ b/.idea/vultr-ruby.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file