Skip to content

feat: add signed commit composite action#261

Open
MrkMrk00 wants to merge 8 commits intomainfrom
feat/composite-action-signed-commit
Open

feat: add signed commit composite action#261
MrkMrk00 wants to merge 8 commits intomainfrom
feat/composite-action-signed-commit

Conversation

@MrkMrk00
Copy link
Copy Markdown
Contributor

@MrkMrk00 MrkMrk00 commented Mar 25, 2026

This PR re-implements the reusable workflow from #260 as a composite action.

It also add some basic tests of the action.

Tested by copy-pasting into: https://github.com/apify/hub/actions/runs/23737116236/job/69144551353#step:9:4

@MrkMrk00 MrkMrk00 self-assigned this Mar 25, 2026
@MrkMrk00 MrkMrk00 added the adhoc Ad-hoc unplanned task added during the sprint. label Mar 25, 2026
@github-actions github-actions bot added t-infra Issues with this label are in the ownership of the infrastructure team. tested Temporary label used only programatically for some analytics. labels Mar 25, 2026
@MrkMrk00 MrkMrk00 force-pushed the feat/composite-action-signed-commit branch from f5ef045 to b49bc3f Compare March 25, 2026 16:33
@MrkMrk00 MrkMrk00 requested a review from Copilot March 26, 2026 10:20
@MrkMrk00 MrkMrk00 force-pushed the feat/composite-action-signed-commit branch from 59267de to b754f0a Compare March 26, 2026 10:24
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new composite GitHub Action for creating commits via the GitHub GraphQL API (intended to produce verified/signed commits), and adds Node/TypeScript/Jest tooling plus a local workflow to lint and test GitHub Actions code.

Changes:

  • Added .github/actions/commit composite action and its JS implementation + Jest test.
  • Added repo-level Node toolchain files (package.json, package-lock.json, tsconfig.json) to typecheck JS and run Jest.
  • Replaced the local workflow lint entrypoint with a new workflow that also runs typecheck/tests.

Reviewed changes

Copilot reviewed 6 out of 9 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
tsconfig.json Adds TypeScript config to typecheck .github/actions/**/*.js.
package.json Adds devDependencies for TypeScript/Jest and action-related types.
package-lock.json Locks the Node dependency tree for the new tooling.
.gitignore Ignores node_modules/ created by the new tooling.
.github/workflows/local_lint_gh_actions.yaml Removes the prior local lint workflow entrypoint.
.github/workflows/local_lint.yaml Adds a local workflow that lints actions and runs tsc + jest.
.github/actions/commit/index.js Implements staging diff + createCommitOnBranch GraphQL mutation.
.github/actions/commit/index.test.js Adds a Jest test for the staged-file diffing logic.
.github/actions/commit/action.yml Defines the composite action that wires github-script to index.js.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MrkMrk00 MrkMrk00 marked this pull request as ready for review March 30, 2026 09:28
@MrkMrk00 MrkMrk00 force-pushed the feat/composite-action-signed-commit branch from bb0b5c5 to 4b22c61 Compare March 30, 2026 09:47
Copy link
Copy Markdown
Member

@fnesveda fnesveda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just a few points 🙂 But I hope this won't grow into a behemoth we'll have maintain too intensely 😄

@@ -0,0 +1,19 @@
{
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please use @apify/tsconfig as the base?

@MrkMrk00 MrkMrk00 force-pushed the feat/composite-action-signed-commit branch from 26407ed to 3654d94 Compare March 30, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-infra Issues with this label are in the ownership of the infrastructure team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants