-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from m7kvqbe1/feat/default-column-label-remove
Return to default column on label removal
- Loading branch information
Showing
5 changed files
with
204 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Create Test Issue on PR | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
create_test_issue: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Create test issue | ||
id: create_issue | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.PAT_TOKEN }} | ||
script: | | ||
const issue = await github.rest.issues.create({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
title: 'Test issue for PR #' + context.issue.number, | ||
body: 'This is a test issue created to verify the issue mover script.', | ||
labels: ['Size: Small'] | ||
}); | ||
console.log('Test issue created:', issue.data.html_url); | ||
core.setOutput('issue_number', issue.data.number); | ||
- name: Wait for move action | ||
run: sleep 30 | ||
|
||
- name: Clean up test issue | ||
if: always() | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.PAT_TOKEN }} | ||
script: | | ||
await github.rest.issues.update({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: ${{ steps.create_issue.outputs.issue_number }}, | ||
state: 'closed' | ||
}); | ||
console.log('Test issue closed'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
name: Test Move Issue Action | ||
name: Move Labeled Issues | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
description: "Name of branch to test" | ||
required: true | ||
type: string | ||
issues: | ||
types: [labeled] | ||
|
||
env: | ||
PAT_TOKEN: ${{ secrets.PAT_TOKEN }} | ||
PROJECT_URL: ${{ secrets.PROJECT_URL }} | ||
|
||
jobs: | ||
test-move-issue: | ||
move_issues: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Move Issue to Project Column | ||
uses: m7kvqbe1/github-action-move-issues@${{ github.event.inputs.branch }} | ||
uses: m7kvqbe1/github-action-move-issues@main | ||
with: | ||
github-token: ${{ secrets.PAT_TOKEN }} | ||
project-url: ${{ secrets.PROJECT_URL }} | ||
project-url: ${{ env.PROJECT_URL }} | ||
target-labels: "Size: Small, Size: Medium" | ||
target-column: "Todo" | ||
ignored-columns: "In Progress, Done" | ||
default-column: "Candidates" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters