Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imagine ai update button doc #1362

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Imagine_AI-upadte-main/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
npm-debug.log*
.github
*.md
.gitignore
LICENSE
94 changes: 94 additions & 0 deletions Imagine_AI-upadte-main/.github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: "Bug Report 🐞"
description: Create a new ticket for a bug.
title: "[BUG] - Title Goes Here..."
labels: ["bug"]
body:
- type: textarea
id: currentBehavior
attributes:
label: "Current behaviour"
description: What happens, e.g. "The price shown on the button is £400"
placeholder: Short and explicit description of current senario...
validations:
required: true
- type: textarea
id: expectedBehaviour
attributes:
label: "Expected behaviour"
description: What should happen, e.g. "The price shown on the button is £4"
placeholder: Short and explicit description of what should happen...
validations:
required: true
- type: textarea
id: reprod
attributes:
label: "Reproduction steps"
description: Please enter an explicit description of your issue
value: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
render: bash
validations:
required: true
- type: textarea
id: screenshot
attributes:
label: "Screenshots"
description: If applicable, add screenshots to help explain your problem.
value: |
![DESCRIPTION](LINK.png)
validations:
required: false
- type: dropdown
id: browsers
attributes:
label: "Browsers"
description: What browsers are you seeing the problem on ?
multiple: true
options:
- Firefox
- Chrome
- Safari
- Microsoft Edge
- Opera
- All Browsers
validations:
required: false
- type: dropdown
id: os
attributes:
label: "OS"
description: What is the impacted environment ?
multiple: true
options:
- Windows
- Linux
- Mac
validations:
required: false
- type: dropdown
id: contribution
attributes:
label: Are you contributing for a program ?
multiple: true
options:
- GSSoC23
- Other
validations:
required: true
- type: checkboxes
id: terms_checklist_docs
attributes:
label: 'Checklist'
description: 'By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/SurajPratap10/Imagine_AI/blob/main/CODE_OF_CONDUCT.md)'
options:
- label: 'I have checked the existing [issues](https://github.com/SurajPratap10/Imagine_AI/issues)'
required: true
- label: 'I have read the [Contributing Guidelines](https://github.com/SurajPratap10/Imagine_AI/blob/main/CONTRIBUTING_GUIDELINES.md)'
required: true
- label: 'I am willing to work on this issue (optional)'
required: false
- label: "I am a GSSoC'23 contributor"
required: false
48 changes: 48 additions & 0 deletions Imagine_AI-upadte-main/.github/ISSUE_TEMPLATE/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: 'Documentation 📋'
description: 'Use this form to present your suggestions on how to improve our docs'
title: '[DOCS]: <write your suggestion here>'
labels: ['documenation', 'goal: enhancement']

body:
- type: textarea
id: docs_description
attributes:
label: 'Issue Description'
description: 'Please provide a brief summary of the documentation issue you are experiencing or would like to address.'
validations:
required: true
- type: textarea
id: additional_context_docs
attributes:
label: 'Additional Context'
description: 'If there is any additional context or information that would be helpful for addressing the documentation issue, please provide it here.'

- type: textarea
id: screenshots_examples_docs
attributes:
label: 'Screenshots or Examples (if applicable)'
description: 'Please include relevant screenshots or examples to help illustrate the problem.'

- type: textarea
id: proposed_solution_docs
attributes:
label: 'Proposed Solution (optional)'
description: 'If you have a proposed solution for the documentation issue, please provide it here. This can be helpful for speeding up the resolution process.'

- type: checkboxes
id: terms_checklist_docs
attributes:
label: 'Checklist'
description: 'By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/SurajPratap10/Imagine_AI/blob/main/CODE_OF_CONDUCT.md)'
options:
- label: 'I have checked the existing [issues](https://github.com/SurajPratap10/Imagine_AI/issues)'
required: true
- label: 'I have read the [Contributing Guidelines](https://github.com/SurajPratap10/Imagine_AI/blob/main/CONTRIBUTING_GUIDELINES.md)'
required: true
- label: 'I am willing to work on this issue (optional)'
required: false
- label: "I am a GSSoC'23 contributor"
required: false
- type: markdown
attributes:
value: 'Thank you for taking the time to raise this issue! Your input is greatly appreciated.'
19 changes: 19 additions & 0 deletions Imagine_AI-upadte-main/.github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project
title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
31 changes: 31 additions & 0 deletions Imagine_AI-upadte-main/.github/ISSUE_TEMPLATE/style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: 👯‍♂️ Style Changing Request
description: Suggest a style designs
title: '[style]: '
labels: ['enhancement', 'help wanted']
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this template!
- type: textarea
id: style-idea
attributes:
label: What's the style idea?
placeholder: Add descriptions
value: 'We need to improve '
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Add screenshots
description: Add screenshots to see the demo
placeholder: Add screenshots
value: 'Add screenshots'
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our Code of Conduct
options:
- label: I agree to follow this project's Code of Conduct
6 changes: 6 additions & 0 deletions Imagine_AI-upadte-main/.github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'daily'
36 changes: 36 additions & 0 deletions Imagine_AI-upadte-main/.github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<!-- PLEASE REMOVE ALL OF THE COMMENTS BEFORE CREATING PULL REQUEST -->

# Description

<!--
Please include a summary of the change and which issue is fixed. List any dependencies that are required for this change.
-->

## Fixes #(issue_no)

<!--
Replace `issue_no` with the issue number which is fixed in this PR
-->

## Screenshots

<!--
If applicable, add screenshots or images demonstrating the changes made

You can drag and drop you screenshots inside the Before and After after removing the Placeholder Image.
-->

| BEFORE | AFTER |
| :------------------: | :------------------: |
| ![Image](image-link) | ![Image](image-link) |

## Checklist

<!--
Mark the completed tasks with [x]
-->

- [ ] Tests have been added or updated to cover the changes
- [ ] Documentation has been updated to reflect the changes
- [ ] Code follows the established coding style guidelines
- [ ] All tests are passing
31 changes: 31 additions & 0 deletions Imagine_AI-upadte-main/.github/workflows/close_old_issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Close Old Issues
on:
schedule:
- cron: "0 0 * * *"

jobs:
close-issues:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Close Old Issues
run: |
open_issues=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/issues?state=open" \
| jq -r '.[] | .number')
for issue in $open_issues; do
# Get the last updated timestamp of the issue
last_updated=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/issues/$issue" \
| jq -r '.updated_at')
days_since_update=$(( ( $(date +%s) - $(date -d "$last_updated" +%s) ) / 86400 ))
if [ $days_since_update -gt 20 ]; then # Modify the condition to check if days_since_update is greater than 20
curl -s -X PATCH -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
-d '{"state":"closed"}' \
"https://api.github.com/repos/${{ github.repository }}/issues/$issue"
fi
done
66 changes: 66 additions & 0 deletions Imagine_AI-upadte-main/.github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: "CodeQL"

on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
schedule:
- cron: '43 3 * * 6'

jobs:
analyze:
name: Analyze
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
# Use only 'java' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{matrix.language}}"
42 changes: 42 additions & 0 deletions Imagine_AI-upadte-main/.github/workflows/deno.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow will install Deno then run `deno lint` and `deno test`.
# For more information see: https://github.com/denoland/setup-deno

name: Deno

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Setup repo
uses: actions/checkout@v3

- name: Setup Deno
# uses: denoland/setup-deno@v1
uses: denoland/setup-deno@9db7f66e8e16b5699a514448ce994936c63f0d54
with:
deno-version: v1.x

# Uncomment this step to verify the use of 'deno fmt' on each commit.
# - name: Verify formatting
# run: deno fmt --check

- name: Run linter
run: deno lint

- name: Run tests
run: deno test -A
Loading