-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat #231 - Code component (#263) * chore #264 - Codegen setup (#265) * enhancement #269 - Updates for alert manager risk rules (#270) * feat #266 - Banner Component (#267)
- Loading branch information
1 parent
f521ff5
commit a2a23b5
Showing
26 changed files
with
5,528 additions
and
694 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Pull Request on Branch Push | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'swaggerhub*' | ||
|
||
jobs: | ||
auto-pull-request: | ||
name: PullRequestAction | ||
if: "contains(github.event.head_commit.message, 'SwaggerHub')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v1 | ||
- name: Use Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
always-auth: true | ||
node-version: '12.x' | ||
registry-url: https://npm.pkg.github.com/ | ||
scope: '@dassana-io' | ||
- name: Run install and codegen.js | ||
run: | | ||
npm install | ||
npm run codegen | ||
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" | ||
git checkout --track $(git branch -r --sort=-committerdate | grep '\bswaggerhub\b' | head -n 1) | ||
git config --global user.name "github-actions" | ||
git config --global user.email "[email protected]" | ||
git add . | ||
git commit -m 'Automated swagger codegen' | ||
git push | ||
env: | ||
CI: true | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} | ||
- name: Open Pull Request | ||
uses: vsoch/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | ||
BRANCH_PREFIX: 'swaggerhub' | ||
PULL_REQUEST_BRANCH: 'dev' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* eslint-disable */ | ||
const fs = require('fs') | ||
const npm = require('npm') | ||
|
||
if (fs.existsSync('globalApi')) { | ||
npm.load(() => { | ||
npm.run('api-models:global') | ||
}) | ||
} |
Oops, something went wrong.