Open kimseungbin opened 1 week ago
@coderabbitai Assuming I'm creating a TypeScript based GitHub action, suggest file names and directory structure for this. (Not file content)
[!TIP] For best results, initiate chat on the files or code changes.
@kimseungbin Sure, here's a suggested directory structure and file names for your TypeScript-based GitHub action:
├── .github
│ └── workflows
│ └── label-sync.yml
├── src
│ ├── index.ts
│ ├── action.ts
│ ├── utils
│ ├── githubClient.ts
│ └── labelUtils.ts
├── package.json
├── tsconfig.json
├── .gitignore
└── README.md
Explanation:
.github/workflows/label-sync.yml
: The workflow file that triggers your action when a PR is opened or updated.src/index.ts
: The entry point of your GitHub action.src/action.ts
: Contains the main logic to sync labels from issues to PRs.src/utils/githubClient.ts
: Utility functions for interacting with the GitHub API.src/utils/labelUtils.ts
: Functions for handling labels and determining priorities.package.json
: Defines dependencies and scripts for your action.tsconfig.json
: TypeScript configuration file..gitignore
: Specifies files to be ignored by Git.README.md
: Documentation for your GitHub action.Let me know if you need further details!
Feature Description
Why is this feature needed?
Additional Context