There was an error while loading. Please reload this page.
1 parent fc8e381 commit 34e5482Copy full SHA for 34e5482
.github/github-action/index.js
@@ -5,12 +5,7 @@ const { contributors } = require('./contributors');
5
async function run() {
6
try {
7
const title = github.context.payload.pull_request.title;
8
- const labels = [];
9
-
10
- if(!title.startsWith('Answer:')) {
11
- return;
12
- }
13
- labels.push('answer');
+ const labels = ['answer'];
14
15
const match = title.match(/Answer:\s*(\d+)/);
16
if (match) {
.github/workflows/label-issue.yml
@@ -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
0 commit comments