feat: Integrate @commitlint for Enhanced Commit Message Generation and Configuration Support (#209)

* add commitlint support
* refactor code
* improve readme text
This commit is contained in:
Sébastien Fichot
2023-09-03 08:00:18 +02:00
committed by GitHub
parent c1627bb98c
commit 12956d7633
29 changed files with 7002 additions and 5396 deletions
+5 -3
View File
@@ -1,12 +1,14 @@
import { unlinkSync, writeFileSync } from 'fs';
import core from '@actions/core';
import github from '@actions/github';
import exec from '@actions/exec';
import github from '@actions/github';
import { intro, outro } from '@clack/prompts';
import { PushEvent } from '@octokit/webhooks-types';
import { generateCommitMessageByDiff } from './generateCommitMessageFromGitDiff';
import { sleep } from './utils/sleep';
import { randomIntFromInterval } from './utils/randomIntFromInterval';
import { unlinkSync, writeFileSync } from 'fs';
import { sleep } from './utils/sleep';
// This should be a token with access to your repository scoped in as a secret.
// The YML workflow will need to set GITHUB_TOKEN with the GitHub Secret Token