New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1176 Monthly roster action #1349
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hasham-qaiser Thanks for doing this! The resulting issues come out great! I had just one small cleanup request below and then we can get this merged. The PM team will be excited to hear.
.github/workflows/update-roster.yml
Outdated
// Add the new issue to the same project as the original issue | ||
if (issue.data.project_url) { | ||
const projectId = issue.data.project_url.split('/').pop(); | ||
const project = await github.rest.projects.get({ | ||
project_id: projectId | ||
}); | ||
const projectNumber = project.data.number; | ||
|
||
await github.rest.issues.addToProject({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: newIssue.data.number, | ||
project_id: projectNumber | ||
}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the project lines aren't working right now, lets remove them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hasham-qaiser looks great!
closes: #1176
Changes Made:
Adds a new github action to duplicate issue #1065 monthly.
Reason for changes:
To automatically duplicate the issue so that stale issues don't clog up the project board.