-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixed re-encoding the html encoded values
- Loading branch information
Showing
4 changed files
with
16 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ jobs: | |
name: A job to automate contrib in readme | ||
steps: | ||
- name: Contribute List | ||
uses: akhilmhdh/[email protected].5 | ||
uses: akhilmhdh/[email protected].6 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
``` | ||
|
@@ -44,7 +44,7 @@ That's it! | |
To add it to your to your existing workflow, append this to your current `.yml` workflow script. | ||
|
||
```yml | ||
- uses: akhilmhdh/[email protected].5 | ||
- uses: akhilmhdh/[email protected].6 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
``` | ||
|
@@ -125,23 +125,23 @@ You can add these optional parameters in your action script to modify the appear | |
|
||
```yml | ||
- name: Contribute List | ||
uses: akhilmhdh/[email protected].5 | ||
uses: akhilmhdh/[email protected].6 | ||
with: | ||
image_size: 100 | ||
``` | ||
|
||
| Option | Default Value | Description | Required | | ||
| ----------------------------- | ---------------------------------------- | --------------------------------------------------------------- | -------- | | ||
| image_size | 100(px) | Size of square images in the stack | false | | ||
| readme_path | README.md | Path of the readme file you want to update | false | | ||
| use_username | false | To use username instead of full name | false | | ||
| columns_per_row | 6 | Number of columns in a row | false | | ||
| collaborators | direct | Type of collaborators options: all/direct/outside | false | | ||
| Option | Default Value | Description | Required | | ||
| ----------------------------- | ----------------------------------------------------------- | --------------------------------------------------------------- | -------- | | ||
| image_size | 100(px) | Size of square images in the stack | false | | ||
| readme_path | README.md | Path of the readme file you want to update | false | | ||
| use_username | false | To use username instead of full name | false | | ||
| columns_per_row | 6 | Number of columns in a row | false | | ||
| collaborators | direct | Type of collaborators options: all/direct/outside | false | | ||
| commit_message | docs(contributor): contrib-readme-action has updated readme | Commit message of the github action | false | | ||
| committer_username | "" | Username on commit | false | | ||
| committer_email | "" | Email id of committer | false | | ||
| committer_username | "" | Username on commit | false | | ||
| committer_email | "" | Email id of committer | false | | ||
| pr_title_on_protected | docs(contributor): contributors readme action update | Title of the PR that will be created if the branch is protected | false | | ||
| auto_detect_branch_protection | true | To override auto protected branch detection | false | | ||
| auto_detect_branch_protection | true | To override auto protected branch detection | false | | ||
|
||
> committer_username and committer_email both must be provided to use as a replacement to GH action committer | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
export const htmlEncoding = string => { | ||
return String(string) | ||
.replace(/&/g, '&') | ||
.replace(/>/g, '>') | ||
.replace(/</g, '<') | ||
.replace(/"/g, '"'); | ||
return String(string).replace(/>/g, '>').replace(/</g, '<'); | ||
}; |