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

Store repository configuration files in NeptunAI database. #21

Open
jonasfroeller opened this issue Dec 25, 2024 · 4 comments
Open

Store repository configuration files in NeptunAI database. #21

jonasfroeller opened this issue Dec 25, 2024 · 4 comments

Comments

@jonasfroeller
Copy link
Member

jonasfroeller commented Dec 25, 2024

{
  repository(owner: "jonasfroeller", name: "jonasfroeller") {
    ... on Repository {
      object(expression: "master") {
        ... on Tree {
          entries {
            oid
            name
            type
            path
            extension
            metaData: object {
              ... on Blob {
                byteSize
                isBinary
              }
            }
            commitData: object {
              ... on Commit {
                oid
                pushedDate
                message
              }
            }
          }
        }
      }
    }
  }
}

branches:

{
  repository(owner: "jonasfroeller", name: "jonasfroeller") {
    refs(first: 50, refPrefix:"refs/heads/") {
      nodes {
        name
      }
    }
  }
}

https://stackoverflow.com/questions/9272535/how-to-get-a-file-via-github-apis
https://docs.github.com/en/search-github/getting-started-with-searching-on-github/understanding-the-search-syntax
https://docs.github.com/en/search-github/searching-on-github/searching-issues-and-pull-requests

@jonasfroeller jonasfroeller changed the title Store repository files in NeptunAI database. Store repository configuration files in NeptunAI database. Dec 25, 2024
@jonasfroeller
Copy link
Member Author

Workflow:

  1. Search for known configuration files.
  2. Ask AI
  3. Ask user

@jonasfroeller
Copy link
Member Author

export const supportedFileExtensionsMap = {
  'js': 'js',
  'jsx': 'jsx',
  'json': 'json',
  'toml': 'toml',
  'ts': 'ts',
  'tsx': 'tsx',
  'vue': 'vue',
  'vue-html': 'html',
  'svelte': 'svelte',
  'css': 'css',
  'html': 'html',
  'xml': 'xml',
  'bash': 'sh',
  'shell': 'sh',
  'shellscript': 'sh',
  'bat': 'bat',
  'batch': 'bat',
  'cmd': 'cmd',
  'powershell': 'ps1',
  'md': 'md',
  'mdc': 'md',
  'yaml': 'yaml',
  'yml': 'yml',
  'python': 'py',
  'py': 'py',
  'asciidoc': 'adoc',
  'c': 'c',
  'c#': 'cs',
  'cs': 'cs',
  'csharp': 'cs',
  'c++': 'cpp',
  'dart': 'dart',
  'objective-c': 'm',
  'objective-cpp': 'mm',
  'swift': 'swift',
  'docker': 'dockerfile',
  'dockerfile': 'dockerfile',
  'git-commit': 'txt',
  'git-rebase': 'txt',
  'go': 'go',
  'java': 'java',
  'kotlin': 'kt',
  'gql': 'graphql',
  'http': 'http',
  'latex': 'tex',
  'lua': 'lua',
  'sass': 'sass',
  'less': 'less',
  'markdown': 'md',
  'makefile': 'makefile',
  'mdx': 'mdx',
  'nginx': 'conf',
  'nix': 'nix',
  'php': 'php',
  'scheme': 'scm',
  'plsql': 'sql',
  'sql': 'sql',
  'postcss': 'css',
  'prisma': 'prisma',
  'rust': 'rs',
  'rs': 'rs',
  'csv': 'csv',
} as const

@jonasfroeller
Copy link
Member Author

Workflow:

  1. Search for known configuration files.
  2. Ask AI
  3. Ask user

TODO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant