Skip to content

Commit

Permalink
Merge pull request #56 from badging/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
adeyinkaoresanya authored Oct 7, 2024
2 parents 5fae27e + 07cfbda commit 247e247
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 39 deletions.
25 changes: 14 additions & 11 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
---
name: Bug report
about: Create a report to help us improve
title: 'Please provide a concise and informative title that summarizes the issue:
e.g. [BUG]<X> not working for <Y>'
title:
"Please provide a concise and informative title that summarizes the issue:
e.g. [BUG]<X> not working for <Y>"
labels: bug
assignees: ''

assignees: ""
---

**Describe the bug**
_A clear and concise description of what the bug is. Be specific and clear about what you were trying to do when the bug occurred._

**Steps To Reproduce**
_List the exact steps someone can take to reproduce the issue._

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -26,16 +27,18 @@ _If applicable, add screenshots/screen recordings to help explain your problem._

**Desktop specifications**
_Please complete the following information if applicable):_
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone specifications**
_Please complete the following information if applicable):_
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
• Provide any additional information that might help understand the issue. This could include links to relevant code snippets, configuration files, or other resources.
10 changes: 5 additions & 5 deletions .github/ISSUE_TEMPLATE/doc-feedback.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
name: Doc feedback
about: Help us improve the docs
title: 'Briefly describe the improvement you are requesting e.g. [DOC]: Improve clarity
of X'
labels: ''
assignees: ''

title:
"Briefly describe the improvement you are requesting e.g. [DOC]: Improve clarity
of X"
labels: ""
assignees: ""
---

**Description**
Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
name: Feature request
about: Suggest an idea for this project
title: 'Please provide a concise and informative title that summarizes the issue:
e.g. [FEATURE]: [Describe the desired feature]'
title:
"Please provide a concise and informative title that summarizes the issue:
e.g. [FEATURE]: [Describe the desired feature]"
labels: enhancement
assignees: ''

assignees: ""
---

**Is your feature request related to a problem? Please describe.**
Expand Down
16 changes: 8 additions & 8 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

**Summary:**

* Briefly describe the changes introduced in this PR.
* Make a reference to the related issue you are resolving.
- Briefly describe the changes introduced in this PR.
- Make a reference to the related issue you are resolving.

**Changes:**

* List the specific files modified and a short summary of the changes made.
* Use bullet points for clarity.
- List the specific files modified and a short summary of the changes made.
- Use bullet points for clarity.

**Testing:**

* Describe the steps taken to test the changes.
* Mention any automated tests added or modified.
- Describe the steps taken to test the changes.
- Mention any automated tests added or modified.

**Additional Notes:**

* Include any relevant information not covered above.
* Ask questions or provide guidance to reviewers.
- Include any relevant information not covered above.
- Ask questions or provide guidance to reviewers.
13 changes: 2 additions & 11 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,8 @@ const setupRoutes = (app) => {
app.get("/api/login", login);

//callbacks
if (process.env.NODE_ENV === "production") {
app.post("/api/callback/github", handleOAuthCallback);
} else if (process.env.NODE_ENV === "development") {
app.get("/api/callback/github", handleOAuthCallback);
}

if (process.env.NODE_ENV === "production") {
app.post("/api/callback/gitlab", handleOAuthCallbackGitlab);
} else if (process.env.NODE_ENV === "development") {
app.get("/api/callback/gitlab", handleOAuthCallbackGitlab);
}
app.get("/api/callback/github", handleOAuthCallback);
app.get("/api/callback/gitlab", handleOAuthCallbackGitlab);

app.get("/api/badgedRepos", badgedRepos);
app.post("/api/repos-to-badge", reposToBadge);
Expand Down

0 comments on commit 247e247

Please sign in to comment.