Skip to content

Commit daa7127

Browse files
authored
Merge pull request #3 from AxelPCG/teste_automacao
Teste automacao
2 parents 997056c + 09bf53b commit daa7127

File tree

9 files changed

+974
-141
lines changed

9 files changed

+974
-141
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
EXCLUDED: ${{ secrets.EXCLUDED }}
4444
EXCLUDED_LANGS: ${{ secrets.EXCLUDED_LANGS }}
45-
EXCLUDE_FORKED_REPOS: true
45+
EXCLUDE_FORKED_REPOS: false
4646
GIT_EMAILS: ${{ secrets.GIT_EMAILS }}
4747

4848
# Commit all changed files to the repository

generate_images.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ async def generate_overview(s: Stats) -> None:
4141
output = re.sub("{{ contributions }}", f"{await s.total_contributions:,}", output)
4242
output = re.sub("{{ views }}", f"{await s.views:,}", output)
4343
output = re.sub("{{ repos }}", f"{len(await s.repos):,}", output)
44-
commits = await s.total_commits()
45-
print(f"Total commits: {commits}")
46-
output = re.sub("{{ commits }}", f"{commits:,}", output) # Adicionado
47-
output = re.sub("{{ prs }}", f"{await s.total_prs():,}", output) # Adicionado
44+
commits = await s.total_commits
45+
output = re.sub("{{ commits }}", f"{commits:,}", output)
46+
output = re.sub("{{ prs }}", f"{await s.prs:,}", output)
47+
output = re.sub("{{ issues }}", f"{await s.issues:,}", output)
4848

4949
generate_output_folder()
5050
with open("generated/overview.svg", "w") as f:
@@ -124,7 +124,7 @@ async def main() -> None:
124124
)
125125
emails = os.getenv("GIT_EMAILS")
126126
email_list = (
127-
{x.strip() for x in emails.split(",")} if emails else None
127+
list({x.strip() for x in emails.split(",")}) if emails else None
128128
)
129129

130130
async with aiohttp.ClientSession() as session:
@@ -135,8 +135,8 @@ async def main() -> None:
135135
exclude_repos=excluded_repos,
136136
exclude_langs=excluded_langs,
137137
ignore_forked_repos=ignore_forked_repos,
138+
emails=email_list,
138139
)
139-
s._emails = email_list # Add this line
140140
await asyncio.gather(generate_languages(s), generate_overview(s))
141141

142142

generated/languages.svg

Lines changed: 24 additions & 24 deletions
Loading

generated/overview.svg

Lines changed: 9 additions & 7 deletions
Loading

0 commit comments

Comments
 (0)