mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:31:43 +00:00
insights: add check for issue to be a code insights issue before adding to the project (#33324)
Co-authored-by: Felix Becker <felix.b@outlook.com>
This commit is contained in:
parent
0ad910230f
commit
4aececdfe9
5
.github/workflows/update-project-items.ps1
vendored
5
.github/workflows/update-project-items.ps1
vendored
@ -95,6 +95,11 @@ switch ($github.event_name) {
|
||||
Send-SlackMessage -Uri $SlackWebhookUri
|
||||
|
||||
} else {
|
||||
if ($github.event.issue.labels | Where-Object { $_.name -eq $TeamLabel }) {
|
||||
Write-Information "Closed / re-opened issue labeled without team label $TeamLabel, exiting."
|
||||
return
|
||||
}
|
||||
|
||||
# If issue was closed or reopened, update Status column
|
||||
$status = if ($github.event.action -eq 'closed') { 'Done' } else { 'In Progress' }
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user