Skip to content

Test#19

Open
IceflowRE wants to merge 2 commits into
mainfrom
test
Open

Test#19
IceflowRE wants to merge 2 commits into
mainfrom
test

Conversation

@IceflowRE

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

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 adds a new TypeScript entrypoint (typescript/src/main.ts) intended to run a GitHub Action that selects a commit-message validator (built-in or loaded from a repository file) and checks commits via the GitHub API.

Changes:

  • Introduces a new run() implementation that reads action inputs, instantiates a validator, fetches commits, and prints results.
  • Adds verbose logging of github.context to action logs.

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

Comment thread typescript/src/main.ts
Comment on lines +1 to +6
import * as core from '@actions/core'
import * as github from '@actions/github'
import {CommitValidator, Result} from './commit-validator'
import {GitHub} from "@actions/github/lib/utils"
import * as utils from './utils'
import * as gh_utils from './gh-utils'
Comment thread typescript/src/main.ts
Comment on lines +10 to +11
core.debug(JSON.stringify(github.context))
core.info(JSON.stringify(github.context))
Comment thread typescript/src/main.ts
Comment on lines +1 to +6
import * as core from '@actions/core'
import * as github from '@actions/github'
import {CommitValidator, Result} from './commit-validator'
import {GitHub} from "@actions/github/lib/utils"
import * as utils from './utils'
import * as gh_utils from './gh-utils'
Comment thread typescript/src/main.ts
Comment on lines +50 to +52
} catch (error) {
if (error instanceof Error) core.setFailed(error.message)
}
Comment thread typescript/src/main.ts
Comment on lines +16 to +18
const access_token: string = core.getInput('access_token')
// just to be sure
core.setSecret(access_token)
@IceflowRE IceflowRE force-pushed the test branch 3 times, most recently from ac09a5f to 3a2c36d Compare June 13, 2026 12:55
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.

2 participants