Skip to content

Commit 4663d09

Browse files
committed
added github actions automation to repo
1 parent 35dd670 commit 4663d09

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

.github/labeler-config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# add 'agent-python' label to all new issues
2+
agent-python:
3+
- '.*'

.github/workflows/addToProject.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
name: Auto Assign to Project(s)
3+
4+
on:
5+
issues:
6+
types: [opened, edited, milestoned]
7+
pull_request:
8+
types: [opened, edited, milestoned]
9+
env:
10+
MY_GITHUB_TOKEN: ${{ secrets.APM_TECH_USER_TOKEN }}
11+
12+
jobs:
13+
assign_one_project:
14+
runs-on: ubuntu-latest
15+
name: Assign milestoned to Project
16+
steps:
17+
- name: Assign issues with milestones to project
18+
uses: elastic/[email protected]
19+
if: github.event.issue && github.event.issue.milestone
20+
with:
21+
project: 'https://github.com/orgs/elastic/projects/454'
22+
project_id: '5882982'
23+
column_name: 'Planned'
24+
- name: Assign new pull requests to project
25+
uses: elastic/[email protected]
26+
if: github.event.action == 'opened' && github.event.pull_request
27+
with:
28+
project: 'https://github.com/orgs/elastic/projects/454'
29+
project_id: '5882982'
30+
column_name: 'In Progress'

.github/workflows/labeler.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: "Issue Labeler"
2+
on:
3+
issues:
4+
types: [opened]
5+
pull_request_target:
6+
types: [opened]
7+
8+
jobs:
9+
triage:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: AlexanderWert/[email protected]
13+
with:
14+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
15+
configuration-path: .github/labeler-config.yml
16+
enable-versioned-regex: 0

0 commit comments

Comments
 (0)