From 28edac146cc4b7dac2ba2ec3ffb06edfc21d75ad Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Mon, 24 Jul 2023 20:45:40 -0400 Subject: [PATCH] chore(gh): update github-actions (#624) - Removed Pull Request Sizing - Remove Issue Greeting - Minor syntax updates. Signed-off-by: Ryan Johnson --- .github/comment-template.md | 10 -------- .github/workflows/code-quality.yml | 3 --- .github/workflows/issue-greeting.yml | 28 ----------------------- .github/workflows/lock-threads.yml | 10 ++++---- .github/workflows/pull-request-sizing.yml | 27 ---------------------- .github/workflows/stale.yml | 2 +- 6 files changed, 7 insertions(+), 73 deletions(-) delete mode 100644 .github/comment-template.md delete mode 100644 .github/workflows/issue-greeting.yml delete mode 100644 .github/workflows/pull-request-sizing.yml diff --git a/.github/comment-template.md b/.github/comment-template.md deleted file mode 100644 index 9a2aa982c..000000000 --- a/.github/comment-template.md +++ /dev/null @@ -1,10 +0,0 @@ -# - -Hello, {{ .author }}! 🖐 - -Thank you for your submitting an issue for the project. We will respond soon. - -If you want to contribute to this project, please review the [contributing guidelines][contributing-guidelines]. - -[//]: Links -[contributing-guidelines]: https://github.com/vmware-samples/packer-examples-for-vsphere/blob/main/CONTRIBUTING.md diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index 91666c223..e16499259 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -1,10 +1,8 @@ --- name: "Code Quality" - on: push: pull_request: - jobs: superlinter: name: Super-Linter @@ -14,7 +12,6 @@ jobs: uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 with: fetch-depth: 0 - - name: Lint Code uses: github/super-linter@45fc0d88288beee4701c62761281edfee85655d7 # v5.0.0 env: diff --git a/.github/workflows/issue-greeting.yml b/.github/workflows/issue-greeting.yml deleted file mode 100644 index 240a7608a..000000000 --- a/.github/workflows/issue-greeting.yml +++ /dev/null @@ -1,28 +0,0 @@ ---- -name: Issue Greeting -"on": - issues: - types: - - opened -jobs: - greeting: - name: Send Greeting - runs-on: ubuntu-latest - if: github.event.issue.author_association == 'NONE' - steps: - - name: Checkout - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 - with: - fetch-depth: 1 - - name: Render Template - id: template - uses: chuhlomin/render-template@b5c1c085165d9eb712cf4f2b56f89f11146ad017 # v1.7 - with: - template: .github/comment-template.md - vars: | - author: ${{ github.actor }} - - name: Create Comment - uses: peter-evans/create-or-update-comment@c6c9a1a66007646a28c153e2a8580a5bad27bcfa # v3.0.2 - with: - issue-number: "${{ github.event.issue.number }}" - body: "${{ steps.template.outputs.result }}" diff --git a/.github/workflows/lock-threads.yml b/.github/workflows/lock-threads.yml index ee0028360..11f9ee3b5 100644 --- a/.github/workflows/lock-threads.yml +++ b/.github/workflows/lock-threads.yml @@ -1,6 +1,6 @@ --- name: Lock Threads -"on": +on: schedule: - cron: 30 00 * * * jobs: @@ -9,21 +9,23 @@ jobs: steps: - uses: dessant/lock-threads@be8aa5be94131386884a6da4189effda9b14aa21 # v4.0.1 with: - github-token: "${{ github.token }}" - issue-comment: > + github-token: "${{ secrets.GITHUB_TOKEN }}" + issue-comment: >- I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. + If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. issue-inactive-days: "30" - pr-comment: > + pr-comment: >- I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. + If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. diff --git a/.github/workflows/pull-request-sizing.yml b/.github/workflows/pull-request-sizing.yml deleted file mode 100644 index f65cebbec..000000000 --- a/.github/workflows/pull-request-sizing.yml +++ /dev/null @@ -1,27 +0,0 @@ ---- -name: Pull Request Labels -"on": - - pull_request_target -jobs: - triage: - runs-on: ubuntu-latest - steps: - - uses: codelytv/pr-size-labeler@54ef36785e9f4cb5ecf1949cfc9b00dbb621d761 # v1.8.1 - with: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - xs_label: size/xs - xs_max_size: "10" - s_label: size/s - s_max_size: "100" - m_label: size/m - m_max_size: "500" - l_label: size/l - l_max_size: "1000" - xl_label: size/xl - fail_if_xl: "false" - message_if_xl: > - 'This pull request exceeds the recommended size of 1000 lines. - Please make sure you are NOT addressing multiple issues with one - pull request. Note this pull request might be rejected due to its - size.’ - github_api_url: api.github.com diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index cbaab7eb0..9d0219b20 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,6 +1,6 @@ --- name: Manage Stale Items -"on": +on: schedule: - cron: 00 00 * * * jobs: