-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove Hacktoberfest consent from ISSUE TEMPLATES
- Loading branch information
1 parent
c24d11a
commit 65f8c91
Showing
5 changed files
with
56 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
# }); | ||
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |