mirror of
https://github.com/espressif/esp-lwip.git
synced 2026-06-05 21:04:45 +00:00
ci: Add jira sync github workflows
also adds a specific tag to gitlab-ci job
This commit is contained in:
committed by
David Čermák
parent
20f8b0739c
commit
a4e2409d0d
@@ -0,0 +1,29 @@
|
|||||||
|
name: Sync issue comments to JIRA
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
# This workflow will be triggered when new issue comment is created (including PR comments)
|
||||||
|
on: issue_comment
|
||||||
|
|
||||||
|
# Limit to single concurrent run for workflows which can create Jira issues.
|
||||||
|
# Same concurrency group is used in new_issues.yml
|
||||||
|
concurrency: jira_issues
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync_issue_comments_to_jira:
|
||||||
|
name: Sync Issue Comments to Jira
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.repository_owner == 'espressif' }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- 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: IDFGH
|
||||||
|
JIRA_COMPONENT: esp-lwip
|
||||||
|
JIRA_URL: ${{ secrets.JIRA_URL }}
|
||||||
|
JIRA_USER: ${{ secrets.JIRA_USER }}
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
name: Sync issues to Jira
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
|
||||||
|
# This workflow will be triggered when a new issue is opened
|
||||||
|
on: issues
|
||||||
|
|
||||||
|
# Limit to single concurrent run for workflows which can create Jira issues.
|
||||||
|
# Same concurrency group is used in issue_comment.yml
|
||||||
|
concurrency: jira_issues
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync_issues_to_jira:
|
||||||
|
name: Sync issues to Jira
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.repository_owner == 'espressif' }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- 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: IDFGH
|
||||||
|
JIRA_COMPONENT: esp-lwip
|
||||||
|
JIRA_URL: ${{ secrets.JIRA_URL }}
|
||||||
|
JIRA_USER: ${{ secrets.JIRA_USER }}
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
name: Sync remain PRs to Jira
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
# 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 * * * *"
|
||||||
|
|
||||||
|
# Limit to single concurrent run for workflows which can create Jira issues.
|
||||||
|
# Same concurrency group is used in issue_comment.yml
|
||||||
|
concurrency: jira_issues
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
sync_prs_to_jira:
|
||||||
|
name: Sync PRs to Jira
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: ${{ github.repository_owner == 'espressif' }}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- 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_COMPONENT: esp-lwip
|
||||||
|
JIRA_URL: ${{ secrets.JIRA_URL }}
|
||||||
|
JIRA_USER: ${{ secrets.JIRA_USER }}
|
||||||
@@ -69,6 +69,8 @@ run_test_apps:
|
|||||||
|
|
||||||
push_master_to_github:
|
push_master_to_github:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
tags:
|
||||||
|
- github_sync
|
||||||
only:
|
only:
|
||||||
- 2.1.2-esp
|
- 2.1.2-esp
|
||||||
- 2.1.3-esp
|
- 2.1.3-esp
|
||||||
|
|||||||
Reference in New Issue
Block a user