From 0f33a8fca8eaeb3678e37f067fa0259d908a0fc4 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 12 Sep 2021 21:45:41 +0100 Subject: [PATCH] :building_construction: Renamed workflows to be more logical --- .github/workflows/add-comment-from-tag.yml | 2 +- .github/workflows/auto-tag-pr.yml | 2 +- .github/workflows/build-app.yml | 2 +- .github/workflows/cache-artifacts.yml | 2 +- .github/workflows/close-incomplete-issues.yml | 2 +- .github/workflows/close-stale-issues.yml | 2 +- .github/workflows/code-linter.yml | 2 +- .github/workflows/code-spell-check.yml | 2 +- .github/workflows/dependency-updates-summary.yml | 6 +++--- .github/workflows/docker-publish.yml | 2 +- .github/workflows/generate-credits.yml | 2 +- .github/workflows/get-size.yml | 5 ++++- .github/workflows/issue-spam-control.yml | 2 +- .github/workflows/issue-translator.yml | 2 +- .github/workflows/label-sponsors.yml | 2 +- .github/workflows/lgtm-comment.yml | 2 +- .github/workflows/mind-your-language.yml | 2 +- .github/workflows/pr-commenter.yml | 2 +- .github/workflows/raise-issue-from-todo.yml | 4 ++-- .github/workflows/release-commenter.yml | 2 +- .github/workflows/security-scanning.yml | 2 +- .github/workflows/update-issue-after-pr.yml | 11 ----------- .github/workflows/wiki-sync.yml | 2 +- 23 files changed, 28 insertions(+), 36 deletions(-) delete mode 100644 .github/workflows/update-issue-after-pr.yml diff --git a/.github/workflows/add-comment-from-tag.yml b/.github/workflows/add-comment-from-tag.yml index 8d2ae522..831da95c 100644 --- a/.github/workflows/add-comment-from-tag.yml +++ b/.github/workflows/add-comment-from-tag.yml @@ -1,5 +1,5 @@ # Based on a label applied to an issue, the bot will add a comment with some additional info -name: Post Status from Label +name: 🎯 Auto-Reply to Labeled Tickets on: issues: types: diff --git a/.github/workflows/auto-tag-pr.yml b/.github/workflows/auto-tag-pr.yml index 9000d1bc..e05948eb 100644 --- a/.github/workflows/auto-tag-pr.yml +++ b/.github/workflows/auto-tag-pr.yml @@ -1,5 +1,5 @@ # Creates a new tag, whenever the app version (in package.json) is updated in master -name: Create Tag +name: 🏗️ Create Tag on Version Change on: push: branches: diff --git a/.github/workflows/build-app.yml b/.github/workflows/build-app.yml index 25d65190..4f29a69d 100644 --- a/.github/workflows/build-app.yml +++ b/.github/workflows/build-app.yml @@ -1,5 +1,5 @@ # This action builds and deploys the master branch -name: Deploy demo of current version +name: 🏗️ Build App to Branch on: push: branches: [ master ] diff --git a/.github/workflows/cache-artifacts.yml b/.github/workflows/cache-artifacts.yml index 498ce16e..d946b65e 100644 --- a/.github/workflows/cache-artifacts.yml +++ b/.github/workflows/cache-artifacts.yml @@ -1,5 +1,5 @@ # Caches artifacts, including NPM dependencies, to speed up build times -name: Caching Atrifacts +name: 🏗️ Caching Artifacts on: push jobs: build: diff --git a/.github/workflows/close-incomplete-issues.yml b/.github/workflows/close-incomplete-issues.yml index a8ec1f5b..35cdf3f7 100644 --- a/.github/workflows/close-incomplete-issues.yml +++ b/.github/workflows/close-incomplete-issues.yml @@ -1,5 +1,5 @@ # Close any issue that does not match any of the issue templates -name: Close Non-Compliant Issues +name: 🎯 Close Incomplete Issues on: issues: types: [opened, edited] diff --git a/.github/workflows/close-stale-issues.yml b/.github/workflows/close-stale-issues.yml index 79d01c5f..1ef583ec 100644 --- a/.github/workflows/close-stale-issues.yml +++ b/.github/workflows/close-stale-issues.yml @@ -1,5 +1,5 @@ # Closes any issues that no longer have user interaction -name: 'Close stale issues and PRs' +name: 🎯 Close Stale Issues on: workflow_dispatch: schedule: diff --git a/.github/workflows/code-linter.yml b/.github/workflows/code-linter.yml index cf2c5964..c0a12d0f 100644 --- a/.github/workflows/code-linter.yml +++ b/.github/workflows/code-linter.yml @@ -1,5 +1,5 @@ # Lints code merged into master branch -name: Lint Code Base +name: 🌈 Lint Code Base on: pull_request: branches: [master] diff --git a/.github/workflows/code-spell-check.yml b/.github/workflows/code-spell-check.yml index e0ec4c18..8b162f02 100644 --- a/.github/workflows/code-spell-check.yml +++ b/.github/workflows/code-spell-check.yml @@ -1,5 +1,5 @@ # Finds typos in the English language within the app, submits a PR with fixes -name: Auto-Fix Spelling +name: 🌈 Spelling Auto-Fix on: push: branches: [ master ] diff --git a/.github/workflows/dependency-updates-summary.yml b/.github/workflows/dependency-updates-summary.yml index daeddaf7..bca9f2d0 100644 --- a/.github/workflows/dependency-updates-summary.yml +++ b/.github/workflows/dependency-updates-summary.yml @@ -1,6 +1,6 @@ -# Shows changes to yarn.lock in PR comment -# Useful for easily understanding dependency changes -name: Yarn Lock Changes +# Shows changes to any yarn.lock in PR comment +# Useful for easily understanding dependency changes and consequences +name: 💡 Show Dependency Changes on: [pull_request] jobs: check: diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index acd0db49..0847133d 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -1,6 +1,6 @@ # Builds a Docker image from with latest tag when master branch is updated # The publishes it to GitHub container registry as a package -name: Build and Publish Docker Image to GHCR +name: 🏗️ Build + Publish Docker Image to GHCR on: workflow_dispatch: push: diff --git a/.github/workflows/generate-credits.yml b/.github/workflows/generate-credits.yml index 06b4dd50..84449469 100644 --- a/.github/workflows/generate-credits.yml +++ b/.github/workflows/generate-credits.yml @@ -1,6 +1,6 @@ # Inserts list of contributors and community members into ./docs/credits.md # Also generates an SVG showing all contributors, which is embedded into readme -name: Contributors +name: 📊 Generate Contributor Credits on: workflow_dispatch: # Manual dispatch schedule: diff --git a/.github/workflows/get-size.yml b/.github/workflows/get-size.yml index 2b602fd0..b8aae5bf 100644 --- a/.github/workflows/get-size.yml +++ b/.github/workflows/get-size.yml @@ -1,5 +1,5 @@ # Adds a comment to new PRs, showing the compressed size and size difference of new code -name: Compressed Size +name: 🌈 Get Compressed Size on: [pull_request] jobs: build: @@ -7,3 +7,6 @@ jobs: steps: - uses: actions/checkout@v2 - uses: preactjs/compressed-size-action@v2 + with: + repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} + pattern: "./dist/**/**" diff --git a/.github/workflows/issue-spam-control.yml b/.github/workflows/issue-spam-control.yml index 4c24df05..c10a6521 100644 --- a/.github/workflows/issue-spam-control.yml +++ b/.github/workflows/issue-spam-control.yml @@ -1,6 +1,6 @@ # Will add a comment and close new issues opened by users that may be spam, or have not starred # Is still a work in progress, will also detect if user has previous activity in repo and check when joined GH -name: Issue Spam Control +name: 🎯 Issue Spam Control on: issues: types: [opened, reopened] diff --git a/.github/workflows/issue-translator.yml b/.github/workflows/issue-translator.yml index 501e9ebd..2f4967c5 100644 --- a/.github/workflows/issue-translator.yml +++ b/.github/workflows/issue-translator.yml @@ -1,5 +1,5 @@ # Will translate any issues opened in foraign language, and add the English translation as a comment -name: 'Issue Translator' +name: 🎯 Issue Translator on: issue_comment: types: [created] diff --git a/.github/workflows/label-sponsors.yml b/.github/workflows/label-sponsors.yml index f7d129bd..a18a4b85 100644 --- a/.github/workflows/label-sponsors.yml +++ b/.github/workflows/label-sponsors.yml @@ -1,6 +1,6 @@ # Adds a label to any issues raised by a sponsor of Lissy93/Dashy # In order to allow their request can be prioritized -name: Label sponsors +name: 🎯 Label sponsors on: pull_request: types: [opened] diff --git a/.github/workflows/lgtm-comment.yml b/.github/workflows/lgtm-comment.yml index e9df2440..aeb9f99a 100644 --- a/.github/workflows/lgtm-comment.yml +++ b/.github/workflows/lgtm-comment.yml @@ -1,5 +1,5 @@ # Replies with a random looks-good GIF, when a PR is reviewed with a LGTM comment -name: Add Random LGTM GIF +name: 💡 Random LGTM GIF on: issue_comment: { types: [created] } pull_request_review: { types: [submitted] } diff --git a/.github/workflows/mind-your-language.yml b/.github/workflows/mind-your-language.yml index b32e55ec..fd97fbc3 100644 --- a/.github/workflows/mind-your-language.yml +++ b/.github/workflows/mind-your-language.yml @@ -1,5 +1,5 @@ # Detects offensive language in comments and takes reaction -name: Mind your language +name: 🎯 Mind your language on: issues: types: diff --git a/.github/workflows/pr-commenter.yml b/.github/workflows/pr-commenter.yml index 9b03d9e7..09e73744 100644 --- a/.github/workflows/pr-commenter.yml +++ b/.github/workflows/pr-commenter.yml @@ -1,5 +1,5 @@ # Adds comments to PR, based on which files are modified -name: PR Commenter +name: 💡 PR Commenter on: [ pull_request_target ] jobs: pr-comment: diff --git a/.github/workflows/raise-issue-from-todo.yml b/.github/workflows/raise-issue-from-todo.yml index e7fe5b7a..f4afd3d5 100644 --- a/.github/workflows/raise-issue-from-todo.yml +++ b/.github/workflows/raise-issue-from-todo.yml @@ -1,5 +1,5 @@ -# Finds any TODO notes within the code, and opens up an issue for it to be fixed -name: Open issue for Todos +# Finds any TO-DO notes within the code, and opens up an issue for it to be fixed +name: 🌈 Open issue for Todos on: ["push"] jobs: build: diff --git a/.github/workflows/release-commenter.yml b/.github/workflows/release-commenter.yml index c0b580c4..4a9fe266 100644 --- a/.github/workflows/release-commenter.yml +++ b/.github/workflows/release-commenter.yml @@ -1,5 +1,5 @@ # Adds a comment to all issues & PRs that were fixed on a new release -name: Release Issue Commenter +name: 💡 Update Issue after Release on: release: types: [published] diff --git a/.github/workflows/security-scanning.yml b/.github/workflows/security-scanning.yml index 228b2f2e..84f7b474 100644 --- a/.github/workflows/security-scanning.yml +++ b/.github/workflows/security-scanning.yml @@ -1,5 +1,5 @@ # Uses Snyk to check for potential vulnerabilities, then sends results to GH security tab -name: Check for vulnerabilities with Snyk +name: 💡 Vulnerability Scanning on: push jobs: security: diff --git a/.github/workflows/update-issue-after-pr.yml b/.github/workflows/update-issue-after-pr.yml deleted file mode 100644 index e62678fc..00000000 --- a/.github/workflows/update-issue-after-pr.yml +++ /dev/null @@ -1,11 +0,0 @@ -# After a PR is merged, the linked issue will be updated with a comment, based on commit message -name: Update Issue After PR -on: push -jobs: - checkCommit: - name: Comment From Commit - runs-on: ubuntu-latest - steps: - - uses: adamzolyak/commit-issue-commenter-action@master - env: - GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/wiki-sync.yml b/.github/workflows/wiki-sync.yml index f8774e4b..24e30704 100644 --- a/.github/workflows/wiki-sync.yml +++ b/.github/workflows/wiki-sync.yml @@ -1,5 +1,5 @@ # Uses the contents of the ./docs directory for Dashy's GH Wiki page -name: Wiki Sync +name: 📊 Wiki Sync on: workflow_dispatch: # Manual dispatch schedule: