mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 04:43: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() {
|
||||
try {
|
||||
const title = github.context.payload.pull_request.title;
|
||||
const labels = [];
|
||||
|
||||
if(!title.startsWith('Answer:')) {
|
||||
return;
|
||||
}
|
||||
labels.push('answer');
|
||||
const labels = ['answer'];
|
||||
|
||||
const match = title.match(/Answer:\s*(\d+)/);
|
||||
if (match) {
|
||||
|
||||
1
.github/workflows/label-issue.yml
vendored
1
.github/workflows/label-issue.yml
vendored
@@ -7,6 +7,7 @@ on:
|
||||
jobs:
|
||||
add_supporters:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ startsWith(github.event.pull_request.title, 'Answer') }}
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
Reference in New Issue
Block a user