Skip to content

New Workflow For Adding New Issues To IR Project#2093

Merged
rmroot merged 2 commits intodevelopfrom
rmroot-patch-1
Oct 10, 2025
Merged

New Workflow For Adding New Issues To IR Project#2093
rmroot merged 2 commits intodevelopfrom
rmroot-patch-1

Conversation

@rmroot
Copy link
Copy Markdown
Member

@rmroot rmroot commented Oct 10, 2025

This pull request introduces a new GitHub Actions workflow to automate adding newly opened issues to a specific GitHub Project. The workflow is triggered whenever an issue is opened and uses the GitHub CLI to add the issue to the designated project.

Automation and workflow enhancements:

  • Added a new workflow file .github/workflows/add-issue-to-project.yml that automatically adds newly opened issues to a GitHub Project using GitHub Actions and the GitHub CLI.

Add workflow to automatically add new issues to Industrial Resources project.
@rmroot rmroot requested a review from esserhr October 10, 2025 18:39
@rmroot rmroot requested a review from Copilot October 10, 2025 18:44
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request introduces a new GitHub Actions workflow to automatically add newly opened issues to a specific GitHub Project. The workflow uses the GitHub CLI to interact with the GraphQL API and handles the process of retrieving issue IDs and adding them to the project.

  • Automated issue management by adding new issues to a GitHub Project upon creation
  • GraphQL API integration using GitHub CLI for issue and project operations
  • Proper permissions configuration for issue and content access

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

}
' --jq '.data.resource.id')

PROJECT_ID="VT_abcdefgh1234567890"
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PROJECT_ID is hardcoded with what appears to be a placeholder value. This should be moved to a repository secret or environment variable to make the workflow reusable and secure.

Copilot uses AI. Check for mistakes.
}
}
' --jq '.data.resource.id')

Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow lacks error handling for the GraphQL queries. If the first query fails to retrieve the ISSUE_ID, the subsequent mutation will fail silently or with unclear errors. Consider adding error checking after each GraphQL operation.

Suggested change
if [[ -z "$ISSUE_ID" ]]; then
echo "Error: Failed to retrieve ISSUE_ID from GraphQL query."
exit 1
fi

Copilot uses AI. Check for mistakes.
@rmroot rmroot merged commit 09417b8 into develop Oct 10, 2025
3 checks passed
@rmroot rmroot deleted the rmroot-patch-1 branch November 5, 2025 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants