mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-19 14:26:01 -04:00
gh_action: add cron job to sync remaining PRs
This commit is contained in:
parent
055cc251b7
commit
938069de75
5
.github/workflows/issue_comment.yml
vendored
5
.github/workflows/issue_comment.yml
vendored
@ -1,10 +1,11 @@
|
|||||||
name: Sync issue comments to JIRA
|
name: Sync issue comments to JIRA
|
||||||
|
|
||||||
|
# This workflow will be triggered when new issue comment is created (including PR comments)
|
||||||
on: issue_comment
|
on: issue_comment
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
syncToJIRA:
|
sync_issue_comments_to_jira:
|
||||||
name: Sync to JIRA
|
name: Sync Issue Comments to Jira
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
@ -1,14 +1,15 @@
|
|||||||
name: Sync issues to JIRA
|
name: Sync issues to Jira
|
||||||
|
|
||||||
|
# This workflow will be triggered when a new issue is opened
|
||||||
on: issues
|
on: issues
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
syncToJIRA:
|
sync_issues_to_jira:
|
||||||
name: Sync to JIRA
|
name: Sync issues to Jira
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Sync issues to JIRA project
|
- name: Sync GitHub issues to Jira project
|
||||||
uses: espressif/github-actions/sync_issues_to_jira@master
|
uses: espressif/github-actions/sync_issues_to_jira@master
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
24
.github/workflows/new_prs.yml
vendored
Normal file
24
.github/workflows/new_prs.yml
vendored
Normal file
@ -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: IDFGH
|
||||||
|
JIRA_URL: ${{ secrets.JIRA_URL }}
|
||||||
|
JIRA_USER: ${{ secrets.JIRA_USER }}
|
Loading…
Reference in New Issue
Block a user