Coder Social home page Coder Social logo

yigitkonur / copilot-pr-first-comment-updater Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 5 KB

Python script that appends the copilot:all label to the first comments of closed pull requests in a specified GitHub repository, allowing easy tracking and management of processed PRs.

License: MIT License

Python 100.00%
copilot copilot-x

copilot-pr-first-comment-updater's Introduction

Copilot PR First Comment Updater

The copilot-pr-first-comment-updater is a Python script that appends the copilot:all label to the first comments of closed pull requests in a specified GitHub repository, allowing easy tracking and management of processed PRs.

Prerequisites

  • Python 3.6 or higher
  • A GitHub personal access token with the necessary permissions (e.g., repo scope)

Installation

  1. Clone this repository:

git clone https://github.com/yigitkonur/copilot-pr-first-comment-updater

  1. Change the directory to the cloned repository:

cd copilot-pr-first-comment-updater

  1. Install the required dependencies:

pip install PyGithub

Configuration

Open the update_prs.py script with your favorite text editor and replace the following variables with your own values:

  • ACCESS_TOKEN: Replace with your GitHub personal access token.
  • REPO_NAME: Replace with the target repository in the format your_username/repo_name.

Usage

Run the script by executing the following command:

python3 update_prs.py

The script will process all closed pull requests in the specified repository and append the copilot:all label to the first comment. It will skip PRs that have already been processed or contain a 'Generated by Copilot' label.

License

This project is licensed under the MIT License. See the LICENSE file for details.

copilot-pr-first-comment-updater's People

Contributors

yigitkonur avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.