Skip to content

Commit 965e9dd

Browse files
Merge branch 'main' of https://github.com/PSModule/Services into init
2 parents 0516a66 + e346a71 commit 965e9dd

3 files changed

Lines changed: 93 additions & 0 deletions

File tree

.github/ISSUE_TEMPLATE/New-Project.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,25 @@ body:
5757
default: 0
5858
validations:
5959
required: true
60+
- type: checkboxes
61+
id: operating-systems
62+
attributes:
63+
label: Which operating systems have you used?
64+
description: You may select more than one.
65+
options:
66+
- label: macOS
67+
- label: Windows
68+
- label: Linux
69+
- type: textarea
70+
id: repro
71+
attributes:
72+
label: Reproduction steps
73+
description: "How do you trigger this bug? Please walk us through it step by step."
74+
value: |
75+
1.
76+
2.
77+
3.
78+
...
79+
render: bash
80+
validations:
81+
required: true

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: github-actions # See documentation for possible values
9+
directory: / # Location of package manifests
10+
labels:
11+
- dependencies
12+
- github-actions
13+
schedule:
14+
interval: weekly

.github/workflows/Auto-Assign.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Create Repo - Assign
2+
on:
3+
issues:
4+
types:
5+
- opened
6+
- edited
7+
8+
permissions:
9+
contents: read
10+
11+
env:
12+
number_of_assignees: 1
13+
14+
jobs:
15+
assign:
16+
name: Assign new issue
17+
runs-on: ubuntu-latest
18+
if: contains(github.event.issue.labels.*.name, 'New-Project')
19+
steps:
20+
- name: Generate app token
21+
uses: actions/create-github-app-token@v2
22+
id: authenticate
23+
with:
24+
app-id: ${{ secrets.APP_ID }}
25+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
26+
27+
- uses: PSModule/debug@v1
28+
29+
- uses: PSModule/Initialize-PSModule@main
30+
31+
- name: Get-IssueFormData
32+
id: Get-IssueFormData
33+
uses: PSModule/Get-IssueFormData@v1
34+
35+
- name: Acknowledge
36+
uses: actions/github-script@v8
37+
env:
38+
reviewer_team: ${{ vars.reviewer_team }}
39+
with:
40+
github-token: ${{ steps.authenticate.outputs.token }}
41+
script: |
42+
const body = `
43+
@${context.actor} : Hey! Let's get this issue assigned to someone from the @${context.repo.owner}/${process.env.reviewer_team} team while we validate the request.
44+
`
45+
46+
github.rest.issues.createComment({
47+
...context.repo,
48+
issue_number: context.issue.number,
49+
body
50+
})
51+
52+
- name: Auto-assign issue
53+
uses: pozil/auto-assign-issue@v2.2.0
54+
with:
55+
repo-token: ${{ steps.authenticate.outputs.token }}
56+
teams: ${{ vars.reviewer_team }}
57+
numOfAssignee: ${{ env.number_of_assignees }}

0 commit comments

Comments
 (0)