Skip to content

Some change in the branch #1

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions .github/workflows/commitlint.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"rules":{
"body-leading-blank":[
1,
"always"
],
"body-max-line-length":[
2,
"always",
120
],
"footer-leading-blank":[
1,
"always"
],
"footer-max-line-length":[
2,
"always",
120
],
"header-max-length":[
2,
"always",
120
],
"references-empty":[
1,
"never"
],
"scope-case":[
2,
"always",
"lower-case"
],
"subject-empty":[
2,
"never"
],
"subject-full-stop":[
2,
"never",
"."
],
"type-case":[
2,
"always",
"lower-case"
],
"type-empty":[
2,
"never"
],
"type-enum":[
2,
"always",
[
"build",
"ci",
"chore",
"docs",
"feat",
"fix",
"perf",
"infra",
"refactor",
"revert",
"style",
"test"
]
]
},
"parserPreset":{
"parserOpts":{
"referenceActions":null,
"issuePrefixesCaseSensitive":true,
"issuePrefixes":[
"ADATA-",
"CONTENT-",
"OSINSPIRE-",
"MINT-",
"OSACCNT-",
"PWAC-",
"SAB-",
"WTF-",
"XCCWS-"
]
}
}
}
4 changes: 1 addition & 3 deletions .github/workflows/lint-pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,4 @@ jobs:
node-version: 12
- uses: ./
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
config: some config
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions some-change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
some-change
8 changes: 6 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const fs = require('fs');
const core = require('@actions/core');
const github = require('@actions/github');
const validatePrTitle = require('./validatePrTitle');
Expand All @@ -6,9 +7,12 @@ module.exports = async function run() {
try {
const client = new github.GitHub(process.env.GITHUB_TOKEN);

const config = process.env.INPUT_CONFIG;
// const config = process.env.INPUT_CONFIG;

core.info(`config ${config}`);
// core.info(`config ${config}`);

// const commitlint = fs.readFileSync('./commitlint.config');
core.info(`info: ${JSON.stringify(fs.readdirSync('.'))}`);

const contextPullRequest = github.context.payload.pull_request;
if (!contextPullRequest) {
Expand Down