diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 071afdc..9f1c464 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.1.0 +current_version = 1.2.0 commit = True tag = False diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ae760f7..0e0584e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,8 +5,12 @@ updates: schedule: interval: daily open-pull-requests-limit: 10 + labels: + - "merge when passing" - package-ecosystem: pip directory: "/" schedule: interval: daily open-pull-requests-limit: 10 + labels: + - "merge when passing" diff --git a/.github/workflows/auto-approve.yml b/.github/workflows/auto-approve.yml index 0de2e3d..6c8dc38 100644 --- a/.github/workflows/auto-approve.yml +++ b/.github/workflows/auto-approve.yml @@ -7,7 +7,7 @@ jobs: auto-approve: runs-on: ubuntu-latest steps: - - uses: hmarr/auto-approve-action@v3 + - uses: hmarr/auto-approve-action@v4 if: | ( github.event.pull_request.user.login == 'dependabot[bot]' || diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml deleted file mode 100644 index ac0ee08..0000000 --- a/.github/workflows/auto-merge.yml +++ /dev/null @@ -1,26 +0,0 @@ -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.6 - env: - GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} - MERGE_METHOD: "rebase" - UPDATE_METHOD: "rebase" - MERGE_RETRIES: "6" - MERGE_RETRY_SLEEP: "100000" - MERGE_LABELS: "" diff --git a/.github/workflows/codacy.yml b/.github/workflows/codacy.yml index b05fc81..127070e 100644 --- a/.github/workflows/codacy.yml +++ b/.github/workflows/codacy.yml @@ -35,11 +35,11 @@ jobs: steps: # Checkout the repository to the GitHub Actions runner - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis - name: Run Codacy Analysis CLI - uses: codacy/codacy-analysis-cli-action@5cc54a75f9ad88159bb54046196d920e40e367a5 + uses: codacy/codacy-analysis-cli-action@3ff8e64eb4b714c4bee91b7b4eea31c6fc2c4f93 with: # Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository # You can also omit the token and run the tools that support default configurations @@ -55,6 +55,6 @@ jobs: # Upload the SARIF file generated in the previous step - name: Upload SARIF results file - uses: github/codeql-action/upload-sarif@v2 + uses: github/codeql-action/upload-sarif@v3 with: sarif_file: results.sarif diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 4e26255..74677b6 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -24,18 +24,18 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} queries: +security-and-quality - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 with: category: "/language:${{ matrix.language }}" diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 486d3e5..2a6203f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,16 +8,16 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Run semver-diff id: semver-diff - uses: tj-actions/semver-diff@v2.4.1 + uses: tj-actions/semver-diff@v3.0.1 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.7.x' @@ -43,10 +43,10 @@ jobs: TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - name: Generate CHANGELOG - uses: tj-actions/github-changelog-generator@v1.18 + uses: tj-actions/github-changelog-generator@v1.20 - name: Create Pull Request - uses: peter-evans/create-pull-request@v5 + uses: peter-evans/create-pull-request@v6 with: base: "main" title: "Upgraded ${{ steps.semver-diff.outputs.old_version }} → ${{ steps.semver-diff.outputs.new_version }}" diff --git a/CHANGELOG.md b/CHANGELOG.md index 6391492..18ef1cf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,36 @@ # Changelog +## [v1.2.0](https://github.com/tj-python/github-deploy/tree/v1.2.0) (2023-07-05) + +[Full Changelog](https://github.com/tj-python/github-deploy/compare/v1.1.2...v1.2.0) + +**Merged pull requests:** + +- Upgraded v1.1.1 → v1.1.2 [\#46](https://github.com/tj-python/github-deploy/pull/46) ([jackton1](https://github.com/jackton1)) + +## [v1.1.2](https://github.com/tj-python/github-deploy/tree/v1.1.2) (2023-05-29) + +[Full Changelog](https://github.com/tj-python/github-deploy/compare/v1.1.1...v1.1.2) + +**Merged pull requests:** + +- Bump tj-actions/github-changelog-generator from 1.18 to 1.19 [\#45](https://github.com/tj-python/github-deploy/pull/45) ([dependabot[bot]](https://github.com/apps/dependabot)) +- Upgraded v1.1.0 → v1.1.1 [\#44](https://github.com/tj-python/github-deploy/pull/44) ([jackton1](https://github.com/jackton1)) + +## [v1.1.1](https://github.com/tj-python/github-deploy/tree/v1.1.1) (2023-04-05) + +[Full Changelog](https://github.com/tj-python/github-deploy/compare/v1.1.0...v1.1.1) + +**Merged pull requests:** + +- Bump peter-evans/create-pull-request from 4 to 5 [\#43](https://github.com/tj-python/github-deploy/pull/43) ([dependabot[bot]](https://github.com/apps/dependabot)) +- Bump tj-actions/github-changelog-generator from 1.17 to 1.18 [\#42](https://github.com/tj-python/github-deploy/pull/42) ([dependabot[bot]](https://github.com/apps/dependabot)) +- Bump codacy/codacy-analysis-cli-action from 4.2.0 to 4.3.0 [\#41](https://github.com/tj-python/github-deploy/pull/41) ([dependabot[bot]](https://github.com/apps/dependabot)) +- Bump pascalgn/automerge-action from 0.15.5 to 0.15.6 [\#40](https://github.com/tj-python/github-deploy/pull/40) ([dependabot[bot]](https://github.com/apps/dependabot)) +- Bump tj-actions/semver-diff from 2.4.0 to 2.4.1 [\#39](https://github.com/tj-python/github-deploy/pull/39) ([dependabot[bot]](https://github.com/apps/dependabot)) +- Bump tj-actions/semver-diff from 2.1.0 to 2.4.0 [\#38](https://github.com/tj-python/github-deploy/pull/38) ([dependabot[bot]](https://github.com/apps/dependabot)) +- Upgraded v1.0.2 → v1.1.0 [\#37](https://github.com/tj-python/github-deploy/pull/37) ([jackton1](https://github.com/jackton1)) + ## [v1.1.0](https://github.com/tj-python/github-deploy/tree/v1.1.0) (2023-01-06) [Full Changelog](https://github.com/tj-python/github-deploy/compare/v1.0.2...v1.1.0) diff --git a/README.md b/README.md index 7e9c63a..b014e1a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ [![Codacy Badge](https://app.codacy.com/project/badge/Grade/867aeabe457f4367b9e0013b713add6b)](https://www.codacy.com/gh/tj-python/github-deploy/dashboard?utm_source=github.com&utm_medium=referral&utm_content=tj-python/github-deploy&utm_campaign=Badge_Grade) [![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) +[![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://static.pepy.tech/badge/github-deploy)](https://pepy.tech/project/github-deploy) + + # github-deploy diff --git a/github_deploy/commands/_constants.py b/github_deploy/commands/_constants.py index ab4c9ba..174b0a3 100644 --- a/github_deploy/commands/_constants.py +++ b/github_deploy/commands/_constants.py @@ -1,2 +1,2 @@ -REPOS_URL = "https://api.github.com/users/{org}/repos" +REPOS_URL = "https://api.github.com/users/{org}/repos?per_page=100" FILE_CONTENTS_URL = "https://api.github.com/repos/{repo}/contents/{path}" diff --git a/setup.py b/setup.py index bfe6bce..29124f3 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ setup( name="github-deploy", - version="1.1.0", + version="1.2.0", description="Deploy yaml files to a large number of repositories in seconds.", long_description=LONG_DESCRIPTION, long_description_content_type=LONG_DESCRIPTION_TYPE,