diff --git a/.github/workflows/auto-close-issue.yml b/.github/workflows/auto-close-issue.yml index 13084c2398c..1d7918285a2 100644 --- a/.github/workflows/auto-close-issue.yml +++ b/.github/workflows/auto-close-issue.yml @@ -10,7 +10,14 @@ jobs: name: Close runs-on: ubuntu-latest steps: - - uses: Logerfo/close-action@0.0.1 + - name: 🔑 Generate token + id: generate_token + uses: tibdex/github-app-token@v1 with: - github-token: ${{ secrets.GITHUB_TOKEN }} + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.PRIVATE_KEY }} + - name: Close Issue + uses: Logerfo/close-action@0.0.1 + with: + github-token: ${{ steps.generate_token.outputs.token }} comment: true # If `true`, will comment on the closing issue(s). diff --git a/.github/workflows/issue-label-assignee.yml b/.github/workflows/issue-label-assignee.yml index 961394c4dca..71b3564c321 100644 --- a/.github/workflows/issue-label-assignee.yml +++ b/.github/workflows/issue-label-assignee.yml @@ -11,7 +11,14 @@ jobs: label: runs-on: ubuntu-latest steps: - - uses: Naturalclar/issue-action@v2.0.1 + - name: 🔑 Generate token + id: generate_token + uses: tibdex/github-app-token@v1 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.PRIVATE_KEY }} + - name: 🎗 Label + uses: Naturalclar/issue-action@v2.0.1 with: title-or-body: both parameters: > @@ -25,4 +32,4 @@ jobs: "labels": ["help-wanted"] } ] - github-token: ${{ secrets.GITHUB_TOKEN }} + github-token: ${{ steps.generate_token.outputs.token }} diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 62e973ea5e6..94eb55c2484 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -1,4 +1,4 @@ -name: 🔒 Lock +name: ⛔️ Lock Threads on: schedule: - cron: 0 0 * * * @@ -6,9 +6,16 @@ jobs: lock: runs-on: ubuntu-latest steps: - - uses: dessant/lock-threads@v2 + - name: 🔑 Generate token + id: generate_token + uses: tibdex/github-app-token@v1 with: - github-token: ${{ github.token }} + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.PRIVATE_KEY }} + - name: 🈲 Lock + uses: dessant/lock-threads@v2 + with: + github-token: ${{ steps.generate_token.outputs.token }} issue-lock-inactive-days: 365 issue-lock-comment: > This thread has been automatically locked because it has not had recent diff --git a/.github/workflows/pr-label-branch-name.yml b/.github/workflows/pr-label-branch-name.yml index 8fc212b893e..c8d70c72d5f 100644 --- a/.github/workflows/pr-label-branch-name.yml +++ b/.github/workflows/pr-label-branch-name.yml @@ -6,8 +6,15 @@ jobs: label: runs-on: ubuntu-latest steps: - - uses: TimonVS/pr-labeler-action@v3 + - name: 🔑 Generate token + id: generate_token + uses: tibdex/github-app-token@v1 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.PRIVATE_KEY }} + - name: 🎗 Label + uses: TimonVS/pr-labeler-action@v3 with: configuration-path: .github/workflows/config/pr-label-branch-name.yml env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} diff --git a/.github/workflows/pr-label-file-paths.yml b/.github/workflows/pr-label-file-paths.yml index 4328a0245d0..5fedb4edd2f 100644 --- a/.github/workflows/pr-label-file-paths.yml +++ b/.github/workflows/pr-label-file-paths.yml @@ -4,7 +4,14 @@ jobs: label: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v2 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" - configuration-path: .github/workflows/config/pr-label-file-paths.yml + - name: 🔑 Generate token + id: generate_token + uses: tibdex/github-app-token@v1 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.PRIVATE_KEY }} + - name: 🎗 Label + uses: actions/labeler@v2 + with: + repo-token: "${{ steps.generate_token.outputs.token }}" + configuration-path: .github/workflows/config/pr-label-file-paths.yml diff --git a/.github/workflows/pr-label-patch-size.yml b/.github/workflows/pr-label-patch-size.yml index f464ed5de98..70826730989 100644 --- a/.github/workflows/pr-label-patch-size.yml +++ b/.github/workflows/pr-label-patch-size.yml @@ -4,8 +4,14 @@ jobs: label: runs-on: ubuntu-latest steps: - - name: size-label + - name: 🔑 Generate token + id: generate_token + uses: tibdex/github-app-token@v1 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.PRIVATE_KEY }} + - name: 🎗 Label uses: pascalgn/size-label-action@v0.1.1 env: - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + GITHUB_TOKEN: "${{ steps.generate_token.outputs.token }}" IGNORED: "!.gitignore\nyarn.lock" diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 1b523250988..df1b79bbd61 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -6,47 +6,54 @@ jobs: run: runs-on: ubuntu-latest steps: - - uses: actions/stale@v3 - with: - repo-token: ${{ secrets.GITHUB_TOKEN }} - stale-issue-message: | - Hiya! - - This issue has gone quiet. Spooky quiet. 👻 - - We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. - If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open! - As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out [contribute](https://github.com/antvis/X6/blob/master/CONTRIBUTING.md) for more information about opening PRs, triaging issues, and contributing! - - - Thanks for being a part of the Antv community! 💪💯 - close-issue-message: | - Hey again! - - It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. - Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m `HUMAN_EMOTION_SORRY`. Please feel free to comment on this issue or create a new one if you need anything else. - As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out [contribute](https://github.com/antvis/X6/blob/master/CONTRIBUTING.md) for more information about opening PRs, triaging issues, and contributing! - - Thanks again for being part of the Antv community! 💪💯 - stale-pr-message: | - Hiya! - - This PR has gone quiet. Spooky quiet. 👻 - - We get a lot of PRs, so we currently close PRs after 60 days of inactivity. It’s been at least 20 days since the last update here. - If we missed this PR or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this PR open! - - Thanks for being a part of the Antv community! 💪💯 - close-pr-message: | - Hey again! - - It’s been 60 days since anything happened on this PR, so our friendly neighborhood robot (that’s me!) is going to close it. - Please keep in mind that I’m only a robot, so if I’ve closed this PR in error, I’m `HUMAN_EMOTION_SORRY`. Please feel free to comment on this PR or create a new one if you need anything else. - - Thanks again for being part of the Antv community! 💪💯 - days-before-stale: 20 - days-before-close: 40 - stale-issue-label: 'stale' - exempt-issue-label: 'not-stale,awaiting-approval,work-in-progress' - stale-pr-label: 'stale' - exempt-pr-label: 'not-stale,awaiting-approval,work-in-progress' + - name: 🔑 Generate token + id: generate_token + uses: tibdex/github-app-token@v1 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.PRIVATE_KEY }} + - name: ⏰ Stale + uses: actions/stale@v3 + with: + repo-token: ${{ steps.generate_token.outputs.token }} + stale-issue-message: | + Hiya! + + This issue has gone quiet. Spooky quiet. 👻 + + We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. + If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open! + As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out [contribute](https://github.com/antvis/X6/blob/master/CONTRIBUTING.md) for more information about opening PRs, triaging issues, and contributing! + + + Thanks for being a part of the Antv community! 💪💯 + close-issue-message: | + Hey again! + + It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. + Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m `HUMAN_EMOTION_SORRY`. Please feel free to comment on this issue or create a new one if you need anything else. + As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out [contribute](https://github.com/antvis/X6/blob/master/CONTRIBUTING.md) for more information about opening PRs, triaging issues, and contributing! + + Thanks again for being part of the Antv community! 💪💯 + stale-pr-message: | + Hiya! + + This PR has gone quiet. Spooky quiet. 👻 + + We get a lot of PRs, so we currently close PRs after 60 days of inactivity. It’s been at least 20 days since the last update here. + If we missed this PR or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this PR open! + + Thanks for being a part of the Antv community! 💪💯 + close-pr-message: | + Hey again! + + It’s been 60 days since anything happened on this PR, so our friendly neighborhood robot (that’s me!) is going to close it. + Please keep in mind that I’m only a robot, so if I’ve closed this PR in error, I’m `HUMAN_EMOTION_SORRY`. Please feel free to comment on this PR or create a new one if you need anything else. + + Thanks again for being part of the Antv community! 💪💯 + days-before-stale: 20 + days-before-close: 40 + stale-issue-label: 'stale' + exempt-issue-label: 'not-stale,awaiting-approval,work-in-progress' + stale-pr-label: 'stale' + exempt-pr-label: 'not-stale,awaiting-approval,work-in-progress' diff --git a/packages/x6/src/global/version.ts b/packages/x6/src/global/version.ts index 5cd592a83df..43aed6004ab 100644 --- a/packages/x6/src/global/version.ts +++ b/packages/x6/src/global/version.ts @@ -3,5 +3,5 @@ /** * Auto generated version file, do not modify it! */ -const version = '0.10.68' +const version = '0.10.69' export { version }