#1947 fixed issue #1812, Modified the message when user tries to unwatch his own fork.
Closed 2 years ago by pingou. Opened 2 years ago by smitthakkar96.
smitthakkar96/pagure stopWatching  into  master

file modified

@@ -99,6 +99,7 @@ 



  def ssh_key_validator(form, field):

+     ''' Form for ssh key validation '''

you have made these same changes in #1950

      if not pagure.lib.are_valid_ssh_keys(field.data):

          raise wtforms.ValidationError('Invalid SSH keys')


file modified

@@ -3425,6 +3425,9 @@ 


      user_obj = get_user(session, user)


+     if project.user_id == user_obj.id:

+         return 'You cannot Unwatch your own fork.'


      if not user_obj:

          raise pagure.exceptions.PagureException(

              'No user with username: %s' % user)

no initial comment

you have made these same changes in #1950

One of the two commit message needs to be re-worded

2 new commits added

  • Changed the success response to "You cannot unwatch your own fork" in a
  • Merge branch 'master' of ssh://pagure.io/pagure
2 years ago

@pingou I changed the commit message.

I'm not seeing the new commit, did you push?

I'm going to close this PR, please reopen it when your changes are ready to be reviewed :)


Pull-Request has been closed by pingou

2 years ago