mirror of
https://github.com/tiennm99/awesome-advent-of-code.git
synced 2026-10-16 08:14:40 +00:00
2 files changed
+10
-3
No files matched your search
@@ -20,7 +20,9 @@ let octokit
|
||||
await core.group('Fetching repositories & updating lines...', async () => {
|
||||
for (const repo of repos) {
|
||||
const line = await generateLine(repo.repoStr)
|
||||
if (shouldUpdate(lines[repo.index], line)) {
|
||||
if (otherDomain(lines[repo.index])) {
|
||||
core.info(`...line refers to non-GH domain: '${lines[repo.index]}'`)
|
||||
} else if (shouldUpdate(lines[repo.index], line)) {
|
||||
lines[repo.index] = line
|
||||
core.info(`...updated line: '${line}'`)
|
||||
} else {
|
||||
@@ -87,3 +89,8 @@ function shouldUpdate(oldLine, newLine) {
|
||||
!badDateReg.test(newLine) ||
|
||||
badDateReg.test(oldLine);
|
||||
}
|
||||
|
||||
function otherDomain(line) {
|
||||
return line.indexOf("gitlab.com") !== -1 ||
|
||||
line.indexOf("gist.github.com") !== -1;
|
||||
}
|
||||
@@ -373,7 +373,7 @@ Read [CONTRIBUTING.md](/CONTRIBUTING.md) to learn how to add your own repos.
|
||||
|
||||
*Solutions to AoC in HolyC (TempleOS).*
|
||||
|
||||
* [tsoding/aoc-2021](https://github.com/tsoding/aoc-2021) 
|
||||
* [tsoding/aoc-2021](https://gitlab.com/tsoding/aoc-2021)
|
||||
|
||||
#### Idris
|
||||
|
||||
@@ -602,7 +602,7 @@ Read [CONTRIBUTING.md](/CONTRIBUTING.md) to learn how to add your own repos.
|
||||
* [plannapus/Advent_of_Code](https://github.com/plannapus/Advent_of_Code) 
|
||||
* [rrrlw/advent-of-code](https://github.com/rrrlw/advent-of-code) 
|
||||
* [bigfarts/aoc2021]
|
||||
|
||||
|
||||
#### Racket
|
||||
|
||||
*Solutions to AoC in Racket.*
|
||||
|
||||
Reference in new issue
Block a user