Commit graph

140 commits

Author SHA1 Message Date
LitoMore 731386b408
Fix release action (#8776)
* Fix release action

* Fix typo
2023-06-12 03:50:52 +02:00
LitoMore c3c31f54cd
Autocloser: Specify state_reason when closing (#8718) 2023-06-04 07:14:30 +08:00
LitoMore bfdb2d7659
Autocloser: Fix issues API URL (#8716) 2023-06-03 02:39:26 +08:00
LitoMore 541fd43db1
Autocloser: Only trigger on opened & fix issue number param (#8714) 2023-06-03 02:32:53 +08:00
Alexandre Paradis 62284fb9c1
Add quote around the issue title in condition (#8713) 2023-06-03 02:12:51 +08:00
Alexandre Paradis efb661c24b
Proposal to autoclose Java requests (#8695)
Co-authored-by: LitoMore <LitoMore@users.noreply.github.com>
2023-06-03 01:49:41 +08:00
Álvaro Mondéjar fa6fcffdbb
Add more stop words to the potential duplicates action (#8683) 2023-05-25 09:34:13 -04:00
LitoMore 3c5db40103
Fix build script when publishing to npm (#8589) 2023-04-30 16:45:25 +02:00
renovate[bot] ef90d9c2ee
Update all dependencies (#8558)
* Update all dependencies

* Update Dockerfile

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-04-28 00:31:21 +02:00
Álvaro Mondéjar d8d024080a
Update deprecated set-output GHA syntax (#8331) 2023-02-09 20:18:10 +01:00
renovate[bot] 2753dc3b87
Update all dependencies (#8130)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-12-12 03:13:27 +01:00
Álvaro Mondéjar 1fa10346a2
Use <picture> blocks for GH theme images in README (#7983)
* Visual manual test on Github

* Replace all images

* Fix error

* Merge with develop

* Upgrade strip-gh-theme-links action
2022-11-27 12:46:23 +01:00
renovate[bot] a63fbf93bd
Update all dependencies (#8034)
* Update all dependencies

* Update svgo.config.js

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com>
2022-11-24 14:39:11 +01:00
Álvaro Mondéjar 128728769b
Pin release-action version to a previous hash (#7439) 2022-05-22 14:12:21 +02:00
Álvaro Mondéjar 0935b98d6b
Specify release action version with tag (#7406) 2022-05-11 12:35:59 +02:00
renovate[bot] 4f8cc1ce4a
Update all dependencies (#7397)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-09 13:17:22 +02:00
Álvaro Mondéjar 8596ddb72a
Upgrade strip-gh-theme-links action to v3 (#7389) 2022-05-07 22:46:03 +02:00
Álvaro Mondéjar 0823743d4b
Push tag manually in 'Publish Releases' workflow (#7342)
* Push tag manually in 'Publish Releases' workflow

* Use 'set -e' command
2022-04-18 05:56:17 -07:00
Álvaro Mondéjar 923b7fbc60
Automatically remove help wanted labels (#7228)
It could really confusing `help wanted` labels in closed issues.
2022-03-16 07:54:38 -07:00
Álvaro Mondéjar 7bea1d073b
Update remove-labels-gh-action version (#7202) 2022-03-08 12:11:12 +01:00
renovate[bot] ebbc9dea2a
Update all dependencies (#7146)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-15 16:09:00 -08:00
Álvaro Mondéjar 47e4a69724
Fix error in project auto-unassigment on CI (#7139) 2022-02-09 22:33:26 +01:00
Álvaro Mondéjar 6eee268a48
Fix project auto-assignment closing not merged PRs (#7128)
* Fix project assignment on closed PRs not merged

* Minor change

* Don't execute labeler on closed PRs

* Fix column name
2022-02-07 10:24:48 +01:00
Álvaro Mondéjar 4e502c5742
Update Node.js to v16 in CI workflows (#7127) 2022-02-04 06:24:11 -08:00
Álvaro Mondéjar ec225ea84e
Exclude "project" word discovering potential duplicates (#7105) 2022-01-28 09:54:36 -08:00
Álvaro Mondéjar 8185c5d974
Update "Potential Duplicates" reporter markup (#7074) 2022-01-19 06:17:27 -08:00
Alexandre Paradis a253682eb8
Add some icons in Readme (#4816)
* Add some icons in Readme

* Align icons at left

* Add some more icons

* Remove inline image

- Use relative icons path

* Format Third Party Extensions
 as a table

* force website build

* added readme-icons foler with icons for the readme.md file, as well as icons for light and dark modes in the readme.md titles

* restored corrupted svgs for readme-icons

* moved the icons to asset/readme, added icons for Drawio, Hexo and Jetpack Compose

* - Use `develop` branch absolutified links for README images
- Strip dark image theme links before publish to Github and npm
- Clean third party extensions table

* Commit to tag (ony inside master branch)

* Fix differences in README

* Reintroduce link in README logo

* Drop uneeded newline from README

* Fix error in README

* Add newlines for SVGs

* Newlines for all SVGs

* Reuse black icons from library

* Commit using Github Actions bot

* Reuse diagrams.net library icon for white version

* Fix comment

* Bump 'strip-gh-theme-links' action to v2

* removed assets/readme icons

* Test with 'fill=white'

* Test with 'style="fill:white"'

* added filter:invert(1) to PHP, TS, Simple Icons and Blender

* added readme-icons test, changed the name of light icons in assets/readme

* reloaded icons in Readme

* fixed typo in iconsPath for readme-icons test

* fixed typo on the darkiconsPath resolution

* restored absolute paths

* minimized the white icons on assets/readme

* restored test scripts

* Apply changes

* Disable color output testing in CI

* Revert latest change

Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com>
Co-authored-by: Jorge Amado Soria Ramirez <darksoul.uci@gmail.com>
2022-01-09 15:04:36 -06:00
Álvaro Mondéjar 1be629bf6e
Correctly add new icon labeled pull requests to Priority 2 column (#6964) 2021-12-27 11:37:18 -08:00
Álvaro Mondéjar ed4c29f7b6
Automatically update milestone (SVG count) in README (#6951)
* Automatically update milestone (SVG count) in README

* Use updateRange variale

* Rewrite 2 lines

* Simplify code

* Format new file

* Fix error in script

* Apply suggested changes
2021-12-09 17:02:58 -08:00
Eric Cornelissen cfb81045db
Fix publish workflow (#6803)
* Run linters after building code in sanity check for publishing

* Prettier ignore generated files
2021-10-31 11:38:10 +01:00
Sachin Raja e232399271
Remove jest cache in CI (#6693)
* remove jest cache in ci

* remove jest cache from publish workflow

* remove jest config file and cache from gitignore
2021-10-26 10:59:11 +02:00
Eric Cornelissen e0df400494
Setup prettier (#6758)
* Add prettier as a dependency

* Add format command and configure prettier

I opted for single quotes to be in line with other simple-icons projects

I ignore the data file because changing its formatting is quite a bit of
trouble for all open PRs.

* Run prettier

* Replace all functions by arrow functions

* Move prettier configuration to config file

Move it to a file so editors (and other software) can pick up on the
configuration. I went with .js because (a) it allows for comments and
(2) it seems most of the config files are in JavaScript already.

* Add prettier --check when running npm run lint (This adds it to the CI as well)

* Add husky and format changes before committing

* Use object destructuring for imports consistently

* Add shebang and fileoverview to jsonlint.js
2021-10-25 21:13:10 +02:00
renovate[bot] 20e7c258aa
Update all dependencies (#6706)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-10-10 20:53:19 -07:00
Alexandre Paradis b7375ec336
Detect potential duplicated issues (#4817)
* Draft: Detect potential duplicated issues

* Change threshold for 0.7

- Remove confused emoji

* Reduce exclusion list

* Fixes from review

- Add newline before `jobs`
- Remove inline documentation
- Remove reactions
- Use proper sentence

* Use `|` symbol for comments

* Fix exclusion order

* Add some exclusions
2021-10-10 08:58:35 +01:00
Eric Cornelissen 039f4f4a20
Improve release workflow (#6646)
* Use PAT to avoid version bump commit problems due to branch protections

Following the instructions of stefanzweifel/git-auto-commit-action [1]
for pushing to branches with branch protections, this changes the create
release workflow to fetch the repo with a PAT (that must belong to an
admin for this to work). As a result, when pushing the version bump
commit, the required status checks are not required (provided the rules
are not applied to admins).

---
1. https://github.com/stefanzweifel/git-auto-commit-action#push-to-protected-branches

* Add warning to not add `on: push` to create release workflow

* Enforce that create-release isn'ttriggered by push events
2021-10-07 10:41:38 +02:00
Álvaro Mondéjar 59ca5214c9
Fix error in workflow file 2021-09-29 01:10:55 +02:00
Álvaro Mondéjar 3056f5e287
Auto assign pull requests to 'Priority 2' column (#6615)
* Auto assign pull requests to 'Priority 2' column

* Update 'pr-linked-issues-action' to v2
2021-09-29 01:03:14 +02:00
Álvaro Mondéjar 9292184b91
Get labels at runtime in assign-to-project workflow (#6612) 2021-09-27 20:03:19 +02:00
Álvaro Mondéjar 40108ff5cb
Fix workflow file syntax error 2021-09-27 18:21:56 +02:00
Álvaro Mondéjar 8d2e473e39
Fix workflow file syntax error 2021-09-27 18:13:35 +02:00
Álvaro Mondéjar 68a3b70b37
Synchronize 'add-labels' and 'auto-assign-to-project' workflows (#6607) 2021-09-27 18:02:06 +02:00
Alexandre Paradis e881930b79
Auto assign to project workflow - Take 4
* Auto assign to project workflow

* Switch to GITHUB_TOKEN
2021-09-27 16:57:34 +02:00
renovate[bot] 466b58f6fe
Update all dependencies (#6603)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-09-27 10:02:10 +02:00
Eric Cornelissen 91a9458206
Unpin kceb/git-message-action (#6482) 2021-09-05 14:55:36 -07:00
Eric Cornelissen f9e8ecb777
Upgrade git-message-action from v1 to v1.2.0 (#6424) 2021-08-29 09:59:33 -07:00
LitoMore 8283daf05a
Drop package-lock.json (#6179)
* Drop `package-lock.json`

* Drop lockfile related code

* Drop lockfile maintenance configurations
2021-08-23 19:21:03 +02:00
Jan N Rose 5fc74c67f3
Remove executable flag from file mode (#6185)
* Remove executable flag from file mode

Affected: dgraph, django, homebrew, pagekit, uikit

* Add lint step to CI to reject executable icons

Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
2021-08-04 10:23:20 +02:00
Eric Cornelissen 2c11b6fc98
Fix the release body of GitHub releases created by publish.yml (#6071) 2021-07-03 11:34:48 +02:00
Eric Cornelissen a95ad430a3
Improve CI config: caching & refactoring (#5912)
* Set up caching jest cache for tests in CI

Use actions/cache to cache the jest cache between runs. The cache will
be invalided if the package-lock.json file is updated OR after 7
days [1]. The cache directory for jest is now also configured to be in a
directory called ".jestcache" at the root of this project. This
directory will be ignored by git due to its addition to the .gitignore.

--
1. https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy

* Trigger jest cache in CI

* Include date in cache key

This way the cache is invalidated very day

* Add name for caching Jest's cache step

* Demonstrate test failure with cache enabled

* Revert ff915d4660

* Cache dependencies

* Update Jest cache configuration

* Refactor and use Jest cache in Publish workfow

- Refactor out the duplicated sanity check in the publish workflow into
  a separate, depended upon, job.
- Use the Jest cache in the Publish workflow.

* Update linter job in CI to just run `npm run lint`

... whereas previously it ran each linter separately. This avoids having
to update the workflow file if a new linter is added (or a linter is
removed).

* Use run_number instead of date for jest cache in CI

* Simplify GitHub release publish job
2021-06-29 12:07:50 +02:00
Raymond Nook 18789ef9e6
Update create-release.yml (#6012) 2021-06-24 12:14:49 +02:00
Eric Cornelissen 2d819e57d5 Add workflow_dispatch to Create Release Pull Request workflow
Add the `workflow_dispatch` trigger to the Create Release Pull Request
workflow. This will allow us to more easily trigger the release Pull
Request if either 1) the scheduled run failed for whatever reason or 2)
an extra release is needed as per the DISCLAIMER.md.

You can read more about `workflow_dispatch` in the GitHub docs at:
https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
2021-06-15 23:50:14 +02:00
Eric Cornelissen c368b14e62
Remove (old) website source files (#5553)
* Remove files directly related to the website

Remove all the files directly related to the Jekyll-based website in
this repository. This includes the HTML, CSS and JS for the website, the
assets that can be found in the images/ folder, Jekyll-related files
(_config.yml, Gemfile, Gemfile.lock) and the CNAME file.

* Remove website-related configurations

Remove website-related files from ignore files, update the EditorConfig
configuration to remove any mention of website files, and update
.gitattributes to omit removed files.

* Update issue templates

Remove the issue templates for issues regarding the website and replace
it with a issue templates configuration file [1] that provides a link to
a the equivalent issue template in the simple-icons-website repository.

--
1. https://docs.github.com/en/github/building-a-strong-community/configuring-issue-templates-for-your-repository


* Remove building website from verify workflow

* Remove mentions of website from Contributing Guidelines

* Remove mention of GitPod

I believe the main advantage of GitPod was that it allows you to preview
a contribution in the context of the website. Now that the website is no
longer in the repository this is not a thing anymore (unless someone
can configure GitPod to pull in the website from its repo), so I removed
any mention of it.

I'm open to reverting this change if contributors still want to use
GitPod.

* Add CI job for building the NodeJS package
2021-05-29 18:00:40 +02:00
Eric Cornelissen 153a029c25
Restructure the scripts/ directory (#5546)
* Restructure scripts/ directory

And update references to this scripts everywhere.

* Update names of file-level constants in bump-version.js

* Normalize quotes between all scripts

* Move "create-release.yml" scripts to scripts/release

* Move slugs table script to scripts/release

* Update relative path logic in update-slugs-table.js
2021-05-07 19:55:06 +02:00
Eric Cornelissen e049e1d5a5
Auto update CDN URLs in README.md in release PR (#5545)
* Add script to bump major version in README

On lines 29-32, we could alternatively use `replaceAll`, I opted not to
as it is not yet(?) part of an LTS release of NodeJS.

* Bump CDN version in README automatically for new releases

* Rename "bump-cdn-version.js" to "update-cdn-urls.js"

* Update names of file-level constants in update-cdn-urls.js

* Rename workflow setp for updating CDN URLs

* Rename packageJsonFile constant in update-cdn-urls

* Remove semver dependency

* Generalize update-cdn-urls script
2021-05-05 23:29:49 +02:00
renovate[bot] 92a049441b
Update all dependencies (#5595) 2021-05-05 11:35:03 +01:00
renovate[bot] 8678c94ee1
Update all dependencies (#5484)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-04-19 19:41:01 +02:00
Eric Cornelissen d96126dca3
Update workflow names (#5421)
* Update workflow names

Most importantly gives unique names to `create-release.yml` and
`merge-release.yml`.

Other than that, this attempts to improve and unify the names of all
workflows.

* Update release workflow names

Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com>

Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com>
2021-04-07 20:15:11 -04:00
Eric Cornelissen e35244300b
Delete auto-assign-to-project.yml 2021-03-30 12:30:20 +02:00
Alexandre Paradis 837396d71b
Auto assign to project workflow (#5198) 2021-03-30 10:19:13 +01:00
renovate[bot] 5752c8d755
Update all dependencies (#5199)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2021-03-08 09:34:23 +01:00
Eric Cornelissen 52a0c5b07b
Document slugs of brands (#5002) 2021-03-03 10:57:33 +00:00
Eric Cornelissen ef00aa292c Revert RELEASE_BODY to original
from c21487f4d1, but with double quotes.
2021-02-08 22:22:08 +01:00
Eric Cornelissen 7181ea0b31 Revert 008d289f69
See also:
- bfe305f6c4
- https://github.com/simple-icons/simple-icons/pull/4418
2021-01-26 14:37:54 +01:00
Alexandre Paradis 008d289f69
Auto assign to project workflow (#4863)
* Auto assign to project workflow

* Remove redundant newline

* Update indentation in auto-assign-to-project.yml

Co-authored-by: Eric Cornelissen <ericornelissen@gmail.com>
2021-01-26 14:25:28 +01:00
Álvaro Mondéjar bc8ee013ed Use double quotes escaping release data in 'Publish' workflow 2021-01-24 23:01:41 +01:00
Álvaro Mondéjar 576a7fe135 Revert partially commands in 'Publish' workflow 2021-01-24 13:34:55 +01:00
Eric Cornelissen 46ff9685ef
Add "Publish" job for automated website updates (#4787) 2021-01-18 13:18:02 +01:00
Álvaro Mondéjar 70ead50f27 Replace 'echo' by 'printf' commands in Publish workflow 2021-01-17 15:36:56 +01:00
Eric Cornelissen a4ca74602f
Minor improvements (#4708)
* Remove .travis.yml reference from .gitattributes

* Minor refactoring of .svglintrc.js

- Remove unused variables
- Fix missing semi-colons
- Remove unneeded indentation

* Prevent error in clean command due to missing files

* Fix indentations

* Further improvements to Editorconfig and indentation

* Format YAML files

- Update indentation for array notation
- Normalize use of newlines
2021-01-15 21:47:00 +01:00
Álvaro Mondéjar 9817cc04c7
Escape 'Get commit message' step output in 'Publish' workflow (#4707)
* Escape 'Get commit message' step output in 'Publish' workflow
2021-01-11 16:47:29 +01:00
Eric Cornelissen d56a3d95c9
Add remote trigger for simple-icons-font to publishing workflow (#4533)
* Add "Publish" job for automated font releases

* Ensure NPM release before triggering simple-icons-font
2021-01-01 19:29:47 +01:00
Eric Cornelissen bfe305f6c4
Delete auto-assign-to-project.yml 2020-12-27 13:18:57 +01:00
Alexandre Paradis 08e218e6dd
Auto Assign PRs to priorisation project (#4418)
* Auto Assign PRs to priorisation project

* Fix from @mondeja review

* hyphen for job name

* Update token name
2020-12-23 22:10:40 +01:00
Álvaro Mondéjar 740dfba419
Formalize website Ruby dependencies and installation process (#4416)
* Formalize website Ruby dependencies and installation process

* Improve Contributing Guidelines

* Add Gemfile.lock to .gitattributes

* Use 'ruby/setup-ruby' caching strategy

* Add link to documentation of 'bundler-cache'
2020-12-22 21:11:57 +01:00
renovate[bot] 45d5687094
Update all dependencies (#4420)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-12-21 13:55:32 +01:00
Álvaro Mondéjar 6379ae7022
Synchronize workflow with 'simple-icons-font' repo (#4408) 2020-12-20 12:43:16 +01:00
Álvaro Mondéjar ee4e8e820b
Add workflow to remove outdated labels (#4366)
* Add workflow to remove outdated labels

* Use 'pull_request_target' event instead of 'pull_request'

* Remove 'pull_request_target' event comment

* Add 'pending' label to closed pulls
2020-12-16 20:59:24 +01:00
Eric Cornelissen f2dc528780 Fix repo-token in create-release.yml 2020-12-14 16:22:02 +01:00
Eric Cornelissen 92d2a3e678
Split release workflow into two workflows (#4348)
* Split release workflow into two

Split the release workflow - which so far created and helped merging
release PRs - into a workflow for reating the release PR and one for
helping to merge it.

* Simplify merge-release.yml if-condition
2020-12-14 14:06:01 +01:00
Eric Cornelissen c7221a0797
Use Personal Access token in release.yml (#4211)
Update release.yml, which is the workflow that creates release PRs and
merges them when approved, to use a Personal Access Token instead of
the standard GITHUB_TOKEN. I choose to name it RELEASE_TOKEN.

This change ensures that GitHub Actions workflows are triggered when
an action is performed by the Automated releases workflow. This is
needed because the publishing to NPM and the creation of a new GitHub
release should happen when there is a commit on `master`. If the release
PR is merged by the workflow using GITHUB_TOKEN, no GitHub Actions
workflows would be triggered.

Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com>
2020-12-02 12:19:05 +01:00
Álvaro Mondéjar 35c54c4efc
Update setup Ruby step in build job of verification workflow (#4213)
* Update setup ruby step in build job of verify workflow

* Update Ruby version in step name
2020-12-02 12:02:17 +01:00
Eric Cornelissen c21487f4d1
Switch from Travis CI to GitHub Actions (#4126)
* Add GitHub Actions workflow for verification

Add a GitHub Actions workflow file that does the verification of pushes
and pull requests. I.e., it runs the linters, runs the tests, and builds
the website. This workflow runs for all `pull_requests` and `push`es.

* Add GitHub Actions workflow for deployment

Add a GitHub Actions workflow file that does the deployment upon pushes
to master. Before actually deploying, the linters and test are ran, just
in case.

* Remove Travis CI configuration file

* Remove unnecessary quotes from existing workflows

* Add caching for "Build website" verification

* Update build badge in README

Co-authored-by: Álvaro Mondéjar <mondejar1994@gmail.com>
2020-11-28 11:34:36 +01:00
Álvaro Mondéjar 9f4a056e14
Skip release job for pull request review if pull request not contains 'release' label. (#4125) 2020-11-24 20:26:48 +01:00
Eric Cornelissen add3c5df70
Update labeler.yml (#3867)
Run labeler action only when a Pull Request is opened.
2020-11-16 10:36:58 +01:00
Eric Cornelissen 79a5a08dc2
Set up automated labeling (#3724) 2020-10-15 14:10:07 +02:00
Eric Cornelisesn 8b3b7a09aa Reduce number of PR review GH Actions runs 2020-07-14 21:09:04 +03:00
Eric Cornelisesn eb6c199f4e Run release action on PR reviews 2020-06-16 21:49:44 +03:00
Eric Cornelisesn 073688160b Set up automated releases with GitHub Actions 2020-04-24 14:54:23 +03:00
Eric Cornelissen 5ae7980cd9
Revert the introduction of a GitHub Actions to automatically label Pull Requests 2020-01-22 15:33:25 +02:00
Eric Cornelissen f357ac73f3 Use GitHub Actions to automatically label Pull Requests (#2420)
* Add workflow file to run PR labeler and corresponding configuration file

I'm using my personal fork of https://github.com/actions/labeler because 
I could not any labeling action that checked whether a file was added or 
changed (or removed).

* Fix typo in Labeler action configuration file
2020-01-22 00:53:26 +01:00