Skip to content

Try manually setting status#36

Merged
ejfine merged 1 commit intomainfrom
status
May 9, 2025
Merged

Try manually setting status#36
ejfine merged 1 commit intomainfrom
status

Conversation

@ejfine
Copy link
Copy Markdown
Contributor

@ejfine ejfine commented May 9, 2025

new tactic

@ejfine ejfine requested a review from Copilot May 9, 2025 16:43
@ejfine ejfine self-assigned this May 9, 2025
Copy link
Copy Markdown

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 PR aims to manually set and expose the commit status by updating the devcontainer hash action and adjusting the CI workflow.

  • Added new outputs ("new-sha" and "commit-created") to the update-devcontainer-hash action
  • Updated the CI workflow to capture these outputs and, when applicable, update the dependabot status via the GitHub API
  • Bumped the copier template commit in .copier-answers.yml

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
template/.github/actions/update-devcontainer-hash/action.yml Added outputs and updated commit step to propagate the new SHA and commit status
.github/workflows/ci.yaml Modified job outputs and added a step to update the commit status using the GitHub API
.copier-answers.yml Updated the copier template commit reference

echo "new-sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
else
echo "No changes to commit"
echo "commit-created=false" >> $GITHUB_OUTPUT
Copy link

Copilot AI May 9, 2025

Choose a reason for hiding this comment

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

Consider outputting a default value for 'new-sha' in the branch where no changes are committed. This would provide a consistent output structure for dependent workflows even when no commit is created.

Suggested change
echo "commit-created=false" >> $GITHUB_OUTPUT
echo "commit-created=false" >> $GITHUB_OUTPUT
echo "new-sha=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT

Copilot uses AI. Check for mistakes.
@ejfine ejfine merged commit 5c88c45 into main May 9, 2025
9 checks passed
@ejfine ejfine deleted the status branch May 9, 2025 17:53
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.

2 participants