From c875a37aa1143df1824a31ee70b34ff575ba2dda Mon Sep 17 00:00:00 2001 From: Dani Santos Date: Mon, 12 Sep 2022 17:53:08 -0400 Subject: [PATCH] uses gh actions instead of probot (#477) --- .github/autolabeler.yml | 6 ------ .github/labeler.yml | 17 +++++++++++++++++ .github/probots.yml | 4 ---- .github/welcome.yml | 8 -------- .github/workflows/first-interaction.yml | 6 ++++++ .github/workflows/pr-labeler.yml | 13 +++++++++++++ 6 files changed, 36 insertions(+), 18 deletions(-) delete mode 100644 .github/autolabeler.yml create mode 100644 .github/labeler.yml delete mode 100644 .github/probots.yml delete mode 100644 .github/welcome.yml create mode 100644 .github/workflows/first-interaction.yml create mode 100644 .github/workflows/pr-labeler.yml diff --git a/.github/autolabeler.yml b/.github/autolabeler.yml deleted file mode 100644 index c1b92a61..00000000 --- a/.github/autolabeler.yml +++ /dev/null @@ -1,6 +0,0 @@ -core: ["/cmd"] -legal: ["LICENSE*", "CODE_OF_CONDUCT*"] -config: [".github","build","Makefile","/configs"] -go-modules: ["go.*"] -readme: ["README*"] -datafiles: ["/fixtures"] diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 00000000..20d09a3a --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,17 @@ +core: +- '/cmd' + +legal: +- any: ['LICENSE*', 'CODE_OF_CONDUCT*'] + +config: +- any: ['.github','build','Makefile','/config'] + +go-modules: +- 'go.*' + +readme: +- 'README*' + +datafiles: +- '/fixtures' diff --git a/.github/probots.yml b/.github/probots.yml deleted file mode 100644 index f5848ca0..00000000 --- a/.github/probots.yml +++ /dev/null @@ -1,4 +0,0 @@ -enabled: - - welcome - - triage-new-issues - - probot-labeler diff --git a/.github/welcome.yml b/.github/welcome.yml deleted file mode 100644 index a5efa089..00000000 --- a/.github/welcome.yml +++ /dev/null @@ -1,8 +0,0 @@ -newIssueWelcomeComment: > - Thanks for opening your first issue here! Be sure to follow the issue template! - -newPRWelcomeComment: > - Thanks for opening this pull request! Please check out our [contributing guidelines](https://github.com/Shopify/kubeaudit#Contributing) and [sign the CLA](https://cla.shopify.com/). - -firstPRMergeComment: > - Congrats on merging your first pull request, keep em coming! diff --git a/.github/workflows/first-interaction.yml b/.github/workflows/first-interaction.yml new file mode 100644 index 00000000..3f8d7dd8 --- /dev/null +++ b/.github/workflows/first-interaction.yml @@ -0,0 +1,6 @@ +steps: +- uses: actions/first-interaction@v1 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} + issue-message: 'Thanks for opening your first issue here! Be sure to follow the issue template!' + pr-message: 'Thanks for opening this pull request! Please check out our [contributing guidelines](https://github.com/Shopify/kubeaudit#Contributing) and [sign the CLA](https://cla.shopify.com/).' diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 00000000..c877502e --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,13 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + triage: + permissions: + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v4 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"