Skip to content

Commit 591f027

Browse files
authored
Merge pull request #7 from espressif/feature/add-repository-integrations
Add repository integrations (by Create-project-tools)
2 parents 2f0860a + f6d9dee commit 591f027

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Sync issue comments to JIRA
2+
3+
# This workflow will be triggered when new issue comment is created (including PR comments)
4+
on: issue_comment
5+
6+
jobs:
7+
sync_issue_comments_to_jira:
8+
name: Sync Issue Comments to Jira
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Sync issue comments to JIRA
14+
uses: espressif/sync-jira-actions@v1
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
JIRA_PASS: ${{ secrets.JIRA_PASS }}
18+
JIRA_PROJECT: SRV
19+
JIRA_COMPONENT: GitHub
20+
JIRA_URL: ${{ secrets.JIRA_URL }}
21+
JIRA_USER: ${{ secrets.JIRA_USER }}

.github/workflows/new_issues.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Sync issues to Jira
2+
3+
# This workflow will be triggered when a new issue is opened
4+
on: issues
5+
6+
jobs:
7+
sync_issues_to_jira:
8+
name: Sync issues to Jira
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: Sync GitHub issues to Jira project
14+
uses: espressif/sync-jira-actions@v1
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
JIRA_PASS: ${{ secrets.JIRA_PASS }}
18+
JIRA_PROJECT: SRV
19+
JIRA_COMPONENT: GitHub
20+
JIRA_URL: ${{ secrets.JIRA_URL }}
21+
JIRA_USER: ${{ secrets.JIRA_USER }}

.github/workflows/new_prs.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Sync remain PRs to Jira
2+
3+
# This workflow will be triggered every hour, to sync remaining PRs (i.e. PRs with zero comment) to Jira project
4+
# Note that, PRs can also get synced when new PR comment is created
5+
on:
6+
schedule:
7+
- cron: "0 * * * *"
8+
9+
jobs:
10+
sync_prs_to_jira:
11+
name: Sync PRs to Jira
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Sync PRs to Jira project
17+
uses: espressif/sync-jira-actions@v1
18+
with:
19+
cron_job: true
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
JIRA_PASS: ${{ secrets.JIRA_PASS }}
23+
JIRA_PROJECT: SRV
24+
JIRA_COMPONENT: GitHub
25+
JIRA_URL: ${{ secrets.JIRA_URL }}
26+
JIRA_USER: ${{ secrets.JIRA_USER }}

0 commit comments

Comments
 (0)