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

Integrate Options.issueNumber Logic #103

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

fine-ai[bot]
Copy link

@fine-ai fine-ai bot commented Dec 28, 2024

Add support for optional issue-number input in GitHub Action

  • Updated action.yml to include an optional issue-number input with a clear and concise description.
  • Modified src/index.ts to retrieve the issue-number input using core.getInput and store it in a variable. Updated the options object to include the issueNumber property, parsing it as an integer if provided.
  • Enhanced src/create-comment.ts to utilize the issueNumber from the options object when creating or updating comments, modifying the API call to include the issue_number parameter.
  • Updated README.md to document the new issue-number input, explaining its purpose and providing an example of its usage in a GitHub Actions workflow.

fine-agent added 2 commits December 28, 2024 13:00
- Updated `action.yml` in `MishaKav/jest-coverage-comment` to include `issue-number` configurations from `MishaKav/pytest-coverage-comment`, maintaining the original context and purpose.
- Transferred logic related to `issue-number` from `src/index.js` in `pytest-coverage-comment` to `src/index.ts` in `jest-coverage-comment`, adapting the code to TypeScript syntax and aligning with the existing code structure.
- Enhanced `README.md` in `jest-coverage-comment` with documentation and examples for `issue-number`, ensuring relevance to the Jest coverage context.

This update ensures consistency across repositories and extends the functionality of `issue-number` to the Jest coverage comment action.
- Updated `action.yml` to include an optional `issue-number` input with a clear and concise description.
- Modified `src/index.ts` to retrieve the `issue-number` input using `core.getInput` and store it in a variable. Updated the `options` object to include the `issueNumber` property, parsing it as an integer if provided.
- Enhanced `src/create-comment.ts` to utilize the `issueNumber` from the `options` object when creating or updating comments, modifying the API call to include the `issue_number` parameter.
- Updated `README.md` to document the new `issue-number` input, explaining its purpose and providing an example of its usage in a GitHub Actions workflow.
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

Successfully merging this pull request may close these issues.

0 participants