From dc781d276e8176f4956d301a720ec3f486fc1f5c Mon Sep 17 00:00:00 2001 From: Thomas Bui Date: Sun, 18 Oct 2020 15:32:36 -0700 Subject: [PATCH 1/4] Fixed an issue with mocha plain not in the correct viewbox --- icons/mocha/mocha-plain.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icons/mocha/mocha-plain.svg b/icons/mocha/mocha-plain.svg index 5bc4f484..b62101e7 100644 --- a/icons/mocha/mocha-plain.svg +++ b/icons/mocha/mocha-plain.svg @@ -1 +1 @@ -mocha \ No newline at end of file +mocha \ No newline at end of file From 7a1425a7d35feb041734cd34fa23d77aeeea002c Mon Sep 17 00:00:00 2001 From: Thomas Bui Date: Wed, 21 Oct 2020 12:43:43 -0700 Subject: [PATCH 2/4] Updated the CONTRIBUTING.md --- CONTRIBUTING.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c58f6c28..9a6d013e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -64,6 +64,8 @@ Some icons are really simple (like the Apple one), so the original version can b
  • Optimize/compress your SVGs. You can use a service like compressor or SVG Editor.
  • The icon's strokes and texts must be fills. We use Icomoon to make our icon, which has its requirements
  • +
  • Each .svg file contains one version of an icon in a 0 0 128 128 viewbox
  • +
  • The naming convention for the svg file is the following: (icon name)-(original|plain|line)-(wordmark)

  • @@ -72,8 +74,6 @@ Some icons are really simple (like the Apple one), so the original version can b
  • Each icon has its own folder located in the icons folder
  • Each icon folder contains one .eps file and as many .svg files as versions available
  • The .eps file contains all available versions of an icon. Each version is contained in a 128px by 128px artboard
  • -
  • Each .svg file contains one version of an icon in a 0 0 128 128 viewbox
  • -
  • The naming convention for the svg file is the following: (icon name)-(original|plain|line)-(wordmark)

  • @@ -158,6 +158,7 @@ As an example, let's assume you have created the svgs for Amazon Web Services an "font": [ // here are the versions that will be used to create icons "original", // original is simple enough to be used as plain "plain-wordmark", + // note that the alias "plain" is not listed here. It must be listed in the `aliases` attribute ] }, "color": "#F7A80D", // note the '#' character From c76ba93470dd1e01e09f0d977c03ebecbeddc6e4 Mon Sep 17 00:00:00 2001 From: Thomas Bui Date: Wed, 21 Oct 2020 13:04:35 -0700 Subject: [PATCH 3/4] Commented out the comment bot --- .github/workflows/peek_icons.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/peek_icons.yml b/.github/workflows/peek_icons.yml index 30bacbb9..9f9af857 100644 --- a/.github/workflows/peek_icons.yml +++ b/.github/workflows/peek_icons.yml @@ -38,16 +38,17 @@ jobs: with: name: new_icons path: ./new_icons.png - - name: Comment on the PR about the result - uses: github-actions-up-and-running/pr-comment@v1.0.1 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - message: > - Hi! I'm Devicons' GitHub Actions Bot! + # - name: Comment on the PR about the result + # uses: github-actions-up-and-running/pr-comment@v1.0.1 + # with: + # repo-token: ${{ secrets.GITHUB_TOKEN }} + # message: > + # Hi! I'm Devicons' GitHub Actions Bot! - I just peeked at the icons that you wanted to add and upload them to the - [Actions page](https://github.com/devicons/devicon/actions). The maintainers - will now take a look at it and decide whether to merge your PR. + # I just peeked at the icons that you wanted to add and upload them to the + # [Actions page](https://github.com/devicons/devicon/actions). The maintainers + # will now take a look at it and decide whether to merge your PR. - Cheers :), - Bot + # Cheers :), + + # Bot From cc4266ebccdd299b4c19b3c637d1fd8b3210d104 Mon Sep 17 00:00:00 2001 From: Thomas Bui Date: Wed, 21 Oct 2020 13:50:17 -0700 Subject: [PATCH 4/4] Build script now run manually --- .github/workflows/build_icons.yml | 8 +++----- CONTRIBUTING.md | 11 +++++++---- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_icons.yml b/.github/workflows/build_icons.yml index 8d333172..2f6e69d1 100644 --- a/.github/workflows/build_icons.yml +++ b/.github/workflows/build_icons.yml @@ -1,11 +1,8 @@ name: Build Icons -on: - pull_request: - types: [labeled] +on: workflow_dispatch jobs: build: name: Get Fonts From Icomoon - if: contains(github.event.pull_request.labels.*.name, 'bot:build') runs-on: windows-2019 steps: - uses: actions/checkout@v2 @@ -46,7 +43,8 @@ jobs: uses: peter-evans/create-pull-request@v3 with: branch: ${{ format('build/{0}', github.head_ref) }} + base: 'develop' commit-message: 'Built new icons, icomoon.json and devicon.css' title: 'bot:build new icons, icomoon.json and devicon.css' body: 'Automated font-building task ran by GitHub Actions bot' - delete-branch: ${{true}} + delete-branch: true diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 9a6d013e..99b60aab 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -26,9 +26,8 @@ First of all, thanks for taking the time to contribute! This project can only gr
  • Include the name of the icon in the pull request title. Follow this format: new icon: {{logoName}} ({{versions}})
  • Optional: Add images of the new icon(s) to the description of the pull request. This would help speed up the review process
  • Optional: Reference the issues regarding the new icon.
  • -
  • Wait for a repo maintainer to review your changes. Once they are satisfied, they will build your repo . This will create a PR into your branch.
  • -
  • Review the PR. It should contain the icon versions of your svgs. Accept the changes if you are satisfied
  • -
  • Once you accept the changes, a maintainer will accept your PR into the repo.
  • +
  • Wait for a repo maintainer to review your changes. They will run a script to check your icons.
  • +
  • If there are no issue, they will accept your PR into the repo. Else, they will let you know and give you a chance to fix it.

  • @@ -233,9 +232,13 @@ As an example, let's assume you have created the svgs for Amazon Web Services an

    Regarding The Build Script

    To make adding icons easier for repo maintainers, we rely on GitHub Actions, Python, Selenium, and Gulp to automate our tasks.

    -

    So far, the tasks that we have automated are:

    +

    So far, the tasks in the build script are:

    +

    There are also other tasks that we are automating, such as:

    +
    • Ensure code quality is up to standard
    • +
    • Upload svgs to icomoon.io and take a screenshot for check.
    \ No newline at end of file