-
-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
1,465 additions
and
1,645 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Sort data files | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "assets/data/**" | ||
|
||
pull_request: | ||
paths: | ||
- "assets/data/**" | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
sort-data: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.head_ref }} | ||
|
||
- name: Get changed data files | ||
id: changed-data | ||
uses: tj-actions/changed-files@v45 | ||
with: | ||
files: assets/data/**.{json} | ||
|
||
- name: Sort data files | ||
if: steps.changed-data.outputs.any_changed == 'true' | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
env: | ||
ALL_CHANGED_FILES: ${{ steps.changed-data.outputs.all_changed_files }} | ||
run: | | ||
for file in $ALL_CHANGED_FILES; do | ||
python3 format_data.py -f $file | ||
done | ||
# commit all changed files back to the repository | ||
- uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: Sort data files |
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.