Skip to content

Commit

Permalink
Merge pull request #1 from sahil-sagwekar2652/main
Browse files Browse the repository at this point in the history
sahil-sagwekar2652#21 Fix the Readme (GsSoc'23)
  • Loading branch information
shubha987 authored May 22, 2023
2 parents 85b38dd + 61a40ea commit d669f04
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 4 deletions.
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ All types of contributions are encouraged and valued. See the [Table of Contents

## Asking Questions

If you want to ask a question, join the 'contributing' slack channel of the Project. Click [here](https://join.slack.com/t/githubautomat-9t49360/shared_invite/zt-1v05p5kao-UBmelVfZd6EBjGuzd_6XYg) to join the workspace on Slack.
If you want to ask a question, join the 'GitHub Automation scripts' project channel on the GSSoC discord server. To join the project channel, make sure you have the 'GitHub Automation scripts' & 'Contributor' role assigned to you. If you don't have the role assigned to you, you can self-assign it in the [#self-roles](https://discord.com/channels/1099745007172329592/1099745007675646046) channel.

Before you ask a question, it is best to search for existing [Issues](https://github.com/sahil-sagwekar2652/GitHub-Automation-scripts.git/issues) that might help you. It is also advisable to search the internet for answers first.

Expand All @@ -33,7 +33,8 @@ If you then still feel the need to ask a question and need clarification, we rec
- Fork the project on GitHub, clone it on your PC.
- If you have an idea for an enhancement or a bug you can first check the [Issues](https://github.com/sahil-sagwekar2652/GitHub-Automation-scripts.git/issues) to see if your question has been asked before.
- If you'd like to work on an issue, please ask the creator of the issue to assign it to you. This helps to keep the workflow streamlined.
- **Make sure to push your code to the ```contributing``` branch.**
- Create a new branch for your contribution and make the changes you want to make. (Always check for updates on the main branch before creating a pull request to avoid merge conflicts.)
- The pull request should mention the issue it is trying to solve and should be linked to it. Here is a video on how to link PRs to issues - [video link](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword).
- Make sure to make the appropriate changes in the README.md file if you are adding a new script or feature.


Expand Down
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@ This repository hosts scripts written in bash script and python to automate comm

[![GitHub-Automation-scripts](https://github-readme-stats.vercel.app/api/pin/?username=sahil-sagwekar2652&repo=GitHub-Automation-scripts&theme=dark)](https://github.com/sahil-sagwekar2652/GitHub-Automation-scripts)<br/>

## Status
<div align="center">
<img src="https://forthebadge.com/images/badges/built-with-love.svg" />
<img src="https://forthebadge.com/images/badges/uses-brains.svg" />
<img src="https://forthebadge.com/images/badges/powered-by-responsibility.svg" />
<br>
<img src="https://img.shields.io/github/repo-size/sahil-sagwekar2652/GitHub-Automation-scripts?style=for-the-badge" />
<img src="https://img.shields.io/github/issues/sahil-sagwekar2652/Github-Automation-scripts?style=for-the-badge" />
<img src="https://img.shields.io/github/issues-closed-raw/sahil-sagwekar2652/Github-Automation-scripts?style=for-the-badge" />

<img src="https://img.shields.io/github/forks/sahil-sagwekar2652/GitHub-Automation-scripts?style=for-the-badge" />
<img src="https://img.shields.io/github/issues-pr/sahil-sagwekar2652/GitHub-Automation-scripts?style=for-the-badge" />
<img src="https://img.shields.io/github/issues-pr-closed-raw/sahil-sagwekar2652/GitHub-Automation-scripts?style=for-the-badge" />
<img src="https://img.shields.io/github/stars/sahil-sagwekar2652/GitHub-Automation-scripts?style=for-the-badge" />
<img src="https://img.shields.io/github/contributors/sahil-sagwekar2652/GitHUb-Automation-scripts?style=for-the-badge" />
</div>
<br>

## Tech 🖥️
[![My Skills](https://skillicons.dev/icons?i=py,bash,git,github&perline=4)](https://skillicons.dev)
Expand Down Expand Up @@ -74,15 +91,19 @@ The result is a local respository is created with a connected remote repository

## 👨‍💻 Development

- Join the project workspace on <a href="https://join.slack.com/t/githubautomat-9t49360/shared_invite/zt-1v05p5kao-UBmelVfZd6EBjGuzd_6XYg"><img src="https://user-images.githubusercontent.com/89456541/236819046-da2f49a9-4d43-47c0-b9c2-3fdb55f3d87e.png" width="3%"></a>
- Steps to join the project channel on <a href="https://discord.com/channels/1099745007172329592/1099745007675646042"><img src="https://assets-global.website-files.com/6257adef93867e50d84d30e2/636e0b5061df29d55a92d945_full_logo_blurple_RGB.svg" width="10%"></a>

- Go to the [#self-roles](https://discord.com/channels/1099745007172329592/1099745007675646042) channel and choose the 'contributor' and 'GitHub-Automation-scripts' roles.
- You will be automatically added to the exclusive project channel.
- It will be the primary channel for all the discussions related to the project.

- Checkout the issues tab to find ideas!

- Want to contribute? Great!
Make sure to go through the [Contributor's Guide](CONTRIBUTING.md). Trust me it wont take long ;)

- ### **Make sure to push your code to the ```contributing``` branch.**

## License

[![Licence](https://img.shields.io/github/license/Ileriayo/markdown-badges?style=for-the-badge)](LICENSE)

35 changes: 35 additions & 0 deletions scripts/create_repo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash

# GitHub Personal Access Token
TOKEN="YOUR_PERSONAL_ACCESS_TOKEN"

# Repository name
REPO_NAME="new-repo"

# Repository description
REPO_DESCRIPTION="This is a new repository"

# API endpoint
API_URL="https://api.github.com/user/repos"

# Create repository payload
PAYLOAD=$(cat << EOF
{
"name": "$REPO_NAME",
"description": "$REPO_DESCRIPTION",
"private": false,
"auto_init": false
}
EOF
)

# Send POST request to create repository
response=$(curl -s -H "Authorization: token $TOKEN" -d "$PAYLOAD" "$API_URL")

# Check response status
if [[ "$(echo "$response" | jq -r '.message')" == "Validation Failed" ]]; then
echo "Error: Failed to create repository."
echo "Reason: $(echo "$response" | jq -r '.errors[0].message')"
else
echo "Repository '$REPO_NAME' created successfully."
fi

0 comments on commit d669f04

Please sign in to comment.