Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
8feacfa0
Unverified
Commit
8feacfa0
authored
Jul 06, 2023
by
tom goriunov
Committed by
GitHub
Jul 06, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #993 from blockscout/tom2drum/issue-974
PM workflows improvements
parents
1cba69fe
99d570c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
85 additions
and
1 deletion
+85
-1
project-management.yml
.github/workflows/project-management.yml
+84
-0
release.yml
.github/workflows/release.yml
+1
-1
No files found.
.github/workflows/project-management.yml
0 → 100644
View file @
8feacfa0
name
:
Project management
on
:
issues
:
types
:
[
closed
]
pull_request
:
types
:
[
review_requested
]
jobs
:
not_planned_issue
:
name
:
Update task for not planned issue
if
:
${{ github.event.issue && github.event.action == 'closed' && github.event.issue.state_reason == 'not_planned' }}
uses
:
'
./.github/workflows/update-project-cards.yml'
with
:
project_name
:
${{ vars.PROJECT_NAME }}
field_name
:
Status
field_value
:
Done
issues
:
"
[${{
github.event.issue.number
}}]"
secrets
:
inherit
completed_issue
:
name
:
Update task for completed issue
if
:
${{ github.event.issue && github.event.action == 'closed' && github.event.issue.state_reason == 'completed' }}
uses
:
'
./.github/workflows/update-project-cards.yml'
with
:
project_name
:
${{ vars.PROJECT_NAME }}
field_name
:
Status
field_value
:
Ready For Realease
issues
:
"
[${{
github.event.issue.number
}}]"
secrets
:
inherit
review_requested
:
name
:
Update tasks when review is requested
runs-on
:
ubuntu-latest
if
:
${{ github.event.pull_request && github.event.action == 'review_requested' }}
steps
:
-
name
:
Fetching issues linked to pull request
id
:
linked_issues
uses
:
actions/github-script@v6
env
:
PULL_REQUEST_NUMBER
:
${{ github.event.pull_request.number }}
with
:
script
:
|
const response = await github.graphql(`
query ($owner: String!, $repo: String!, $pr: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $pr) {
number
title
closingIssuesReferences(first: 100) {
nodes {
number
title
closed
}
}
}
}
}
`, {
owner: context.repo.owner,
repo: context.repo.repo,
pr: process.env.PULL_REQUEST_NUMBER,
});
const { repository: { pullRequest: { closingIssuesReferences } } } = response;
const issues = closingIssuesReferences.nodes.map(({ number }) => number);
if (!issues.length) {
core.notice(`No linked issues found for pull request #${ process.env.PULL_REQUEST_NUMBER }`);
return;
}
core.info(`Found ${ issues.length } issue(s): ${ issues.join(', ') || '-' }`);
return issues;
-
name
:
Updating project task statuses for found issues
if
:
${{ steps.linked_issues.outputs.result }}
uses
:
'
./.github/workflows/update-project-cards.yml'
with
:
project_name
:
${{ vars.PROJECT_NAME }}
field_name
:
Status
field_value
:
Review
issues
:
${{ steps.linked_issues.outputs.result }}
.github/workflows/release.yml
View file @
8feacfa0
...
...
@@ -19,7 +19,7 @@ jobs:
needs
:
label_released_issues
uses
:
'
./.github/workflows/update-project-cards.yml'
with
:
project_name
:
Front-end tasks
project_name
:
${{ vars.PROJECT_NAME }}
field_name
:
Status
field_value
:
Released
issues
:
${{ needs.label_released_issues.outputs.issues }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment