From 01e83e6f5db022ca48922e3e5429c813f2de053c Mon Sep 17 00:00:00 2001 From: Nikitha Chettiar Date: Mon, 24 Aug 2020 12:17:43 -0700 Subject: [PATCH 01/13] work after coping workflow in github --- .github/workflows/pr_creation_sample.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_creation_sample.yml b/.github/workflows/pr_creation_sample.yml index f808393..3f1fb79 100644 --- a/.github/workflows/pr_creation_sample.yml +++ b/.github/workflows/pr_creation_sample.yml @@ -1,7 +1,7 @@ name: "auto generate pull request" on: push: - branches: test_auto + branches: test_auto2 jobs: build: From 266f1733acfcc6eef93529b83c9f060cb3ef6408 Mon Sep 17 00:00:00 2001 From: Nikitha Chettiar Date: Mon, 24 Aug 2020 12:25:48 -0700 Subject: [PATCH 02/13] work after coping workflow in github --- .github/workflows/pr_creation_sample.yml | 40 ++++++++++++------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/pr_creation_sample.yml b/.github/workflows/pr_creation_sample.yml index 3f1fb79..44e35aa 100644 --- a/.github/workflows/pr_creation_sample.yml +++ b/.github/workflows/pr_creation_sample.yml @@ -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" - + # 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" From 6c9c76c7dd586518831357ae7fb0862d2ca461e6 Mon Sep 17 00:00:00 2001 From: Nikitha Chettiar Date: Mon, 24 Aug 2020 12:27:23 -0700 Subject: [PATCH 03/13] test branch pr creation --- .github/workflows/pr_creation_sample.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_creation_sample.yml b/.github/workflows/pr_creation_sample.yml index 44e35aa..5b3f0fa 100644 --- a/.github/workflows/pr_creation_sample.yml +++ b/.github/workflows/pr_creation_sample.yml @@ -23,6 +23,6 @@ jobs: MESSAGE_BODY: "Auto generated pr body" LABELS: generated BASE: master - run: | + 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" From 0945fa8cf911faa21b17717016d3c39395574750 Mon Sep 17 00:00:00 2001 From: Nikitha Chettiar Date: Mon, 24 Aug 2020 12:32:29 -0700 Subject: [PATCH 04/13] test lint called after pr --- .github/workflows/lint.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..e4abee0 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,11 @@ +name: "testing linting" +on: + pull_request: + types: [opened,reopened] + +jobs: + build: + runs-on: ubuntu-16.04 + steps: + - name: Test working + run: echo "see" From 9c0e54f0a4e5cc7cbdd6141b5c4df6723d9d719b Mon Sep 17 00:00:00 2001 From: Nikitha Chettiar Date: Mon, 24 Aug 2020 12:34:39 -0700 Subject: [PATCH 05/13] test lint called after pr --- .github/workflows/lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index e4abee0..af7fd1e 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,5 +7,5 @@ jobs: build: runs-on: ubuntu-16.04 steps: - - name: Test working - run: echo "see" + - name: Test liniting + run: echo "hello world lint" From 492f2340727abfb27d88699fb47ea215bf38cbed Mon Sep 17 00:00:00 2001 From: Nikitha Chettiar Date: Mon, 24 Aug 2020 12:36:27 -0700 Subject: [PATCH 06/13] test lint called after yml in master --- typings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings.json b/typings.json index fd2fc66..15d854b 100644 --- a/typings.json +++ b/typings.json @@ -1,7 +1,7 @@ { "dependencies": {}, "devDependencies": {}, - "main" : "microsoft-graph.d.ts", + "main" : "index.d.ts", "name":"microsoft-graph", "version": "0.2.1", "homepage": "https://github.com/microsoftgraph/msgraph-typescript-typings" From bcef5f5e03627e93b8573d661f723d1f9825c0e4 Mon Sep 17 00:00:00 2001 From: Nikitha Chettiar Date: Mon, 24 Aug 2020 12:37:47 -0700 Subject: [PATCH 07/13] test lint called after yml in master --- typings.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/typings.json b/typings.json index 15d854b..fd2fc66 100644 --- a/typings.json +++ b/typings.json @@ -1,7 +1,7 @@ { "dependencies": {}, "devDependencies": {}, - "main" : "index.d.ts", + "main" : "microsoft-graph.d.ts", "name":"microsoft-graph", "version": "0.2.1", "homepage": "https://github.com/microsoftgraph/msgraph-typescript-typings" From 1ad190c6573edd2dc5767c0742cfd47e089cb908 Mon Sep 17 00:00:00 2001 From: Nikitha Chettiar Date: Mon, 24 Aug 2020 14:09:39 -0700 Subject: [PATCH 08/13] add dtslint --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 07027d1..01aed61 100644 --- a/package.json +++ b/package.json @@ -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" From 479fac386e8cb6fe3ff5f4873cf0088aecc4b694 Mon Sep 17 00:00:00 2001 From: Nikitha Chettiar Date: Mon, 24 Aug 2020 14:49:11 -0700 Subject: [PATCH 09/13] Check if build created after yml file --- .azure-pipelines/validate.yml | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 .azure-pipelines/validate.yml diff --git a/.azure-pipelines/validate.yml b/.azure-pipelines/validate.yml deleted file mode 100644 index 1134a3e..0000000 --- a/.azure-pipelines/validate.yml +++ /dev/null @@ -1,21 +0,0 @@ -# Node.js -# Build a general Node.js project with npm. -# Add steps that analyze code, save build artifacts, deploy, and more: -# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript - -pr: -- master - -pool: - vmImage: 'ubuntu-latest' - -steps: -- task: NodeTool@0 - inputs: - versionSpec: '10.x' - displayName: 'Install Node.js' - -- script: | - npm install - npm run dtslint - displayName: 'npm install and build' From 6c2b13599b45c1acd27264064218e2709d331752 Mon Sep 17 00:00:00 2001 From: Nikitha Chettiar Date: Mon, 24 Aug 2020 14:58:20 -0700 Subject: [PATCH 10/13] push --- .github/workflows/pr_creation_sample.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr_creation_sample.yml b/.github/workflows/pr_creation_sample.yml index ad145c8..c5223ad 100644 --- a/.github/workflows/pr_creation_sample.yml +++ b/.github/workflows/pr_creation_sample.yml @@ -1,5 +1,4 @@ name: "auto generate pull request" - on: push: branches: test_auto2 @@ -8,8 +7,8 @@ jobs: build: runs-on: ubuntu-16.04 steps: - - name: Test working - run: echo "see" + - name: Test pipeline + run: echo "works" # This workflow contains a single job called "create-pull-request" create-pull-request: From f6bed9341da6de94dcde74e7e2617f0a5763c977 Mon Sep 17 00:00:00 2001 From: Nikitha Chettiar Date: Mon, 24 Aug 2020 14:59:27 -0700 Subject: [PATCH 11/13] push --- .github/workflows/pr_creation_sample.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_creation_sample.yml b/.github/workflows/pr_creation_sample.yml index c5223ad..88df08c 100644 --- a/.github/workflows/pr_creation_sample.yml +++ b/.github/workflows/pr_creation_sample.yml @@ -7,7 +7,7 @@ jobs: build: runs-on: ubuntu-16.04 steps: - - name: Test pipeline + - name: Test pipeline workflow run: echo "works" # This workflow contains a single job called "create-pull-request" From 336200471198988448f7e667eda889430133a4b6 Mon Sep 17 00:00:00 2001 From: Nikitha Chettiar Date: Mon, 24 Aug 2020 15:04:43 -0700 Subject: [PATCH 12/13] push --- .github/workflows/pr_creation_sample.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_creation_sample.yml b/.github/workflows/pr_creation_sample.yml index 88df08c..fab0b5a 100644 --- a/.github/workflows/pr_creation_sample.yml +++ b/.github/workflows/pr_creation_sample.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-16.04 steps: - name: Test pipeline workflow - run: echo "works" + run: echo "works test" # This workflow contains a single job called "create-pull-request" create-pull-request: From 4b0c1b97df2e7c4eea88597028006a7429eed8de Mon Sep 17 00:00:00 2001 From: Nikitha Chettiar Date: Mon, 24 Aug 2020 15:25:14 -0700 Subject: [PATCH 13/13] add validate yml --- .azure-pipelines/validate.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .azure-pipelines/validate.yml diff --git a/.azure-pipelines/validate.yml b/.azure-pipelines/validate.yml new file mode 100644 index 0000000..9d1ff82 --- /dev/null +++ b/.azure-pipelines/validate.yml @@ -0,0 +1,21 @@ +# Node.js +# Build a general Node.js project with npm. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript + +pr: +- master + +pool: + vmImage: 'ubuntu-latest' + +steps: +- task: NodeTool@0 + inputs: + versionSpec: '10.x' + displayName: 'Install Node.js' + +- script: | + npm install + npm run lint + displayName: 'npm install and build'