mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 04:43:03 -05:00
fix: github action
This commit is contained in:
1
.github/github-action/contributors.js
vendored
1
.github/github-action/contributors.js
vendored
@@ -15,4 +15,5 @@ const sponsors = ['ddotx', 'LMFinney'];
|
||||
|
||||
module.exports = {
|
||||
contributors,
|
||||
sponsors,
|
||||
};
|
||||
|
||||
2
.github/github-action/index.js
vendored
2
.github/github-action/index.js
vendored
@@ -7,7 +7,7 @@ async function run() {
|
||||
const title = github.context.payload.pull_request.title;
|
||||
const labels = ['answer'];
|
||||
|
||||
const match = title.match(/Answer:\s*(\d+)/);
|
||||
const match = title.match(/Answer(:?)\s*(\d+)/);
|
||||
if (match) {
|
||||
labels.push(String(parseInt(match[1], 10)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user