Skip to content

Commit

Permalink
Hacktoberfest Kick Off (#211)
Browse files Browse the repository at this point in the history
* Add kick off event

* Test github issues

* Add hactoberfest tag

* test another label

* Final version

* List Hacktoberfest issues

* Add css to the filter
  • Loading branch information
bilgeyucel authored Sep 26, 2023
1 parent 1a79a12 commit ed54845
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions api/github-issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ export default async function githubIssues(request, response) {
response.status(500).send({ message: "Github access token not set" });
}

const repos = ["deepset-ai/trial-repo", "deepset-ai/haystack-home"];
const repos = ["deepset-ai/haystack"];

try {
const fetchPromises = repos.map(async (repo) => {
const res = await fetch(
`https://api.github.com/repos/${repo}/issues?state=all`,
`https://api.github.com/repos/${repo}/issues?state=all&labels=hacktoberfest`,
{
method: "GET",
headers: {
Expand Down
2 changes: 1 addition & 1 deletion content/pages/hacktoberfest.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ hero:
image2: /images/hacktoberfest-2.png

comingSoon:
enabled: true
enabled: false
text: You will find eligible issues for Hacktoberfest 2023 here once the party starts, stay tuned! 🎉
button:
url: https://github.com/deepset-ai/haystack/contribute
Expand Down
7 changes: 5 additions & 2 deletions themes/haystack/assets/sass/components/_github-issues.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
gap: 0.5rem;
width: 100%;
margin-top: 2rem;
max-width: 1100px;
margin-left: auto;
margin-right: auto;

.issue {
width: 100%;
Expand Down Expand Up @@ -45,7 +48,7 @@
gap: 1rem;

@include lg {
width: 60%;
width: 70%;
flex-shrink: 0;
}
}
Expand Down Expand Up @@ -84,7 +87,7 @@

@include lg {
flex-wrap: nowrap;
width: 40%;
width: 30%;
padding-left: 1rem;
margin-top: 0;
}
Expand Down
3 changes: 3 additions & 0 deletions themes/haystack/assets/sass/pages/_grid-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@
justify-content: space-between;
align-items: center;
gap: 1rem;
max-width: 1100px;
margin-left: auto;
margin-right: auto;

.filters {
display: flex;
Expand Down
2 changes: 1 addition & 1 deletion themes/haystack/layouts/partials/github-issues-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
{{/* Repo */}}
const issueRepo = document.createElement("div");
issueRepo.classList.add("issue-repo");
issueRepo.innerHTML = `<span>[repo]</span> ${issue.repo}`;
issueRepo.innerHTML = `${issue.repo}`;
repoContainer.appendChild(issueRepo);

{{/* State */}}
Expand Down

1 comment on commit ed54845

@vercel
Copy link

@vercel vercel bot commented on ed54845 Sep 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.