Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9075409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:51:16+00:00 2026-06-16T18:51:16+00:00

I am working on a project to expand a testing suite that my company

  • 0

I am working on a project to expand a testing suite that my company uses. One of this things that was asked of me was to link the website to our Github source for code so that the dev team could continue tracking the issues there instead of trying to look in two places. I was able to do this but the problem is that every time the a bug is reported an issue is opened.

I want to add a field to my Django model that tracks an Issue object (from the github3.py wrapper) that is sent to Github. I want to use this to check if an Issue has already been created in Github by that instance of the BugReport and if it has been created, edit the Issue instead of creating another issue in Github that is a duplicate. Does Django have a something that can handle this sort of reference?

I am using Django 1.3.1 and Python 2.7.1

EDIT

I was able to figure my specific problem out using esauro’s suggestions. However, as mkoistinen said, If this problem came up in a program where the work-around was not as easy as this one was, should an object reference be created like I had originally asked about or is that bad practice? and if it is okay to make an object reference like that, how would you do it with the Django models?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:51:17+00:00Added an answer on June 16, 2026 at 6:51 pm

    I’m the creator of github3.py.

    If you want to get the issue itself via a number, there are a couple different ways to do this. I’m not sure how you’re interacting with the API but you can do:

    import github3
    
    
    i = githbu3.issue('repo_owner', 'repo_name', issue_number)
    

    or

    import github3
    
    
    r = github3.repository('repo_owner', 'repo_name')
    i = r.issue(issue_number)
    

    or

    import github3
    
    
    g = github3.login(client_key='client_key', client_secret='client_secret')
    i = g.issue('repo_owner', 'repo_name', issue_number)
    # or
    r = g.repository('repo_owner', 'repo_name')
    i = r.issue(issue_number)
    

    otherwise if you’re looking for something that’s in an issue without knowing the number:

    import github3
    
    
    r = github3.repository('repo_owner', 'repo_name')
    for i in r.iter_issues():
        if 'text to search for' in i.body_text:
            i.edit('...')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a project where I needed to expand IPv6 addresses. That
I have an existing project that i'm working on that uses .net membership. We
I'm working on an ASP.NET project that replaces many existing paper forms. One of
I have a working project that Im amending, it crashes after trying to use
While working a project tonight, I ended up using one .js resource file for
I m working on project user to move the image in one position to
I am working on project where I have the checkInternet method in one of
I am currently working on a project that is very new to me, and
I am working on this project (web-based) where users can login and see a
I'm working on a project which shall contain two targets. One for building a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.