Skip to content

Commit 0cbeafd

Browse files
committed
Add initial workflow
1 parent 93a86ea commit 0cbeafd

3 files changed

Lines changed: 42 additions & 2 deletions

File tree

.github/ISSUE_TEMPLATE/create-class.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ description: Create a GitHub Intermediate Class
33
title: '[Create] <CUSTOMER_NAME>'
44
assignees:
55
- ncalteen
6+
labels:
7+
- gh-intermediate-class
68
body:
79
- type: markdown
810
attributes:
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Process Issue Open/Edit
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
- edited
8+
9+
permissions:
10+
contents: write
11+
id-token: write
12+
issues: write
13+
14+
jobs:
15+
validate:
16+
name: Validate Request
17+
runs-on: ubuntu-latest
18+
19+
if: contains(github.event.issue.labels.*.name, 'gh-intermediate-class')
20+
21+
steps:
22+
- name: Get GitHub App Token
23+
id: token
24+
uses: actions/create-github-app-token@v1
25+
with:
26+
app-id: ${{ secrets.ISSUEOPS_APP_ID }}
27+
private-key: ${{ secrets.ISSUEOPS_APP_PEM_FILE }}
28+
owner: ${{ github.repository_owner }}
29+
30+
- name: Process IssueOps Request
31+
id: process
32+
uses: githubschool/gh-github-intermediate-issueops@v1
33+
with:
34+
action: create
35+
github_token: ${{ steps.token.outputs.token }}
36+
workspace: ${{ github.workspace }}

action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ author: Nick Alteen <ncalteen@github.com>
55
inputs:
66
action:
77
description:
8-
The action to perform. You can either `create` a new class, `add` a user
9-
to an existing class, `remove` a user from an existing class, `close` an
8+
The action to perform. You can either `create` a new class, `add-user` to
9+
add a user to an existing class, `add-admin` to add an admin to an
10+
existing class, `remove-user` to remove a user from an existing class,
11+
`remove-admin` to remove an admin from an existing class, `close` an
1012
existing class, or `extend` an existing class.
1113
required: true
1214
github_token:

0 commit comments

Comments
 (0)