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

Add issue number input parameter #101

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Add issue number input parameter #101

wants to merge 5 commits into from

Conversation

MishaKav
Copy link
Owner

@MishaKav MishaKav commented Oct 27, 2024

Fixes #97

Add the ability to specify the issue number of the issue being commented on as an optional argument.

  • Add issue-number input parameter in action.yml to specify the issue number.
  • Update createComment function in src/create-comment.ts to accept issueNumber from options if provided, otherwise fallback to the current logic.
  • Add logic in src/index.ts to retrieve the issue-number input parameter and pass it to the createComment function.
  • Update README.md to include documentation for the new issue-number input parameter.
  • Add issueNumber to Options interface in src/types.d.ts.

For more details, open the Copilot Workspace session.

Fixes #97

Add the ability to specify the issue number of the issue being commented on as an optional argument.

* Add `issue-number` input parameter in `action.yml` to specify the issue number.
* Update `createComment` function in `src/create-comment.ts` to accept `issueNumber` from `options` if provided, otherwise fallback to the current logic.
* Add logic in `src/index.ts` to retrieve the `issue-number` input parameter and pass it to the `createComment` function.
* Update `README.md` to include documentation for the new `issue-number` input parameter.
* Add `issueNumber` to `Options` interface in `src/types.d.ts`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/MishaKav/jest-coverage-comment/issues/97?shareId=XXXX-XXXX-XXXX-XXXX).
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.

Add the issue_number of the issue being commented on as input
1 participant