diff --git a/.github/workflows/issues.yaml b/.github/workflows/issues.yaml new file mode 100644 index 0000000..610cb70 --- /dev/null +++ b/.github/workflows/issues.yaml @@ -0,0 +1,11 @@ +name: Issues + +on: [issues] + +jobs: + update: + name: Update Issue + uses: canonical/observability/.github/workflows/issues.yaml@main + secrets: inherit + with: + component: mimir-coordinator diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml deleted file mode 100644 index 78a11ad..0000000 --- a/.github/workflows/issues.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Issues - -on: [issues] - -jobs: - update: - name: Update Issue - runs-on: ubuntu-latest - steps: - - name: Dump Github Context - run: | - echo "update=false" >> $GITHUB_ENV - if [ ${{ github.event_name }} != "issues" ]; then - echo "This action only operates on issues" - exit 0 - fi - echo "update=true" >> $GITHUB_ENV - - name: Determine action - run: | - if [ ${{ github.event.action }} == "opened" ]; then - echo "action=open" >> $GITHUB_ENV - fi - if [ ${{ github.event.action }} == "reopened" ]; then - echo "action=reopen" >> $GITHUB_ENV - fi - if [ ${{ github.event.action }} == "closed" ]; then - echo "action=close" >> $GITHUB_ENV - fi - - name: Determine type - run: | - if ${{ contains(github.event.*.labels.*.name, 'Type: Bug') }}; then - echo "type=bug" >> $GITHUB_ENV - else - echo "type=story" >> $GITHUB_ENV - fi - - name: Update - if: ${{ env.update == 'true' }} - env: - ID: ${{ github.event.issue.html_url }} - TITLE: ${{github.event.issue.title }} - COMPONENT: mimir-coordinator - DESCRIPTION: Opened by ${{ github.event.issue.user.login }}. - run: | - data=$(jq -n \ - --arg id "$ID" \ - --arg action "${{ env.action }}" \ - --arg title "$TITLE" \ - --arg description "$DESCRIPTION" \ - --arg component "$COMPONENT" \ - --arg type "${{ env.type }}" \ - '{data: {id: $id, action: $action, title: $title, description: $description, component: $component, type: $type}}') - - curl -X POST -H 'Content-type: application/json' --data "${data}" "${{ secrets.JIRA_URL }}" diff --git a/.github/workflows/promote.yaml b/.github/workflows/promote.yaml index f3b2ee5..afb45b7 100644 --- a/.github/workflows/promote.yaml +++ b/.github/workflows/promote.yaml @@ -14,7 +14,7 @@ on: jobs: promote: name: Promote - uses: canonical/observability/.github/workflows/promote-charm.yaml@main + uses: canonical/observability/.github/workflows/charm-promote.yaml@main with: promotion: ${{ github.event.inputs.promotion }} secrets: inherit diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index 1ec1b31..1080b5f 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -8,5 +8,5 @@ on: jobs: pull-request: name: PR - uses: canonical/observability/.github/workflows/pull-request.yaml@main + uses: canonical/observability/.github/workflows/charm-pull-request.yaml@main secrets: inherit diff --git a/.github/workflows/release-edge.yaml b/.github/workflows/release-edge.yaml deleted file mode 100644 index abdf3bb..0000000 --- a/.github/workflows/release-edge.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Release to Edge - -on: - push: - branches: - - main - -jobs: - release: - uses: canonical/observability/.github/workflows/release-charm.yaml@main - secrets: inherit diff --git a/.github/workflows/release-libs.yaml b/.github/workflows/release-libs.yaml deleted file mode 100644 index c76a882..0000000 --- a/.github/workflows/release-libs.yaml +++ /dev/null @@ -1,11 +0,0 @@ -name: Release Libraries - -on: - push: - branches: - - main - -jobs: - release-libs: - uses: canonical/observability/.github/workflows/release-libs.yaml@main - secrets: inherit diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..7b49138 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,11 @@ +name: Release Charm to Edge and Publish Libraries + +on: + push: + branches: + - main + +jobs: + release: + uses: canonical/observability/.github/workflows/charm-release.yaml@main + secrets: inherit diff --git a/.github/workflows/update-libs.yaml b/.github/workflows/update-libs.yaml index 8828a8b..46b56bc 100644 --- a/.github/workflows/update-libs.yaml +++ b/.github/workflows/update-libs.yaml @@ -9,6 +9,6 @@ on: jobs: update-lib: name: Check libraries - uses: canonical/observability/.github/workflows/update-libs.yaml@main + uses: canonical/observability/.github/workflows/charm-update-libs.yaml@main secrets: inherit diff --git a/CODEOWNERS b/CODEOWNERS index e0af959..dda14d5 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -* @abuelodelanada @dstathis @lucabello @pietropasotti @sed-i @simskij +* @abuelodelanada @dstathis @IbraAoad @lucabello @mmkay @pietropasotti @sed-i @simskij