Review and address TODOs #2665
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
--- | |
name: Tasklist sync-issues | |
# This workflow syncs comments and issues from this private repository to https://github.com/camunda/issues for the possibility | |
# of sharing selected issues with the public (e.g. for the support context) | |
# An issue labeled with 'public' will be synced to camunda/issues | |
on: | |
issues: | |
types: [closed, deleted, edited, labeled, reopened, unlabeled] | |
issue_comment: | |
types: [created, edited, deleted] | |
jobs: | |
sync-issues: | |
runs-on: ubuntu-22.04 | |
if: contains( github.event.issue.labels.*.name, 'public') # limits this workflow to only run on issues and comments with the label. Cost saving | |
steps: | |
- name: Import secrets | |
id: secrets | |
uses: hashicorp/vault-action@d1720f055e0635fd932a1d2a48f87a666a57906c # v3.0.0 | |
with: | |
url: ${{ secrets.VAULT_ADDR }} | |
method: approle | |
roleId: ${{ secrets.VAULT_ROLE_ID }} | |
secretId: ${{ secrets.VAULT_SECRET_ID }} | |
secrets: | | |
secret/data/github.com/apps/engineering-issue-sync GITHUB_APP_ID; | |
secret/data/github.com/apps/engineering-issue-sync GITHUB_APP_PEM_FILE_CONTENT; | |
- name: Generate token | |
id: generate_token | |
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0 | |
with: | |
app_id: ${{ steps.secrets.outputs.GITHUB_APP_ID }} | |
private_key: ${{ steps.secrets.outputs.GITHUB_APP_PEM_FILE_CONTENT }} | |
- name: Issue Sync Action | |
uses: camunda/issue-sync-action@main | |
id: issue_sync | |
env: | |
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} | |
with: | |
repo_target: 'camunda/issues' | |
only_sync_on_label: 'public' | |
only_sync_main_issue: 'true' | |
create_issues_on_edit: 'false' | |
additional_issue_labels: 'component:tasklist' | |
sync_repo_labels: 'false' | |
use_comment_for_issue_matching: 'true' | |
skip_comment_sync_keywords: '[private]' | |
target_issue_assignees_behavior: 'add_static' | |
target_issue_assignees_static: 'christian-konrad' | |
issue_created_comment_template: | | |
A public reference has been created: {{<link>}} | |
Note that comments will **not** be synchronized. |