Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contributors readme action s yaac8dj hl #515

Open
wants to merge 104 commits into
base: readme-ptbr
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
8ecc91b
Update README.md
elisemoe Jun 15, 2022
c5bb016
Update README.md
mlarasusan Jun 15, 2022
50386e8
Update README.md
mlarasusan Jun 15, 2022
92734eb
Update README.md
elisemoe Jun 15, 2022
f097b94
Translations to the `README.md`
pedrolacerda Jun 15, 2022
e4a6789
Add link to the GitHub Community portal
pedrolacerda Jun 15, 2022
6a6a2df
Update README.md
elisemoe Jun 15, 2022
5b55600
Update README.md
elisemoe Jun 15, 2022
ddf748a
Update README.md
elisemoe Jun 15, 2022
75479ce
Fix rendering error in <SEU-USUARIO>
pedrolacerda Jun 15, 2022
330373e
Update README.md
juanpflores Jun 15, 2022
9f4965e
Adding winners
lasr21 Jun 15, 2022
5b2f942
Workflow for listing past winners
lasr21 Jun 15, 2022
368bfc7
Fix typo on the workflow name
pedrolacerda Jun 15, 2022
f9bfb9a
contrib-readme-action has updated readme
github-actions[bot] Jun 15, 2022
91d39c6
Merge pull request #8 from education/contributors-readme-action-DxW-o…
lasr21 Jun 15, 2022
e69188e
Translate `quote`
pedrolacerda Jun 15, 2022
7fe0b1b
Fix typo in Pao > Pão
pedrolacerda Jun 15, 2022
895c9ee
add validation for only 1 time
lasr21 Jun 15, 2022
f30b22a
fix characterLimits quote
lasr21 Jun 15, 2022
209ec05
Add social media links
pedrolacerda Jun 15, 2022
ca488b8
Create lasrtest.md
lasrtest Jun 15, 2022
e6de435
Merge pull request #15 from lasrtest/patch-1
lasr21 Jun 15, 2022
fed2b2e
Winners
lasr21 Jun 15, 2022
f0c8b8f
Add website support
wgcv Jun 15, 2022
fbef7ac
Update contributors.txt
lasr21 Jun 15, 2022
643cb5d
contrib-readme-action has updated readme
github-education Jun 15, 2022
22ed933
Merge pull request #16 from education/contributors-readme-action-BCJ3…
lasr21 Jun 15, 2022
74d8f64
contrib-readme-action has updated readme
github-education Jun 15, 2022
8040b0f
Merge pull request #17 from education/contributors-readme-action-mWq-…
lasr21 Jun 15, 2022
fa88eff
Add some format
wgcv Jun 15, 2022
fcf10cb
fix contributors
lasr21 Jun 16, 2022
d472017
add new contributors
lasr21 Jun 16, 2022
16501e2
contrib-readme-action has updated readme
github-education Jun 16, 2022
b0b804e
Merge pull request #19 from education/contributors-readme-action-9IwN…
lasr21 Jun 16, 2022
499c1aa
Update winners.yml
lasr21 Jun 16, 2022
351bfa8
Add baseurl
wgcv Jun 16, 2022
2181e34
Delete data/lasrtest directory
lasr21 Jun 16, 2022
cd91d2d
ignore cache
wgcv Jun 16, 2022
ee7a8c8
Fix messages
wgcv Jun 16, 2022
84c0049
quick fix validation contributor
lasr21 Jun 16, 2022
ecdaf35
fix validation
lasr21 Jun 16, 2022
196a843
Fix Facebook share button
wgcv Jun 16, 2022
ce5764a
Fix src adding baseurl
wgcv Jun 16, 2022
29e89a4
Add url
wgcv Jun 16, 2022
da715e8
Remove name and add quote
wgcv Jun 16, 2022
b51d5cf
Fix url
wgcv Jun 16, 2022
6362ad9
fix
lasr21 Jun 16, 2022
a386918
remove timezone
wgcv Jun 16, 2022
b5c6bfe
change GitHub-user to user
wgcv Jun 16, 2022
5dbfc7d
chore: translated message button to portuguese
euaaron Jun 16, 2022
063aa1f
new layout
lasr21 Jun 16, 2022
44e2bdf
new layout
lasr21 Jun 16, 2022
9e9e993
Update ze.md
lasr21 Jun 16, 2022
c17cc40
Update test.md
lasr21 Jun 16, 2022
724b650
Update message.html
lasr21 Jun 16, 2022
d255d6c
fix path
lasr21 Jun 16, 2022
a694d4b
Add date validation
wgcv Jun 16, 2022
f16eabb
Remove data md (is crashing)
wgcv Jun 16, 2022
4a8d633
remove timezone in elisemoe.md
wgcv Jun 16, 2022
99e1bc4
Update file-validator.js
wgcv Jun 16, 2022
0eca035
Update file-validator.js
wgcv Jun 16, 2022
da99612
Update file-validator.js
wgcv Jun 16, 2022
5070f1f
Update file-validator.js
wgcv Jun 16, 2022
536565e
Update file-validator.js
wgcv Jun 16, 2022
da2ea91
Update file-validator.js
wgcv Jun 16, 2022
c4062e6
Update file-validator.js
wgcv Jun 16, 2022
700ff4d
Update file-validator.js
wgcv Jun 16, 2022
4e51284
Update file-validator.js
wgcv Jun 16, 2022
299e981
Update elisemoe.md
wgcv Jun 16, 2022
d59cecf
Update test.md
wgcv Jun 16, 2022
e5e287d
fix doble validation
lasr21 Jun 16, 2022
280f124
fix validation
lasr21 Jun 16, 2022
d5c1a86
fix validation
lasr21 Jun 16, 2022
dd4ccb3
fix validation
lasr21 Jun 16, 2022
1a7472c
fix validation
lasr21 Jun 16, 2022
9f9160f
fix validation
lasr21 Jun 16, 2022
17d07b4
fix validation
lasr21 Jun 16, 2022
cfe19e6
fix validation
lasr21 Jun 16, 2022
3fd22e3
fix validation
lasr21 Jun 16, 2022
e01ed22
Update README.md
lasr21 Jun 16, 2022
a7edaf6
Delete ze.md
wgcv Jun 16, 2022
eaa014b
Delete test.md
wgcv Jun 16, 2022
974601f
Update README.md
wgcv Jun 16, 2022
096614b
Create wgcv.md
wgcv Jun 16, 2022
0781615
Merge pull request #54 from education/wgcv-patch-3
wgcv Jun 16, 2022
1c4706e
Delete elisemoe.md
wgcv Jun 16, 2022
9e199c7
Update file-validator.js
wgcv Jun 16, 2022
660528a
Merge branch 'main' into dev
wgcv Jun 16, 2022
a7860fd
Update message.html
wgcv Jun 16, 2022
7651d59
Merge pull request #55 from education/dev
wgcv Jun 16, 2022
e1922e4
Update README.md
lasr21 Jun 16, 2022
acfd38d
Update README.md
wgcv Jun 16, 2022
768bc62
Create CarlosConradoB
CaduConrado Jun 16, 2022
5eada2a
Merge pull request #1 from CarlosConradoB/CarlosConradoB-patch-1
CaduConrado Jun 16, 2022
3a838d9
Delete CarlosConradoB
CaduConrado Jun 16, 2022
6af481a
Create CarlosConradoB.md
CaduConrado Jun 16, 2022
06a9096
Update README.md
mlarasusan Jun 16, 2022
3923917
Update index.js
juanpflores Jun 16, 2022
794440b
Create Joao-Victor-RVG.md
Joao-Victor-RVG Jun 16, 2022
ccfb559
Rename Joao-Victor-RVG.md to _messages/Joao-Victor-RVG.md
Joao-Victor-RVG Jun 16, 2022
29c79ef
Merge pull request #80 from CarlosConradoB/main
pachicodes Jun 16, 2022
19efefa
Merge pull request #83 from Joao-Victor-RVG/main
pachicodes Jun 16, 2022
1ea4961
contrib-readme-action has updated readme
github-education Jun 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This is a basic workflow to help you get started with Actions. It's copied from the GitHub Graduation Workflow.

name: Pa de Queijo Helper
name: Pão de Queijo Helper

# Controls when the action will run.
on:
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/src/app/file-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ const yaml = require('yaml')
const md = require('markdown-it')

const pullAuthor = actionEvent.pull.user.login
const expectedPath = `data/${pullAuthor}`
const authors1 = `data/authors.txt`
const characterLimits = { quote: 140 }
const expectedPath = `_messages`
const characterLimits = { user: 28, time: 30, quote: 280 }

class FileVaidator {
constructor() {
Expand Down Expand Up @@ -41,8 +40,18 @@ class FileVaidator {
/*if(meta.github_user !== pullAuthor) {
errors.push(`*The yaml content in \`${expectedPath}/${pullAuthor}.md\` must contain your github username*`)
}*/

for(const key of [ "quote" ]) {
for(const key of [ "time" ]) {
if(!meta["time"]) {
errors.push(`*The attribute time is required in \`${expectedPath}/${pullAuthor}.md\`*`)
}
if(!(/(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})$/.test(String(meta["time"])))){
errors.push(`*The attribute time need to be in the format: YYYY-MM-DD HH:MM:SS. For example: 2022-06-15 17:01:10*`)
}
if (!(new Date(String(meta["time"])) < new Date())){
errors.push(`*You can't a time in the future.*`)
}
}
for(const key of [ "user", "time", "quote"]) {
if(!meta[key]) {
errors.push(`*The attribute \`${key}\` is required in \`${expectedPath}/${pullAuthor}.md\`*`)
} else if(meta[key].length > characterLimits[key]) {
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/src/contributors.txt
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Loading