Skip to content

Commit 7e008ad

Browse files
committed
chore(github): sync issues from github to JIRA
1 parent 3db311c commit 7e008ad

File tree

4 files changed

+62
-22
lines changed

4 files changed

+62
-22
lines changed

.github/main.workflow

-22
This file was deleted.

.github/workflows/issue_comment.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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@master
12+
- name: Sync issue comments to JIRA
13+
uses: espressif/github-actions/sync_issues_to_jira@master
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
JIRA_PASS: ${{ secrets.JIRA_PASS }}
17+
JIRA_PROJECT: GIT8266O
18+
JIRA_URL: ${{ secrets.JIRA_URL }}
19+
JIRA_USER: ${{ secrets.JIRA_USER }}

.github/workflows/new_issues.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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@master
12+
- name: Sync GitHub issues to Jira project
13+
uses: espressif/github-actions/sync_issues_to_jira@master
14+
env:
15+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
JIRA_PASS: ${{ secrets.JIRA_PASS }}
17+
JIRA_PROJECT: GIT8266O
18+
JIRA_URL: ${{ secrets.JIRA_URL }}
19+
JIRA_USER: ${{ secrets.JIRA_USER }}

.github/workflows/new_prs.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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@master
15+
- name: Sync PRs to Jira project
16+
uses: espressif/github-actions/sync_issues_to_jira@master
17+
with:
18+
cron_job: true
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
JIRA_PASS: ${{ secrets.JIRA_PASS }}
22+
JIRA_PROJECT: GIT8266O
23+
JIRA_URL: ${{ secrets.JIRA_URL }}
24+
JIRA_USER: ${{ secrets.JIRA_USER }}

0 commit comments

Comments
 (0)