Skip to content
2 changes: 1 addition & 1 deletion .azure-pipelines/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ steps:

- script: |
npm install
npm run dtslint
npm run lint
displayName: 'npm install and build'
50 changes: 25 additions & 25 deletions .github/workflows/pr_creation_sample.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
name: "auto generate pull request"
on:
push:
branches: test_auto2
on:
push:
branches: test_auto2

jobs:
build:
runs-on: ubuntu-16.04
steps:
- name: Test working
run: echo "see"
build:
runs-on: ubuntu-16.04
steps:
- name: Test pipeline workflow
run: echo "works test"

# This workflow contains a single job called "create-pull-request"
create-pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create PR using the GitHub REST API via hub
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE_TITLE: Auto generated pr title
MESSAGE_BODY: "Auto generated pr body"
LABELS: generated
BASE: master
run: |
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
bin/hub pull-request -b "$BASE" -h "$GITHUB_REF" -m "$MESSAGE_TITLE" -m "$MESSAGE_BODY" -l "$LABELS"
create-pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create PR using the GitHub REST API via hub
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE_TITLE: Auto generated pr title
MESSAGE_BODY: "Auto generated pr body"
LABELS: generated
BASE: master
run: |
curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1
bin/hub pull-request -b "$BASE" -h "$GITHUB_REF" -m "$MESSAGE_TITLE" -m "$MESSAGE_BODY" -l "$LABELS"
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"license": "MIT",
"types": "microsoft-graph.d.ts",
"scripts": {
"test": "tsc && mocha spec/**.ts"
"test": "tsc && mocha spec/**.ts",
"dtslint":"tsc"
},
"typescript": {
"definition": "microsoft-graph.d.ts"
Expand Down