-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #240 from george-gca/prettier
Adicionado formatador Prettier
- Loading branch information
Showing
31 changed files
with
1,413 additions
and
1,644 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
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
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
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,33 +1,33 @@ | ||
name: Check for linked issue | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited] | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
check-linked-issue: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check if PR has linked issue | ||
id: check_issue | ||
run: | | ||
issue_pattern='#[0-9]+' | ||
if [[ "${{ github.event.pull_request.body }}" =~ $issue_pattern ]]; then | ||
echo "Issue linked in PR description." | ||
else | ||
echo "::error::No issue linked! Please link to an issue using '#<issue_number>' or create a new issue." | ||
exit 1 | ||
fi | ||
- name: Post comment on PR (if no issue linked) | ||
if: failure() | ||
uses: actions-ecosystem/action-create-comment@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
number: ${{ github.event.pull_request.number }} | ||
body: | | ||
⚠️ Poxa @${{ github.actor }}, parece que não temos nenhuma issue vinculada a este PR. Para facilitar para todas as pessoas contribuidoras e mantenedoras desse projeto, além da organização, por favor, vincule uma issue a esse PR incluindo #<número_da_issue> na descrição do PR ou crie uma nova issue e atualize o PR. Se precisar de qualquer ajuda para isso, pode chamar a @levxyca 💙🫰🏻 | ||
name: Check for linked issue | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited] | ||
|
||
permissions: | ||
pull-requests: write | ||
|
||
jobs: | ||
check-linked-issue: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check if PR has linked issue | ||
id: check_issue | ||
run: | | ||
issue_pattern='#[0-9]+' | ||
if [[ "${{ github.event.pull_request.body }}" =~ $issue_pattern ]]; then | ||
echo "Issue linked in PR description." | ||
else | ||
echo "::error::No issue linked! Please link to an issue using '#<issue_number>' or create a new issue." | ||
exit 1 | ||
fi | ||
- name: Post comment on PR (if no issue linked) | ||
if: failure() | ||
uses: actions-ecosystem/action-create-comment@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
number: ${{ github.event.pull_request.number }} | ||
body: | | ||
⚠️ Poxa @${{ github.actor }}, parece que não temos nenhuma issue vinculada a este PR. Para facilitar para todas as pessoas contribuidoras e mantenedoras desse projeto, além da organização, por favor, vincule uma issue a esse PR incluindo #<número_da_issue> na descrição do PR ou crie uma nova issue e atualize o PR. Se precisar de qualquer ajuda para isso, pode chamar a @levxyca 💙🫰🏻 |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Prettier | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
format: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
fetch-depth: 0 | ||
|
||
- name: Run Prettier | ||
uses: AbdulRehman-1/pr-prettier@initial | ||
with: | ||
only_changed: true | ||
prettier_options: --write **/*.{css,html,js,json,md,scss,yaml,yml} |
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
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
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
**/*.map | ||
**/*.min.css | ||
**/*.min.js | ||
.jekyll-cache/ | ||
.mypy_cache/ |
Oops, something went wrong.