Skip to content

Commit

Permalink
Merge branch 'feat/add_pr_approved_workflow' into 'master'
Browse files Browse the repository at this point in the history
feat: add sync-pr-to-gitlab workflow

Closes AEG-791

See merge request ae_group/esp-iot-solution!999
  • Loading branch information
leeebo committed May 22, 2024
2 parents 7dd88d7 + d885daf commit 8481471
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/new_issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
name: Sync issues to Jira
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Sync GitHub issues to Jira project
uses: espressif/github-actions/sync_issues_to_jira@master
uses: espressif/sync-jira-actions@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JIRA_PASS: ${{ secrets.JIRA_PASS }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/new_prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:
name: Sync PRs to Jira
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Sync PRs to Jira project
uses: espressif/github-actions/sync_issues_to_jira@master
uses: espressif/sync-jira-actions@v1
with:
cron_job: true
env:
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/pr_approved.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Sync approved PRs to internal codebase
on:
pull_request_target:
types: [labeled]

jobs:
sync_prs_to_internal_codebase:
name: GitHub PR to Internal Codebase Sync
runs-on: ubuntu-latest
if: (github.event.label.name == 'PR-Sync-Merge') ||
(github.event.label.name == 'PR-Sync-Rebase') ||
(github.event.label.name == 'PR-Sync-Update')
steps:
- uses: actions/checkout@v4

- name: Sync approved PRs to internal codebase
uses: espressif/sync-pr-to-gitlab@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLAB_URL: ${{ secrets.GITLAB_URL }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
GIT_CONFIG_NAME: ${{ secrets.GIT_CONFIG_NAME }}
GIT_CONFIG_EMAIL: ${{ secrets.GIT_CONFIG_EMAIL }}
JIRA_PROJECT: ${{ secrets.JIRA_PROJECT }}

0 comments on commit 8481471

Please sign in to comment.