From 0d616c9659fdd7a7d85441797b0508d52156ddc2 Mon Sep 17 00:00:00 2001 From: Alex | Interchain Labs Date: Thu, 10 Apr 2025 14:57:12 -0400 Subject: [PATCH] chore: clean up workflows (#24470) --- .github/dependabot.yml | 27 ------------------ .github/pr_labeler.yml | 6 ---- .github/workflows/fork-cherry-pick.yml | 39 -------------------------- 3 files changed, 72 deletions(-) delete mode 100644 .github/workflows/fork-cherry-pick.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 0c72d9f4e7..144a60799b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -197,33 +197,6 @@ updates: labels: - "A:automerge" - dependencies - - package-ecosystem: gomod - directory: "/x/protocolpool" - schedule: - interval: weekly - day: wednesday - time: "03:00" - labels: - - "A:automerge" - - dependencies - - package-ecosystem: gomod - directory: "/x/auth" - schedule: - interval: weekly - day: wednesday - time: "03:10" - labels: - - "A:automerge" - - dependencies - - package-ecosystem: gomod - directory: "/x/epochs" - schedule: - interval: weekly - day: wednesday - time: "03:15" - labels: - - "A:automerge" - - dependencies - package-ecosystem: gomod directory: "/tools/benchmark" schedule: diff --git a/.github/pr_labeler.yml b/.github/pr_labeler.yml index f7a935b30e..47df1f257d 100644 --- a/.github/pr_labeler.yml +++ b/.github/pr_labeler.yml @@ -17,12 +17,8 @@ - store/**/* "C:collections": - collections/**/* -"C:core/testing": - - core/testing/**/* "C:log": - log/* -"C:schema": - - schema/**/* "C:x/auth": - x/auth/**/* "C:x/authz": @@ -61,8 +57,6 @@ - x/upgrade/**/* "C:x/epochs": - x/epochs/**/* -"C:x/validate": - - x/validate/**/* "Type: ADR": - docs/architecture/**/* "Type: Build": diff --git a/.github/workflows/fork-cherry-pick.yml b/.github/workflows/fork-cherry-pick.yml deleted file mode 100644 index ebf90b2e8a..0000000000 --- a/.github/workflows/fork-cherry-pick.yml +++ /dev/null @@ -1,39 +0,0 @@ -# This CI is disabled on main and meant to be enabled on forks as an easy way to cherry pick fork commits into main. -# In order to submit a PR from your repo to the Cosmos SDK, a PRBOT_PAT secret (personal access token) must be available for the GitHub Action (Settings > Secrets > Actions). -# The PR will be submitted from the user of the PAT. Note, the PRBOT_PAT user must have write access to the repo. -name: Cherry pick PR to Cosmos SDK -on: - # Set to trigger on every merge to main, not just a closed PR. - workflow_dispatch: - pull_request_target: - branches: - - main - types: ["closed"] - -jobs: - cherry_pick: - permissions: write-all - runs-on: ubuntu-latest - name: Cherry pick into main - if: github.event.pull_request.merged == true - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Create PR Patch Branch - shell: bash - env: - PR_NAME: pr-patch-${{ github.sha }} - run: | - git config --global user.name "${{ github.actor }}" # Config have to be set for pushing the cherry-picked changes onto fork pr-patch branch. - git config --global user.email "${{ github.actor }}@users.noreply.github.com" - git remote add upstream https://github.com/cosmos/cosmos-sdk.git - git fetch --all # Get the latest code - git checkout -b $PR_NAME upstream/main # Create new branch based on main branch - git cherry-pick -X theirs ${{ github.sha }} # Cherry pick the latest commit of PR - git push -u origin $PR_NAME # Push your changes to the remote branch - - name: Autocreate PR - shell: bash - env: - GH_TOKEN: ${{ secrets.PRBOT_PAT }} - run: | - gh pr create --repo cosmos/cosmos-sdk --base main --head "${{ github.event.repository.owner.login }}:pr-patch-${{ github.sha }}" --title "${{ github.event.pull_request.title }}" --body "Automated PR for commit: ${{ github.sha }} from ${{ github.repository }}"