forked from espressif/esp-aws-iot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github workflow files (for syncing issues/prs with internal JIRA)
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Sync issue comments to JIRA | ||
|
||
# This workflow will be triggered when new issue comment is created (including PR comments) | ||
on: issue_comment | ||
|
||
jobs: | ||
sync_issue_comments_to_jira: | ||
name: Sync Issue Comments to Jira | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Sync issue comments to JIRA | ||
uses: espressif/github-actions/sync_issues_to_jira@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
JIRA_PASS: ${{ secrets.JIRA_PASS }} | ||
JIRA_PROJECT: CA | ||
JIRA_URL: ${{ secrets.JIRA_URL }} | ||
JIRA_USER: ${{ secrets.JIRA_USER }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Sync issues to Jira | ||
|
||
# This workflow will be triggered when a new issue is opened | ||
on: issues | ||
|
||
jobs: | ||
sync_issues_to_jira: | ||
name: Sync issues to Jira | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Sync GitHub issues to Jira project | ||
uses: espressif/github-actions/sync_issues_to_jira@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
JIRA_PASS: ${{ secrets.JIRA_PASS }} | ||
JIRA_PROJECT: CA | ||
JIRA_URL: ${{ secrets.JIRA_URL }} | ||
JIRA_USER: ${{ secrets.JIRA_USER }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Sync remain PRs to Jira | ||
|
||
# This workflow will be triggered every hour, to sync remaining PRs (i.e. PRs with zero comment) to Jira project | ||
# Note that, PRs can also get synced when new PR comment is created | ||
on: | ||
schedule: | ||
- cron: "0 * * * *" | ||
|
||
jobs: | ||
sync_prs_to_jira: | ||
name: Sync PRs to Jira | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Sync PRs to Jira project | ||
uses: espressif/github-actions/sync_issues_to_jira@master | ||
with: | ||
cron_job: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
JIRA_PASS: ${{ secrets.JIRA_PASS }} | ||
JIRA_PROJECT: CA | ||
JIRA_URL: ${{ secrets.JIRA_URL }} | ||
JIRA_USER: ${{ secrets.JIRA_USER }} |