From f468d1a5de4b0091ba2b45a01cdf0ff57923afb6 Mon Sep 17 00:00:00 2001 From: Daniel Park Date: Thu, 13 May 2021 18:34:49 -0700 Subject: [PATCH 01/12] wip: test --- .github/workflows/main.yml | 24 ++++++++++++------------ file.txt | 0 2 files changed, 12 insertions(+), 12 deletions(-) create mode 100644 file.txt diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7855d5e..caa5e54 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,14 +7,15 @@ on: # Triggers the workflow on push or pull request events but only for the main branch push: branches: [ main ] - pull_request: - branches: [ main ] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO: ${{ github.repository }} # This workflow contains a single job called "build" build: # The type of runner that the job will run on @@ -23,14 +24,13 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! - - # Runs a set of commands using the runners shell - - name: Run a multi-line script + - name: "Checkout" + uses: actions/checkout@v2 + with: + persist-credentials: true + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} + + - name: "Create pull request" run: | - echo Add other actions to build, - echo test, and deploy your project. + gh pr create -R "gimli01/fork-foo" -B "main" -H "dblup:main" diff --git a/file.txt b/file.txt new file mode 100644 index 0000000..e69de29 From cc04147a1d3c0920507ba11c3c15ca8849c470f9 Mon Sep 17 00:00:00 2001 From: Daniel Park Date: Thu, 13 May 2021 18:36:02 -0700 Subject: [PATCH 02/12] wip: test --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index caa5e54..bb059bb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,11 +13,11 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPO: ${{ github.repository }} # This workflow contains a single job called "build" - build: + Create pull request from fork: + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + REPO: ${{ github.repository }} # The type of runner that the job will run on runs-on: ubuntu-latest From a87e4a6e74d90b204a6a386d6b270b325b10f972 Mon Sep 17 00:00:00 2001 From: Daniel Park Date: Thu, 13 May 2021 18:37:02 -0700 Subject: [PATCH 03/12] wip: test --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bb059bb..a3e2e4f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,7 +14,7 @@ on: # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: # This workflow contains a single job called "build" - Create pull request from fork: + make-pull-request: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} REPO: ${{ github.repository }} From 37f0e0923184b801262b77658174a40c4da016bd Mon Sep 17 00:00:00 2001 From: Daniel Park Date: Thu, 13 May 2021 18:37:52 -0700 Subject: [PATCH 04/12] wip: test --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a3e2e4f..d0af5eb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,4 +33,4 @@ jobs: - name: "Create pull request" run: | - gh pr create -R "gimli01/fork-foo" -B "main" -H "dblup:main" + gh pr create -R "gimli01/fork-foo" -B "main" -H "dblup:main" --fill From 4d3f02cc6a6cd21b2ec82eb985e3783b81fcdf8e Mon Sep 17 00:00:00 2001 From: Daniel Park Date: Thu, 13 May 2021 18:38:50 -0700 Subject: [PATCH 05/12] wip: test --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d0af5eb..fd0a3e8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,4 +33,4 @@ jobs: - name: "Create pull request" run: | - gh pr create -R "gimli01/fork-foo" -B "main" -H "dblup:main" --fill + gh pr create -R "gimli01/fork-foo" -B "main" -H "dblup:main" --title "test" --body "" From 54ca47211bd217246d32faa205d054048b725564 Mon Sep 17 00:00:00 2001 From: Daniel Park Date: Thu, 13 May 2021 18:39:39 -0700 Subject: [PATCH 06/12] wip: test --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fd0a3e8..607ac6f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,4 +33,4 @@ jobs: - name: "Create pull request" run: | - gh pr create -R "gimli01/fork-foo" -B "main" -H "dblup:main" --title "test" --body "" + gh pr create -R "gimli01/fork-foo" -B "gimli01:main" -H "dblup:main" --title "test" --body "" From 3411ecf36b406066d3c5b6e16b00a33d7f57a721 Mon Sep 17 00:00:00 2001 From: Daniel Park Date: Thu, 13 May 2021 18:39:52 -0700 Subject: [PATCH 07/12] wip: test --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 607ac6f..e3e7f7b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,4 +33,5 @@ jobs: - name: "Create pull request" run: | + gh auth status gh pr create -R "gimli01/fork-foo" -B "gimli01:main" -H "dblup:main" --title "test" --body "" From cb49f57c9cf0c06caf40e85912dfa6d17551074e Mon Sep 17 00:00:00 2001 From: Daniel Park Date: Thu, 13 May 2021 19:28:30 -0700 Subject: [PATCH 08/12] wip: test --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e3e7f7b..8b393df 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ jobs: # This workflow contains a single job called "build" make-pull-request: env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} REPO: ${{ github.repository }} # The type of runner that the job will run on runs-on: ubuntu-latest @@ -29,7 +29,7 @@ jobs: with: persist-credentials: true fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.PAT }} - name: "Create pull request" run: | From 27a64631a155bead40ef8eecc8ec66ff12994140 Mon Sep 17 00:00:00 2001 From: Daniel Park Date: Thu, 13 May 2021 19:30:18 -0700 Subject: [PATCH 09/12] wip: test --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8b393df..7e3b7cc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,4 +34,4 @@ jobs: - name: "Create pull request" run: | gh auth status - gh pr create -R "gimli01/fork-foo" -B "gimli01:main" -H "dblup:main" --title "test" --body "" + gh pr create -R "gimli01/fork-foo" -B "main" -H "dblup:main" --title "test" --body "" From c26d6fa2a25afc16626661c99ce9f40bc9b88dec Mon Sep 17 00:00:00 2001 From: Daniel Park Date: Wed, 19 May 2021 14:30:15 -0700 Subject: [PATCH 10/12] chore: test --- .github/workflows/main.yml | 6 ++++-- temp.txt | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 temp.txt diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7e3b7cc..7cd1389 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,6 +32,8 @@ jobs: token: ${{ secrets.PAT }} - name: "Create pull request" + # run: | + # # gh release view run: | - gh auth status - gh pr create -R "gimli01/fork-foo" -B "main" -H "dblup:main" --title "test" --body "" + release_body=`gh release view -R npm/cli` + gh pr create -R "gimli01/fork-foo" -B "main" -H "dblup:main" --title "test" --body "$release_body" diff --git a/temp.txt b/temp.txt new file mode 100644 index 0000000..eb8d504 --- /dev/null +++ b/temp.txt @@ -0,0 +1 @@ +title: tag: v7.13.0 draft: false prerelease: false author: ruyadorno created: 2021-05-13T19:50:25Z published: 2021-05-13T20:09:34Z url: https://github.com/npm/cli/releases/tag/v7.13.0 -- ## v7.13.0 (2021-05-13) * [`076420c14`](https://github.com/npm/cli/commit/076420c149d097056f687e44e21744b743b86e4e) [#3231](https://github.com/npm/cli/issues/3231) feat(publish): add workspace support ([@wraithgar](https://github.com/wraithgar)) * [`370b36a36`](https://github.com/npm/cli/commit/370b36a36ca226840761e4214cbccaf2a1a90e3c) [#3241](https://github.com/npm/cli/issues/3241) feat(fund): add workspaces support ([@ruyadorno](https://github.com/ruyadorno)) ### DEPENDENCIES * [`0c18e4f77`](https://github.com/npm/cli/commit/0c18e4f774562fa054fedf323bea25805ebf39b3) `@npmcli/arborist@2.5.0` * [`b551c6811`](https://github.com/npm/cli/commit/b551c6811251dbc901f47fea3c137f93e205a9e4) `libnpmfund@1.1.0` From 1c305ebe3e054d745835b9e1d4626df402e62e9c Mon Sep 17 00:00:00 2001 From: Daniel Park Date: Wed, 19 May 2021 14:40:55 -0700 Subject: [PATCH 11/12] chore: test --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7cd1389..d7cdb73 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,5 +35,5 @@ jobs: # run: | # # gh release view run: | - release_body=`gh release view -R npm/cli` + release_body=`gh release view --json body -R npm/cli` gh pr create -R "gimli01/fork-foo" -B "main" -H "dblup:main" --title "test" --body "$release_body" From 095d5afd9fb2f28d73664980098a8d28de76aeaf Mon Sep 17 00:00:00 2001 From: Daniel Park Date: Wed, 19 May 2021 15:07:17 -0700 Subject: [PATCH 12/12] chore: test --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d7cdb73..81d7000 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,5 +35,9 @@ jobs: # run: | # # gh release view run: | - release_body=`gh release view --json body -R npm/cli` - gh pr create -R "gimli01/fork-foo" -B "main" -H "dblup:main" --title "test" --body "$release_body" + npm_version="7.13.0" + branch_name="npm-$npm_version" + git checkout -b "$branch_name" + git push origin "$branch_name" + release_body=`gh release view -R npm/cli` + gh pr create -R "gimli01/fork-foo" -B "main" -H "dblup:$branch_name" --title "test" --body "$release_body"