mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
fix: actions
This commit is contained in:
7
.github/github-action/index.js
vendored
7
.github/github-action/index.js
vendored
@@ -5,12 +5,7 @@ const { contributors } = require('./contributors');
|
|||||||
async function run() {
|
async function run() {
|
||||||
try {
|
try {
|
||||||
const title = github.context.payload.pull_request.title;
|
const title = github.context.payload.pull_request.title;
|
||||||
const labels = [];
|
const labels = ['answer'];
|
||||||
|
|
||||||
if(!title.startsWith('Answer:')) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
labels.push('answer');
|
|
||||||
|
|
||||||
const match = title.match(/Answer:\s*(\d+)/);
|
const match = title.match(/Answer:\s*(\d+)/);
|
||||||
if (match) {
|
if (match) {
|
||||||
|
|||||||
1
.github/workflows/label-issue.yml
vendored
1
.github/workflows/label-issue.yml
vendored
@@ -7,6 +7,7 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
add_supporters:
|
add_supporters:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ startsWith(github.event.pull_request.title, 'Answer') }}
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|||||||
Reference in New Issue
Block a user