Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE/new_icon.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
<!-- Tick the checkboxes to ensure you've done everything correctly -->
- [ ] PR does not match another non-stale PR currently opened
- [ ] PR name matches the format *new icon: <i>Icon name</i> (<i>versions separated by comma</i>)*. More details [here](https://github.com/devicons/devicon/wiki/Overview-on-Submitting-Icons)
- [ ] PR's base is the `develop` branch.
- [ ] PR's base is the `master` branch.
- [ ] Your icons are inside a folder as seen [here](https://github.com/devicons/devicon/wiki/Organizing-SVGs)
- [ ] SVG matches the standards laid out [here](https://github.com/devicons/devicon/wiki/SVG-Standards)
- [ ] A new object is added in the `devicon.json` file at the correct alphabetic position as seen [here](https://github.com/devicons/devicon/wiki/Updating-%60devicon.json%60)

<!-- Refer to the [contributing](https://github.com/devicons/devicon/blob/develop/CONTRIBUTING.md#contributing-to-devicon) guidelines for more details. -->
<!-- Refer to the [contributing](https://github.com/devicons/devicon/blob/master/CONTRIBUTING.md#contributing-to-devicon) guidelines for more details. -->

**This PR closes NONE**
<!-- List issues that this PR would close above. Ex: This PR closes #1, #2, #3. -->
Expand Down
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Actions are pinned to commit SHAs (a tag can be moved to malicious code);
# Dependabot keeps the pins and their "# vX.Y.Z" comments up to date.
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: monthly
groups:
actions:
patterns: ['*']
commit-message:
prefix: ci
198 changes: 0 additions & 198 deletions .github/scripts/build_assets/api_handler.py

This file was deleted.

40 changes: 13 additions & 27 deletions .github/scripts/build_assets/arg_getters.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
from build_assets.PathResolverAction import PathResolverAction


def get_selenium_runner_args(has_token=True, peek_mode=False):
def get_selenium_runner_args(has_token=True, peek_mode=False, build_since=False):
"""
Get the commandline arguments for the icomoon_peek.py and
icomoon_build.py.
icomoon_build_githubless.py.
"""
parser = ArgumentParser(description="Upload svgs to Icomoon to create icon files.")

Expand Down Expand Up @@ -34,11 +34,16 @@ def get_selenium_runner_args(has_token=True, peek_mode=False):
action=PathResolverAction)

if peek_mode:
parser.add_argument("pr_title",
help="The title of the PR that we are peeking at")
parser.add_argument("--base",
help="Commit to diff against to find the PR's changes (HEAD^1 in a PR merge commit)",
default="HEAD^1")
if has_token != False:
parser.add_argument("token",
help="The GitHub token to access the GitHub REST API.")
if build_since:
parser.add_argument("--since",
help="Commit to diff against to find updated SVGs (usually the last build commit)",
default=None)

return parser.parse_args()

Expand All @@ -50,7 +55,7 @@ def get_check_icon_pr_args():
parser = ArgumentParser(description="Check the SVGs to ensure their attributes are correct. Run whenever a PR is opened")

parser.add_argument("pr_title",
help="The title of the PR that we are peeking at")
help="The title of the PR that we are checking")

parser.add_argument("icons_folder_path",
help="The path to the icons folder",
Expand All @@ -60,29 +65,10 @@ def get_check_icon_pr_args():
help="The path to the devicon.json",
action=PathResolverAction)

return parser.parse_args()

parser.add_argument("--base",
help="Commit to diff against to find the PR's changes (HEAD^1 in a PR merge commit)",
default="HEAD^1")

def get_release_message_args():
"""
Get the commandline arguments for get_release_message.py.
"""
parser = ArgumentParser(description="Create a text containing the icons and features added since last release.")
parser.add_argument("token",
help="The GitHub token to access the GitHub REST API.")
return parser.parse_args()


def get_in_develop_labeler_args():
"""
Get the commandline arguments for in_develop_labeler.py.
"""
parser = ArgumentParser(description="Parse the PR body to find the issue(s) we are labelling.")
parser.add_argument("token",
help="The GitHub token to access the GitHub REST API.",
type=str)

parser.add_argument("pr_num",
help="The PR's number",
type=str)
return parser.parse_args()
23 changes: 0 additions & 23 deletions .github/scripts/build_assets/filehandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,26 +236,3 @@ def write_to_file(path: str, value):
file.write(value)

# --- NOT USED CURRENTLY ---
def get_added_modified_svgs(files_added_json_path: str,
files_modified_json_path: str):
"""
Get the svgs added and modified from the files_changed_json_path.
:param: files_added_json_path, the path to the files_added.json created by the gh-action-get-changed-files@2.1.4
:param: files_modified_json_path, the path to the files_modified.json created by the gh-action-get-changed-files@2.1.4
:return: a list of the svg file paths that were added/modified in this pr as Path. It will only return icons in /icons path (see https://github.com/devicons/devicon/issues/505)
"""
files_added = get_json_file_content(files_added_json_path)
files_modified = get_json_file_content(files_modified_json_path)

svgs = []
for file in files_added:
path = Path(file)
if path.suffix.lower() == ".svg" and path.as_posix().lower().startswith('icons/'):
svgs.append(path)

for file in files_modified:
path = Path(file)
if path.suffix.lower() == ".svg" and path.as_posix().lower().startswith('icons/'):
svgs.append(path)

return svgs
Loading