Skip to content

Commit

Permalink
feat: ✨ use robot token
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Sep 22, 2020
1 parent eaa3e28 commit 5904d8c
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 60 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/auto-close-issue.yml
Expand Up @@ -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).
11 changes: 9 additions & 2 deletions .github/workflows/issue-label-assignee.yml
Expand Up @@ -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: >
Expand All @@ -25,4 +32,4 @@ jobs:
"labels": ["help-wanted"]
}
]
github-token: ${{ secrets.GITHUB_TOKEN }}
github-token: ${{ steps.generate_token.outputs.token }}
13 changes: 10 additions & 3 deletions .github/workflows/lock.yml
@@ -1,14 +1,21 @@
name: 🔒 Lock
name: ⛔️ Lock Threads
on:
schedule:
- cron: 0 0 * * *
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
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/pr-label-branch-name.yml
Expand Up @@ -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 }}
15 changes: 11 additions & 4 deletions .github/workflows/pr-label-file-paths.yml
Expand Up @@ -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
10 changes: 8 additions & 2 deletions .github/workflows/pr-label-patch-size.yml
Expand Up @@ -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"
95 changes: 51 additions & 44 deletions .github/workflows/stale.yml
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion packages/x6/src/global/version.ts
Expand Up @@ -3,5 +3,5 @@
/**
* Auto generated version file, do not modify it!
*/
const version = '0.10.68'
const version = '0.10.69'
export { version }

0 comments on commit 5904d8c

Please sign in to comment.