-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #763 from ProgramEquity/Dunridge-patch-2
Update issue-metrics.yml
- Loading branch information
Showing
1 changed file
with
2 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,35 +19,18 @@ jobs: | |
git checkout -b "issue-${issue_number}" | ||
echo "::set-output name=issue_branch::issue-${issue_number}" | ||
# TODO: debug the issue with the created branc here (it should be check out but on the last step it returns to main) | ||
# - name: Checkout branch | ||
# uses: actions/checkout@v2 | ||
# with: | ||
# ref: ${{ steps.create_branch.outputs.issue_branch }} | ||
|
||
- name: Log Current Branch (debugging) | ||
run: | | ||
current_branch=$(git rev-parse --abbrev-ref HEAD) | ||
echo "Currently checked out branch: $current_branch" | ||
# TODO: try pulling in a separate step here | ||
|
||
- name: Add Issue Timestamp To File | ||
working-directory: roiScript | ||
run: | | ||
issue_num=$(echo "${{ github.event.issue.number }}") | ||
timestamp=$(date +"%Y-%m-%d %H:%M:%S") | ||
echo "Timestamp: $timestamp" >> issue_timestamp.log | ||
echo "$GITHUB_ACTOR, issue #${issue_num}: $timestamp" >> issue_timestamp.log | ||
# TODO: if mentioning it here won't work then pass the variable through the previous step | ||
# TODO: here add git checkout of the created branch | ||
# TODO: removed git pull ${{steps.create_branch.outputs.issue_branch}} because of an error | ||
# HEAD:${{ github.ref }} | ||
# don't need this: git checkout ${{steps.create_branch.outputs.issue_branch}} | ||
# temporarily removed git fetch origin ${{ steps.create_branch.outputs.issue_branch }} | ||
# rebase will reapply your local commits on top of the remote branch’s commits | ||
# was at the end of the push line: HEAD:${{ steps.create_branch.outputs.issue_branch }} | ||
# TODO: temporarily remove this and test whether it works with the new issue: git pull --rebase origin ${{ steps.create_branch.outputs.issue_branch }} | ||
# - if the workflow is triggered the 2d time don't run this? | ||
- name: Commit Issue Timestamp | ||
run: | | ||
git config --global user.email "[email protected]" | ||
|