mirror of
https://github.com/timescale/timescaledb.git
synced 2025-05-20 04:35:00 +08:00
Move issue to Done column when closed
Workflow actions does not move issue to Done column when there is a comment and the issue is then closed. This commit deals with that by handling the closed event and move it to the Done column as well as removing labels that can interfere with processing.
This commit is contained in:
parent
3e08d21ace
commit
0892d909df
20
.github/workflows/issue-handling.yaml
vendored
20
.github/workflows/issue-handling.yaml
vendored
@ -2,7 +2,7 @@ name: Process issue workflows
|
|||||||
|
|
||||||
"on":
|
"on":
|
||||||
issues:
|
issues:
|
||||||
types: [opened, labeled]
|
types: [opened, closed, labeled]
|
||||||
issue_comment:
|
issue_comment:
|
||||||
types: [created, edited]
|
types: [created, edited]
|
||||||
|
|
||||||
@ -29,6 +29,24 @@ jobs:
|
|||||||
github-token: ${{ secrets.ORG_AUTOMATION_TOKEN }}
|
github-token: ${{ secrets.ORG_AUTOMATION_TOKEN }}
|
||||||
labeled: continuous_aggregate
|
labeled: continuous_aggregate
|
||||||
|
|
||||||
|
close-issue:
|
||||||
|
name: Issue is closed
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: github.event_name == 'issues' && github.event.action == 'closed' && contains(github.event.issues.issue.labels.*.name, 'bug')
|
||||||
|
steps:
|
||||||
|
- uses: leonsteinhaeuser/project-beta-automations@v2.0.0
|
||||||
|
with:
|
||||||
|
gh_token: ${{ secrets.ORG_AUTOMATION_TOKEN }}
|
||||||
|
organization: timescale
|
||||||
|
project_id: 55
|
||||||
|
resource_node_id: ${{ github.event.issue.node_id }}
|
||||||
|
status_value: 'Done'
|
||||||
|
- name: Remove waiting-for-author label
|
||||||
|
uses: andymckay/labeler@3a4296e9dcdf9576b0456050db78cfd34853f260
|
||||||
|
with:
|
||||||
|
remove-labels: 'waiting-for-author, no-activity'
|
||||||
|
repo-token: ${{ secrets.ORG_AUTOMATION_TOKEN }}
|
||||||
|
|
||||||
waiting-for-author:
|
waiting-for-author:
|
||||||
name: Waiting for Author
|
name: Waiting for Author
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
x
Reference in New Issue
Block a user