From e8f37035cf08fac6ddfb4d0a09332c944f6844e4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 12 Feb 2022 01:26:15 +0000 Subject: [PATCH 01/15] =?UTF-8?q?Bump=20version:=200.0.9=20=E2=86=92=201.0?= =?UTF-8?q?.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bumpversion.cfg | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 5d6fc08..860be11 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.0.9 +current_version = 1.0.0 commit = True tag = False diff --git a/setup.py b/setup.py index 2c7d1f9..d5a2463 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ setup( name="github-deploy", - version="0.0.9", + version="1.0.0", description="Deploy yaml files to a large number of repositories in seconds.", long_description=LONG_DESCRIPTION, long_description_content_type=LONG_DESCRIPTION_TYPE, From 1d583e168ad9f9ac3d700c2534e2e8e507f45d47 Mon Sep 17 00:00:00 2001 From: jackton1 Date: Sat, 12 Feb 2022 01:26:26 +0000 Subject: [PATCH 02/15] =?UTF-8?q?Upgraded=20from=200.0.9=20=E2=86=92=20v1.?= =?UTF-8?q?0.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a1afd81..4b51c49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [v1.0.0](https://github.com/tj-python/github-deploy/tree/v1.0.0) (2022-02-12) + +[Full Changelog](https://github.com/tj-python/github-deploy/compare/0.0.9...v1.0.0) + +**Merged pull requests:** + +- Upgraded 0.0.8 → 0.0.9 [\#7](https://github.com/tj-python/github-deploy/pull/7) ([jackton1](https://github.com/jackton1)) + ## [0.0.9](https://github.com/tj-python/github-deploy/tree/0.0.9) (2022-02-11) [Full Changelog](https://github.com/tj-python/github-deploy/compare/0.0.8...0.0.9) From df5fbfa0a9ad1a6c0a0c1ceccde5288c53fbe940 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Fri, 11 Feb 2022 20:33:36 -0500 Subject: [PATCH 03/15] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index d36c7f4..b2c5024 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ [![PyPI version](https://badge.fury.io/py/github-deploy.svg)](https://badge.fury.io/py/github-deploy) [![Upload Python Package](https://github.com/tj-python/github-deploy/actions/workflows/deploy.yml/badge.svg)](https://github.com/tj-python/github-deploy/actions/workflows/deploy.yml) [![Downloads](https://pepy.tech/badge/github-deploy)](https://pepy.tech/project/github-deploy) +[![Total alerts](https://img.shields.io/lgtm/alerts/g/tj-python/github-deploy.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/tj-python/github-deploy/alerts/) +[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/tj-python/github-deploy.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/tj-python/github-deploy/context:python) # github-deploy From e8564569353448127d599f76e7c057a1b5d76b96 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 11 Jun 2022 08:03:39 -0400 Subject: [PATCH 04/15] feat: Improve error handling --- github_deploy/main.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/github_deploy/main.py b/github_deploy/main.py index bec9463..4c5ddca 100644 --- a/github_deploy/main.py +++ b/github_deploy/main.py @@ -17,10 +17,14 @@ def list_commands(self, ctx): def get_command(self, ctx, name): ns = {} fn = os.path.join(plugin_folder, name + '.py') - with open(fn) as f: - code = compile(f.read(), fn, 'exec') - eval(code, ns, ns) - return ns['main'] + + if os.path.exists(fn): + with open(fn) as f: + code = compile(f.read(), fn, 'exec') + eval(code, ns, ns) + return ns['main'] + + ctx.fail("Invalid Command: {name}".format(name=name)) main = GithubDeploy( From b28bbc451ca8530e1329fa1a6821dbb1530f26b0 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 11 Jun 2022 08:06:02 -0400 Subject: [PATCH 05/15] Update main.py --- github_deploy/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github_deploy/main.py b/github_deploy/main.py index 4c5ddca..2acef84 100644 --- a/github_deploy/main.py +++ b/github_deploy/main.py @@ -17,13 +17,13 @@ def list_commands(self, ctx): def get_command(self, ctx, name): ns = {} fn = os.path.join(plugin_folder, name + '.py') - + if os.path.exists(fn): with open(fn) as f: code = compile(f.read(), fn, 'exec') eval(code, ns, ns) return ns['main'] - + ctx.fail("Invalid Command: {name}".format(name=name)) From 42b6300c8c03337a676ee58ce254ed9baa8f6038 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 11 Jun 2022 08:18:35 -0400 Subject: [PATCH 06/15] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index b2c5024..2e7f640 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,14 @@ This can introduce a number challenges one of which is maintaining consistency a pip install github-deploy ``` +## Setup +A Personal Access Token which can be created using this [guide](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) + +### Required Scopes +The required scopes are `repo` and `workflow` +Screen Shot 2022-06-11 at 8 16 01 AM + + ## Usage ### Creating or Updating files on github From a2e690a55a7827e115c147fbc91767462f74ba91 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 11 Jun 2022 23:01:37 -0400 Subject: [PATCH 07/15] Create dependabot.yml --- .github/dependabot.yml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..afb98ae --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: +- package-ecosystem: github-actions + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 From 9d4a30db72f78e3a230da567e91db05725793c7a Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 11 Jun 2022 23:03:22 -0400 Subject: [PATCH 08/15] Create auto-approve.yml --- .github/workflows/auto-approve.yml | 32 ++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/auto-approve.yml diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml new file mode 100644 index 0000000..d537315 --- /dev/null +++ b/.github/workflows/auto-approve.yml @@ -0,0 +1,32 @@ +name: Auto approve + +on: + pull_request_target + +jobs: + auto-approve: + runs-on: ubuntu-latest + steps: + - uses: hmarr/auto-approve-action@v2 + if: | + ( + github.event.pull_request.user.login == 'dependabot[bot]' || + github.event.pull_request.user.login == 'dependabot' || + github.event.pull_request.user.login == 'dependabot-preview[bot]' || + github.event.pull_request.user.login == 'dependabot-preview' || + github.event.pull_request.user.login == 'renovate[bot]' || + github.event.pull_request.user.login == 'renovate' || + github.event.pull_request.user.login == 'github-actions[bot]' + ) + && + ( + github.actor == 'dependabot[bot]' || + github.actor == 'dependabot' || + github.actor == 'dependabot-preview[bot]' || + github.actor == 'dependabot-preview' || + github.actor == 'renovate[bot]' || + github.actor == 'renovate' || + github.actor == 'github-actions[bot]' + ) + with: + github-token: ${{ secrets.PAT_TOKEN }} From 16d5d5b31b23c38f31b1657d8d22e4e669f0445d Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 11 Jun 2022 23:05:14 -0400 Subject: [PATCH 09/15] Create auto-merge.yml --- .github/workflows/auto-merge.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/auto-merge.yml diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml new file mode 100644 index 0000000..59f687f --- /dev/null +++ b/.github/workflows/auto-merge.yml @@ -0,0 +1,26 @@ +name: automerge +on: + check_suite: + types: + - completed + +jobs: + automerge: + runs-on: ubuntu-latest + if: | + github.actor == 'dependabot[bot]' || + github.actor == 'dependabot' || + github.actor == 'dependabot-preview[bot]' || + github.actor == 'dependabot-preview' || + github.actor == 'renovate[bot]' || + github.actor == 'renovate' + steps: + - name: automerge + uses: pascalgn/automerge-action@v0.15.3 + env: + GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} + MERGE_METHOD: "rebase" + UPDATE_METHOD: "rebase" + MERGE_RETRIES: "6" + MERGE_RETRY_SLEEP: "100000" + MERGE_LABELS: "" From a4c88b99b39f83a6545b87d661505dfda31c0bfa Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Sat, 11 Jun 2022 23:09:20 -0400 Subject: [PATCH 10/15] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2e7f640..b099986 100644 --- a/README.md +++ b/README.md @@ -36,17 +36,17 @@ The required scopes are `repo` and `workflow` ## Usage -### Creating or Updating files on github +### Upload files to github ```shell script -gh-deploy update --org [org] --token [PAT_TOKEN] --dest [LOCATION TO UPLOAD FILE] --source [SOURCE FILE LOCATION] +gh-deploy upload --org [org] --token [PAT_TOKEN] --dest [LOCATION TO UPLOAD FILE] --source [SOURCE FILE LOCATION] ``` Example: ```shell script -gh-deploy update --org tj-actions --token [PAT_TOKEN] --dest '.github/workflows/auto-approve.yml' --source auto-approve.yml +gh-deploy upload --org tj-actions --token [PAT_TOKEN] --dest '.github/workflows/auto-approve.yml' --source auto-approve.yml ``` > NOTE: `auto-approve.yml` is located on your local system. From 7074af21180abb394e34d6a3bdd23842d3e31859 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 12 Jun 2022 03:11:00 +0000 Subject: [PATCH 11/15] Bump peter-evans/create-pull-request from 3 to 4 Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3 to 4. - [Release notes](https://github.com/peter-evans/create-pull-request/releases) - [Commits](https://github.com/peter-evans/create-pull-request/compare/v3...v4) --- updated-dependencies: - dependency-name: peter-evans/create-pull-request dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d2d45d1..ba51948 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -46,7 +46,7 @@ jobs: uses: tj-actions/github-changelog-generator@v1.8 - name: Create Pull Request - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@v4 with: base: "main" title: "Upgraded ${{ steps.semver-diff.outputs.old_version }} → ${{ steps.semver-diff.outputs.new_version }}" From aaf5d1f635cdb66821736b8679229baff2943ec4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 12 Jun 2022 03:11:27 +0000 Subject: [PATCH 12/15] Bump actions/setup-python from 2 to 4 Bumps [actions/setup-python](https://github.com/actions/setup-python) from 2 to 4. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v2...v4) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d2d45d1..36de71d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,7 +17,7 @@ jobs: uses: tj-actions/semver-diff@v1.2.0 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: '3.6.x' From 53aac0929ceee2651ab9a7657024165b773eaf85 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 12 Jun 2022 03:11:49 +0000 Subject: [PATCH 13/15] Bump tj-actions/semver-diff from 1.2.0 to 2.0.0 Bumps [tj-actions/semver-diff](https://github.com/tj-actions/semver-diff) from 1.2.0 to 2.0.0. - [Release notes](https://github.com/tj-actions/semver-diff/releases) - [Changelog](https://github.com/tj-actions/semver-diff/blob/main/HISTORY.md) - [Commits](https://github.com/tj-actions/semver-diff/compare/v1.2.0...v2.0.0) --- updated-dependencies: - dependency-name: tj-actions/semver-diff dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d2d45d1..22bd4b9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -14,7 +14,7 @@ jobs: - name: Run semver-diff id: semver-diff - uses: tj-actions/semver-diff@v1.2.0 + uses: tj-actions/semver-diff@v2.0.0 - name: Set up Python uses: actions/setup-python@v2 From 93c60ad9dc3fb2531fb3dd33135f51e66a38e36e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 12 Jun 2022 03:13:06 +0000 Subject: [PATCH 14/15] Bump tj-actions/github-changelog-generator from 1.8 to 1.13 Bumps [tj-actions/github-changelog-generator](https://github.com/tj-actions/github-changelog-generator) from 1.8 to 1.13. - [Release notes](https://github.com/tj-actions/github-changelog-generator/releases) - [Changelog](https://github.com/tj-actions/github-changelog-generator/blob/main/HISTORY.md) - [Commits](https://github.com/tj-actions/github-changelog-generator/compare/v1.8...v1.13) --- updated-dependencies: - dependency-name: tj-actions/github-changelog-generator dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 512a552..577e3b9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -43,7 +43,7 @@ jobs: TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - name: Generate CHANGELOG - uses: tj-actions/github-changelog-generator@v1.8 + uses: tj-actions/github-changelog-generator@v1.13 - name: Create Pull Request uses: peter-evans/create-pull-request@v3 From ab1daab6214b76b62320486d7291316d38cc2d55 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 12 Jun 2022 03:13:18 +0000 Subject: [PATCH 15/15] Bump actions/checkout from 2 to 3 Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v2...v3) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 466c47d..a229bbf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,7 +8,7 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy