File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ description: Create a GitHub Intermediate Class
33title : ' [Create] <CUSTOMER_NAME>'
44assignees :
55 - ncalteen
6+ labels :
7+ - gh-intermediate-class
68body :
79 - type : markdown
810 attributes :
Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change @@ -5,8 +5,10 @@ author: Nick Alteen <ncalteen@github.com>
55inputs :
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 :
You can’t perform that action at this time.
0 commit comments