Skip to content

Commit

Permalink
v0.10.3 -> v0.10.7 (#271)
Browse files Browse the repository at this point in the history
* 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
nancy-dassana authored Mar 29, 2021
1 parent f521ff5 commit a2a23b5
Show file tree
Hide file tree
Showing 26 changed files with 5,528 additions and 694 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/codegen.yml
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'
1 change: 1 addition & 0 deletions .storybook/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

@import '~normalize.css';
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300&display=swap');

html,
body,
Expand Down
9 changes: 9 additions & 0 deletions codegen.js
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')
})
}
Loading

0 comments on commit a2a23b5

Please sign in to comment.