Skip to content
This repository was archived by the owner on Oct 29, 2022. It is now read-only.

Commit e445623

Browse files
committed
separate logic to just separate concerns
1 parent b4f7d28 commit e445623

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

.github/workflows/add_admin_to_project.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ jobs:
1414
# to the issue
1515
project-url: https://github.com/users/kjaymiller/projects/4
1616
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
17-
labeled: bug, admin, feature, discuss, content
17+
labeled: bug, admin, feature, discuss, content, conference
1818
label-operator: OR

.github/workflows/add_conference_to_project_and_close.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,13 @@ on:
33
issues:
44
types:
55
- opened
6+
- labeled
67

78
jobs:
89
add-to-project:
910
runs-on: ubuntu-latest
1011

1112
steps:
12-
- name: Add conference issue to project
13-
uses: actions/[email protected]
14-
with:
15-
# You can target a repository in a different organization
16-
# to the issue
17-
project-url: https://github.com/users/kjaymiller/projects/4
18-
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
19-
labeled: conference
20-
label-operator: OR
21-
2213
- name: close-issue
2314
if: ${{ github.event.label.name == 'conference' }}
2415
run: gh issue comment $ISSUE --body "Thank you for adding this event! \n We'll happily consider it for the next episode. \n\n The Issue autocloses but we'll be reviewing it at https://github.com/users/kjaymiller/projects/4/views/3" && gh issue close $ISSUE

0 commit comments

Comments
 (0)