From 3b090a2d288d7d699f611f25495bac03799cb323 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20T=C3=BCrken?= Date: Mon, 15 Apr 2024 16:25:14 +0300 Subject: [PATCH 1/2] Remove GitHub issue triage and PR triage workflows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fatih Türken --- .github/workflows/issue-triage.yml | 36 -------------------------- .github/workflows/pr-triage.yml | 41 ------------------------------ 2 files changed, 77 deletions(-) delete mode 100644 .github/workflows/issue-triage.yml delete mode 100644 .github/workflows/pr-triage.yml diff --git a/.github/workflows/issue-triage.yml b/.github/workflows/issue-triage.yml deleted file mode 100644 index b974245..0000000 --- a/.github/workflows/issue-triage.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Issue Triage - -on: - workflow_call: - secrets: - UPBOUND_BOT_GITHUB_TOKEN: - description: 'A PAT with permissions that allow labeling and adding issues to a project' - required: true - -jobs: - debug: - runs-on: ubuntu-22.04 - steps: - - name: Debug - run: | - echo "github.event.issue.author_association: ${{ github.event.issue.author_association }}" - community-issue-triage: - if: ${{ (github.event.issue.author_association != 'OWNER' && - github.event.issue.author_association != 'MEMBER' && - github.event.issue.author_association != 'CONTRIBUTOR' && - github.event.issue.author_association != 'COLLABORATOR' ) }} - runs-on: ubuntu-22.04 - permissions: - issues: write - steps: - - name: Label as community issue - if: ${{ !contains(github.event.issue.labels.*.name, 'community') }} - uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6 - with: - script: | - github.rest.issues.addLabels({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ["community"] - }) diff --git a/.github/workflows/pr-triage.yml b/.github/workflows/pr-triage.yml deleted file mode 100644 index 38eb552..0000000 --- a/.github/workflows/pr-triage.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: Pull Request Triage - -on: - workflow_call: - secrets: - UPBOUND_BOT_GITHUB_TOKEN: - description: 'A PAT with permissions that allow labeling and adding PRs to a project' - required: true - -jobs: - debug: - runs-on: ubuntu-22.04 - steps: - - name: Debug - run: | - echo "github.event.pull_request.author_association: ${{ github.event.pull_request.author_association }}" - echo "github.event.pull_request.number: ${{ github.event.pull_request.number }}" - community-pr-triage: - if: ${{ (github.event.pull_request.author_association != 'OWNER' && - github.event.pull_request.author_association != 'MEMBER' && - github.event.pull_request.author_association != 'CONTRIBUTOR' && - github.event.pull_request.author_association != 'COLLABORATOR' ) }} - runs-on: ubuntu-22.04 - permissions: write-all - steps: - - name: Label as community PR - if: ${{ !contains(github.event.pull_request.labels.*.name, 'community') }} - uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6 - with: - script: | - github.rest.issues.addLabels({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - labels: ["community"] - }) - - name: Add PR to Extensions Community Support project - uses: actions/add-to-project@31b3f3ccdc584546fc445612dec3f38ff5edb41c # v0.5.0 - with: - project-url: https://github.com/orgs/upbound/projects/104/views/1 - github-token: ${{ secrets.UPBOUND_BOT_GITHUB_TOKEN }} From 525de4abc057affb814902c8c082ffc262069753 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20T=C3=BCrken?= Date: Mon, 15 Apr 2024 16:44:18 +0300 Subject: [PATCH 2/2] Remove description of workflows from README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fatih Türken --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 1a88631..7c14763 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,6 @@ This repository is also the home of the Upbound official providers reusable work - `.github/workflows/provider-publish-service-artifacts.yml`: A reusable workflow for building the official provider families and pushing their packages to the Upbound registry. - `.github/workflows/native-provider-bump.yml`: A reusable workflow for bumping the underlying Terraform provider versions of upjet-based official providers. - `.github/workflows/provider-backport.yml`: A reusable workflow for opening backport PRs in the specified release branches by inspecting the labels on merged PRs. -- `.github/workflows/issue-triage.yml`: A reusable workflow for identifying and labeling issues opened by the community. -- `.github/workflows/pr-triage.yml`: A reusable workflow for identifying and labeling pull requests opened by the community. - `.github/workflows/provider-tag.yml`: A reusable workflow for tagging commits in the release process. - `.github/workflows/provider-updoc.yml`: A reusable workflow for running `updoc` and publishing the provider documentation to the [Upbound marketplace](https://marketplace.upbound.io/providers). - `.github/workflows/scan.yml`: A reusable workflow for running [Trivy](https://trivy.dev) scans in the official provider repositories.