diff --git a/.github/workflows/auto_asign.yaml b/.github/workflows/auto_asign.yaml new file mode 100644 index 0000000..dddae07 --- /dev/null +++ b/.github/workflows/auto_asign.yaml @@ -0,0 +1,19 @@ +name: Auto Assign +on: + issues: + types: [opened] + pull_request: + types: [opened] +jobs: + run: + runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + steps: + - name: 'Auto-assign issue' + uses: pozil/auto-assign-issue@v1 + with: + repo-token: ${{ secrets.GH_TOKEN }} + assignees: ChunhThanhDe + numOfAssignee: 1 \ No newline at end of file diff --git a/.github/workflows/sync_labels.yaml b/.github/workflows/sync_labels.yaml new file mode 100644 index 0000000..df963b7 --- /dev/null +++ b/.github/workflows/sync_labels.yaml @@ -0,0 +1,33 @@ + +name: ♻️ Sync Labels + +on: + push: + paths: + - .github/labels.yml + branches: + - main + workflow_dispatch: + +jobs: + labels: + name: ♻️ Sync labels + runs-on: ubuntu-20.04 + permissions: + issues: write + contents: read + steps: + - name: ⤵️ Check out code from GitHub + uses: actions/checkout@v4 + + - name: 🚀 Run Label Sync + uses: srealmoreno/label-sync-action@v2 + with: + config-file: https://raw.githubusercontent.com/Flutter-Journey/.github/main/.github/labels.yml + + - name: 🚀 Run Label Sync (Local) + if: ${{ hashFiles('.github/labels.yml') }} + uses: srealmoreno/label-sync-action@v2 + with: + config-file: .github/labels.yml +