Skip to content

Commit

Permalink
Remove Hacktoberfest consent from ISSUE TEMPLATES
Browse files Browse the repository at this point in the history
  • Loading branch information
vansh-codes committed Nov 1, 2024
1 parent c24d11a commit 65f8c91
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ body:
- label: "I agree to follow this project's Code of Conduct"
required: true
- label: "I'm a GSSoC'24 Extd Contributor"
- label: "I'm a Hacktoberfest'24 registered Contributor"
# - label: "I'm a Hacktoberfest'24 registered Contributor"
- label: "I want to work on this issue"
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ body:
- label: "I agree to follow this project's Code of Conduct"
required: true
- label: "I'm GSSOC'24 Extd registered Contributor"
- label: "I'm Hacktoberfest registered Contributor"
# - label: "I'm Hacktoberfest registered Contributor"
- label: "I want to work on this documentation issue"
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ body:
- label: "I agree to follow this project's Code of Conduct"
required: true
- label: "I'm GSSOC'24 Extd registered Contributor"
- label: "I'm Hacktoberfest registered Contributor"
# - label: "I'm Hacktoberfest registered Contributor"
- label: "I want to work on this issue"
60 changes: 30 additions & 30 deletions .github/workflows/issue-reminder.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@

name: 'open-issue reminder'
# name: 'open-issue reminder'

on:
schedule:
- cron: '15 4 * * *'
jobs:
welcome:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
# on:
# schedule:
# - cron: '15 4 * * *'
# jobs:
# welcome:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2

- name: Run script
uses: actions/github-script@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { data: issues } = await github.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
state: 'open'
});
for (const issue of issues) {
const issueComment = `Hi there! This issue is still open. We are looking forward to your response.
Assignees: ${issue.assignees.map(assignee => '@' + assignee.login).join(', ') || 'None'}`;
await github.issues.createComment({
issue_number: issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: issueComment
});
}
# - name: Run script
# uses: actions/github-script@v4
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# script: |
# const { data: issues } = await github.issues.listForRepo({
# owner: context.repo.owner,
# repo: context.repo.repo,
# state: 'open'
# });
# for (const issue of issues) {
# const issueComment = `Hi there! This issue is still open. We are looking forward to your response.
# Assignees: ${issue.assignees.map(assignee => '@' + assignee.login).join(', ') || 'None'}`;
# await github.issues.createComment({
# issue_number: issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: issueComment
# });
# }
25 changes: 23 additions & 2 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,29 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ['avatars.githubusercontent.com'],
},
domains: ["avatars.githubusercontent.com"],
},
async headers() {
return [
{
source: "/api/:path*",
headers: [
{
key: "Access-Control-Allow-Origin",
value: "*", // Or specify your allowed origin
},
{
key: "Access-Control-Allow-Methods",
value: "GET, POST, PUT, DELETE, OPTIONS",
},
{
key: "Access-Control-Allow-Headers",
value: "Content-Type, Authorization",
},
],
},
];
},
};

export default nextConfig;

0 comments on commit 65f8c91

Please sign in to comment.