From be2197443cc10eae61dc7d0ba1e43e334a27240f Mon Sep 17 00:00:00 2001 From: Espressif BOT Date: Wed, 31 Jul 2024 15:16:27 +0800 Subject: [PATCH 1/2] ci(repo-integrations): Add repository integrations (by Create-project-tools) --- .github/workflows/issue_comment.yml | 21 +++++++++++++++++++++ .github/workflows/new_issues.yml | 21 +++++++++++++++++++++ .github/workflows/new_prs.yml | 26 ++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 .github/workflows/issue_comment.yml create mode 100644 .github/workflows/new_issues.yml create mode 100644 .github/workflows/new_prs.yml diff --git a/.github/workflows/issue_comment.yml b/.github/workflows/issue_comment.yml new file mode 100644 index 0000000..840cff5 --- /dev/null +++ b/.github/workflows/issue_comment.yml @@ -0,0 +1,21 @@ +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@v4 + + - name: Sync issue comments to JIRA + uses: espressif/sync-jira-actions@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + JIRA_PASS: ${{ secrets.JIRA_PASS }} + JIRA_PROJECT: IDFGH + JIRA_COMPONENT: GitHub + JIRA_URL: ${{ secrets.JIRA_URL }} + JIRA_USER: ${{ secrets.JIRA_USER }} diff --git a/.github/workflows/new_issues.yml b/.github/workflows/new_issues.yml new file mode 100644 index 0000000..b110599 --- /dev/null +++ b/.github/workflows/new_issues.yml @@ -0,0 +1,21 @@ +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@v4 + + - name: Sync GitHub issues to Jira project + uses: espressif/sync-jira-actions@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + JIRA_PASS: ${{ secrets.JIRA_PASS }} + JIRA_PROJECT: IDFGH + JIRA_COMPONENT: GitHub + JIRA_URL: ${{ secrets.JIRA_URL }} + JIRA_USER: ${{ secrets.JIRA_USER }} diff --git a/.github/workflows/new_prs.yml b/.github/workflows/new_prs.yml new file mode 100644 index 0000000..4c80fde --- /dev/null +++ b/.github/workflows/new_prs.yml @@ -0,0 +1,26 @@ +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@v4 + + - name: Sync PRs to Jira project + uses: espressif/sync-jira-actions@v1 + with: + cron_job: true + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + JIRA_PASS: ${{ secrets.JIRA_PASS }} + JIRA_PROJECT: IDFGH + JIRA_COMPONENT: GitHub + JIRA_URL: ${{ secrets.JIRA_URL }} + JIRA_USER: ${{ secrets.JIRA_USER }} From 3862836df03b9ec5ccc73f508e1d7b6cb0045c2e Mon Sep 17 00:00:00 2001 From: Guillaume Souchere Date: Wed, 31 Jul 2024 12:06:35 +0200 Subject: [PATCH 2/2] ci(repo-integrations): Update component name to heap --- .github/workflows/issue_comment.yml | 2 +- .github/workflows/new_issues.yml | 2 +- .github/workflows/new_prs.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/issue_comment.yml b/.github/workflows/issue_comment.yml index 840cff5..da06a4c 100644 --- a/.github/workflows/issue_comment.yml +++ b/.github/workflows/issue_comment.yml @@ -16,6 +16,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} JIRA_PASS: ${{ secrets.JIRA_PASS }} JIRA_PROJECT: IDFGH - JIRA_COMPONENT: GitHub + JIRA_COMPONENT: heap JIRA_URL: ${{ secrets.JIRA_URL }} JIRA_USER: ${{ secrets.JIRA_USER }} diff --git a/.github/workflows/new_issues.yml b/.github/workflows/new_issues.yml index b110599..e67def9 100644 --- a/.github/workflows/new_issues.yml +++ b/.github/workflows/new_issues.yml @@ -16,6 +16,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} JIRA_PASS: ${{ secrets.JIRA_PASS }} JIRA_PROJECT: IDFGH - JIRA_COMPONENT: GitHub + JIRA_COMPONENT: heap JIRA_URL: ${{ secrets.JIRA_URL }} JIRA_USER: ${{ secrets.JIRA_USER }} diff --git a/.github/workflows/new_prs.yml b/.github/workflows/new_prs.yml index 4c80fde..7f025b1 100644 --- a/.github/workflows/new_prs.yml +++ b/.github/workflows/new_prs.yml @@ -21,6 +21,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} JIRA_PASS: ${{ secrets.JIRA_PASS }} JIRA_PROJECT: IDFGH - JIRA_COMPONENT: GitHub + JIRA_COMPONENT: heap JIRA_URL: ${{ secrets.JIRA_URL }} JIRA_USER: ${{ secrets.JIRA_USER }}