generated from AOSSIE-Org/Template-Repo
-
Notifications
You must be signed in to change notification settings - Fork 2
feat: Implement initial GitHub Action for generating issues from pred… #1
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
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
69c1d37
feat: Implement initial GitHub Action for generating issues from pred…
kpj2006 594f0f4
Update .github/workflows/build-dist.yml
kpj2006 1dd1fcf
feat: implement AI-driven issue generation, issue bank parsing, and G…
kpj2006 f475ec0
Merge branch 'main' of https://github.com/kpj2006/AutoInitialIssues
kpj2006 7c41406
feat: Introduce GitHub Action to automatically generate and create is…
kpj2006 6937a14
feat: Implement AI-powered issue generation via GitHub Models API and…
kpj2006 a8def77
feat: Implement AI-driven issue generation using GitHub Models API an…
kpj2006 8e175e8
docs: Populate README with detailed project description, features, ar…
kpj2006 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| name: Build dist | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [closed] | ||
| branches: [main] | ||
| paths: | ||
| - 'src/**' | ||
| - 'issue-banks/**' | ||
| - 'package.json' | ||
| - 'package-lock.json' | ||
|
|
||
| jobs: | ||
| build: | ||
| permissions: | ||
| contents: write | ||
| if: github.event.pull_request.merged == true | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: main | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - uses: actions/setup-node@v4 | ||
| with: {node-version: '20'} | ||
| - run: npm ci | ||
| - run: npm run build | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - name: Commit dist if changed | ||
| run: | | ||
| git config user.name "github-actions[bot]" | ||
| git config user.email "github-actions[bot]@users.noreply.github.com" | ||
| git add dist/ | ||
| git diff --staged --quiet || git commit -m "chore: rebuild dist [skip ci]" | ||
| if ! git push; then | ||
| echo "::error::Failed to push dist directory. This often happens if the branch was updated concurrently." | ||
| exit 1 | ||
| fi | ||
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: 'Initial Issues Action' | ||
| description: 'Automatically creates categorized initial issues for new repositories' | ||
|
|
||
| inputs: | ||
| mode: | ||
| description: 'Execution mode: preset, prompt, or advanced' | ||
| required: false | ||
| default: 'preset' | ||
| preset: | ||
| description: 'Preset string for Tier 1 (e.g. frontend-nextjs, frontend)' | ||
| required: false | ||
| project_description: | ||
| description: 'A description of the project (Required for prompt and advanced modes)' | ||
| required: false | ||
| project_template: | ||
| description: 'Hint for AOSSIE project template stack' | ||
| required: false | ||
| categories: | ||
| description: 'Comma-separated categories for advanced mode' | ||
| required: false | ||
| skills: | ||
| description: 'Comma-separated skills to emphasize in issue generation' | ||
| required: false | ||
| custom_issues: | ||
| description: 'Path to repo-specific custom issues json' | ||
| required: false | ||
| max_issues: | ||
| description: 'Maximum number of issues to generate' | ||
| required: false | ||
| default: '15' | ||
| label_prefix: | ||
| description: 'Prefix to append to new issue labels (e.g. good first issue)' | ||
| required: false | ||
| issue_complexity: | ||
| description: 'Comma-separated complexities to filter (e.g. beginner, intermediate, advanced)' | ||
| required: false | ||
kpj2006 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| github_token: | ||
| description: 'GitHub Token for creating issues and calling GitHub Models' | ||
| required: false | ||
| default: '${{ github.token }}' | ||
|
|
||
| runs: | ||
| using: 'node20' | ||
| main: 'dist/index.js' | ||
|
|
||
| # in this some of the inputs are not fully implemented like custom_issues and issue_complexity(we will work on it later) | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.