Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
satwik-miyyapuram-cohesity committed Oct 1, 2024
1 parent e9644f1 commit 917f64a
Show file tree
Hide file tree
Showing 6,326 changed files with 12 additions and 1,137,226 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
31 changes: 12 additions & 19 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create Pull Request for Last Commit on Any Branch
name: Auto Pull Request on Push

on:
push:
Expand All @@ -13,26 +13,19 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Get last commit SHA (Commit 1)
id: commit1
run: echo "::set-output name=sha1::$(git rev-parse HEAD~1)"

- name: Get current commit SHA (Commit 2)
id: commit2
run: echo "::set-output name=sha2::$(git rev-parse HEAD)"
# Get current branch name
- name: Get branch name
id: branch_name
run: echo "::set-output name=branch::$(echo ${GITHUB_REF#refs/heads/})"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Automated Pull Request for new commit"
base: ${{ github.ref_name }} # The current branch name
head: ${{ steps.commit1.outputs.sha1 }} # Commit 1
compare-to: ${{ steps.commit2.outputs.sha2 }} # Commit 2
title: "CR: Compare Commit 1 vs Commit 2"
body: |
This pull request is automatically created to compare:
- **Commit 1 (SHA: ${{ steps.commit1.outputs.sha1 }})** and
- **Commit 2 (SHA: ${{ steps.commit2.outputs.sha2 }})**
reviewers: "" # Optionally add reviewers
labels: "auto-generated" # Optionally add labels
commit-message: "Auto-generated Pull Request from ${{ steps.branch_name.outputs.branch }}"
base: main # Target branch for PR (e.g., main, develop)
head: ${{ steps.branch_name.outputs.branch }} # The branch you just pushed to
title: "PR: ${{ steps.branch_name.outputs.branch }} to main"
body: "This PR was automatically generated after pushing to ${{ steps.branch_name.outputs.branch }}."
reviewers: "" # Optional: Add reviewers
labels: "auto-generated" # Optional: Add labels
34 changes: 0 additions & 34 deletions go.mod

This file was deleted.

75 changes: 0 additions & 75 deletions go.sum

This file was deleted.

119 changes: 0 additions & 119 deletions v1/client/access_tokens/access_tokens_client.go

This file was deleted.

Loading

0 comments on commit 917f64a

Please sign in to comment.